View Single Post
  #8   (View Single Post)  
Old 8th April 2009
bsdnewbie999 bsdnewbie999 is offline
Package Pilot
 
Join Date: May 2008
Posts: 145
Default

I tried to do it in a sample text file. I use awk to sort the text file and echo to an output file. When i check the output file it doesn't print in new line but in 1 line. I got 3 line of text in the file. Here is my echo .
Code:
echo $(awk '{ print $1 }' $File | sort | uniq -c | sort -nr) > $Output

Last edited by bsdnewbie999; 8th April 2009 at 06:10 AM. Reason: edited
Reply With Quote