The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 10-27-2006
gopskrish gopskrish is offline
Registered User
 

Join Date: Jun 2005
Posts: 26
Hi Jim,

I have a problem executing the awk script which you have recommended.

I am using Korn shell. Do i need to change some thing to accommodate that.
Herewith i am attaching my file

test.txt
cat
cattle
bat
battle
mat
matter
fat
fatter
cattle
cattle

I am bit confused about the script. When i execute it, I am getting following error message.

awk: syntax error near line 1
awk: bailing out near line 1

Let me know what i should assign for $0 and $1.
Thanks in advance.
Since I am a novice, I have several queries from my end.

cheers,
gops
Reply With Quote