Re: Checking for EOF in a shell script (was: Help me !!)

2001-11-15 Thread srikrishnan
thanks for the info ceau, Sriks Dave Ihnat wrote: > On Thu, Nov 15, 2001 at 07:18:56PM +0530, srikrishnan wrote: > > basically i would like to know the functionality of how shell acts while > > parsing a file, and how it know EOF is reached while parsing . > > Well, given that the command

Re: Checking for EOF in a shell script (was: Help me !!)

2001-11-15 Thread Dave Ihnat
On Thu, Nov 15, 2001 at 07:18:56PM +0530, srikrishnan wrote: > basically i would like to know the functionality of how shell acts while > parsing a file, and how it know EOF is reached while parsing . Well, given that the commands that you were given (sort, uniq) should do the work you asked abou

Re: Checking for EOF in a shell script (was: Help me !!)

2001-11-15 Thread srikrishnan
basically i would like to know the functionality of how shell acts while parsing a file, and how it know EOF is reached while parsing . and thanks for u r effort . hope "sort file | uniq -d " solves my problem. thanks , Srikrishnan Brad Cox wrote: > On Thursday, November 15, 2001, at 06:5

Re: Checking for EOF in a shell script (was: Help me !!)

2001-11-15 Thread Anthony E. Greene
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 15 Nov 2001, srikrishnan wrote: >I am processing a file which may contain duplicate entries of valid data .. i >have to check whether any entry in the same file gets repeated till EOF is >reached. man uniq It requires the data to be sorted

Re: Checking for EOF in a shell script (was: Help me !!)

2001-11-15 Thread Brad Cox
On Thursday, November 15, 2001, at 06:52 AM, srikrishnan wrote: > I am processing a file which may contain duplicate entries of valid data > .. i > have to check whether any entry in the same file gets repeated till EOF is > reached. Try sort file | uniq -d ___

Re: Checking for EOF in a shell script (was: Help me !!)

2001-11-15 Thread srikrishnan
I am processing a file which may contain duplicate entries of valid data .. i have to check whether any entry in the same file gets repeated till EOF is reached. "Anthony E. Greene" wrote: > On Thu, 15 Nov 2001, srikrishnan wrote: > >Is there any way to check the "EOF" using the shell scri

Re: Checking for EOF in a shell script (was: Help me !!)

2001-11-15 Thread Anthony E. Greene
On Thu, 15 Nov 2001, srikrishnan wrote: >Is there any way to check the "EOF" using the shell script. What are you trying to do? Tony -- Anthony E. Greene <[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D Chat: AO