Search Results

Search: Posts Made By: ledgie
12,355
Posted By ledgie
Thanks! Got it working the way I need now....
Thanks!

Got it working the way I need now. Final version is


find * -prune -type f |grep -v .sort| while read file
do
sort "$file" > "$file".sort
done


I had to put the -prune...
12,355
Posted By ledgie
Thanks this is good! Is there a way to make it...
Thanks this is good! Is there a way to make it ignore directories and only attempt to sort files?
12,355
Posted By ledgie
Sort all files in a directory retaining originals
Hi,

I need to sort all the files in a directory whilst retaining the originals. So if in the directory I have:

File1
File2
File3

I want to sort these files so that I would have:

File1...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy