Re: csh read file question

2001-03-28 Thread Bob Bell
On Wed, Mar 28, 2001 at 08:40:21AM -0500, Jeffry Smith <[EMAIL PROTECTED]> wrote: > > Maybe. Some U*ixes don't let you change your own shell. You may need > > to get the system administrator to change it for you. > > or just have a "sh" command run on start-up. Indeed, this is what I do h

Re: csh read file question

2001-03-28 Thread Jeffry Smith
Derek Martin said: > On Tue, Mar 27, 2001 at 11:53:18AM -0500, Paul Lussier wrote: > > > >[EMAIL PROTECTED] writes: > > > > > >> I'm on a box that uses csh as its default shell, > > > > Remember you can change your shell with the chsh or ypchsh commands > > Maybe. Some U*ixes don't let you

Re: csh read file question

2001-03-28 Thread Jerry Feldman
Changing shells is not always the best thing to do. While Perl and Awk do this best, you calso can write shell scripts to invoke a specific shall: #!/bin/ksh while read -r line do for i in $line # as you loop through $i will contain the tokens. done done -- Jerry Feldman <[EMA

Re: csh read file question

2001-03-28 Thread Derek Martin
On Tue, Mar 27, 2001 at 11:53:18AM -0500, Paul Lussier wrote: > >[EMAIL PROTECTED] writes: > > > >> I'm on a box that uses csh as its default shell, > > Remember you can change your shell with the chsh or ypchsh commands Maybe. Some U*ixes don't let you change your own shell. You may need

Re: csh read file question

2001-03-27 Thread Paul Lussier
In a message dated: Tue, 27 Mar 2001 10:52:42 EST "Kevin D. Clark" said: > >[EMAIL PROTECTED] writes: > >> I'm on a box that uses csh as its default shell, Remember you can change your shell with the chsh or ypchsh commands to a shell of your choice. Just make sure the shell you change to e

Re: csh read file question

2001-03-27 Thread Paul Lussier
In a message dated: Tue, 27 Mar 2001 09:54:06 EST "Mansur, Warren" said: >Hi, > >I'm on a box that uses csh as its default shell, so I'm wondering if there >is a way in csh shell scripting to read in a file a line at a time, and then >get the fourth token on each line. Are you trying to write a

Re: csh read file question

2001-03-27 Thread Kevin D. Clark
[EMAIL PROTECTED] writes: > I'm on a box that uses csh as its default shell, > so I'm wondering if there > is a way in csh shell scripting to read in a file a line at a time, and then > get the fourth token on each line. The tokens are separated by spaces, such > as: > > token1 token2 toke

csh read file question

2001-03-27 Thread Mansur, Warren
Hi, I'm on a box that uses csh as its default shell, so I'm wondering if there is a way in csh shell scripting to read in a file a line at a time, and then get the fourth token on each line. The tokens are separated by spaces, such as: token1 token2 token3 token4 token5 . . . And the file cont