• We did not send an email asking for donations - please read this post.

Is there a way to use "sort -o" without a pipe?

CrazedNerd

Well-Known Member
Joined
Mar 31, 2021
Messages
795
Reaction score
313
Credits
6,779
The -o argument is useful because you can turn the program's output into a file for use later. The way i've found you can use this is like:

Code:
<some-input> | sort -o <new-file-name>

however, i wonder if there is a tried and tested way of using sort like this without the pipe?
 


$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top