Search Results

Search: Posts Made By: raptor25
5,497
Posted By neutronscott
Like this? for iFile in `ls *.txt` do ...
Like this?

for iFile in `ls *.txt`
do
echo $iFile
nawk -v new="$1" '!done && $0 > new { print new RS $0; done=1; next } 1' $iFile >temp.txt
rm $iFile
mv temp.txt $iFile
done


It...
Showing results 1 to 1 of 1

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