Search Results

Search: Posts Made By: aavv
5,964
Posted By frans
N=200 while read L do for W in $L ...
N=200
while read L
do
for W in $L
do
((i++))
echo $W
((i>=N)) && break 2
done
done <file.txt
5,964
Posted By jim mcnamara
Made a change - my awk liked what I did, I forgot...
Made a change - my awk liked what I did, I forgot other awks may not. My bad. See old post above

If you are on Solaris use nawk not awk.
4,641
Posted By bartus11
perl -ne '/<filename>(.+)<\/filename>/ && system...
perl -ne '/<filename>(.+)<\/filename>/ && system "mv $ARGV $1"' file_name*
Showing results 1 to 3 of 3

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