Operating Systems > Linux and UNIX
shell variables
voidmain:
Well, it's tough to tell without knowing the bigger picture of what you are working on. If it works for you go for it. I rarely use the "read" command in a shell script though. I usually use "cut" and other utilities, even though read may be more appropriate in this example. But like I mentioned. For parsing text files I find Perl to be *very* easy for this kind of stuff. Don't know if that is an option for you but Perl really makes this a no brainer.
caveman_piet:
TX.
Yes - perl was an option - should have started
there.
But I started with this - and then got stuck
on solving the problem via bash (ksh actually).
In fact - the output gets fed to a perl script
but I want to keep that as generic as possible.
TX.
PS. How to edit a post? can it be done after I
sent it?
voidmain:
Yes you can edit your post after you post it by clicking on the little icon above your post that looks like a little pencil/paper ICON.
I also love the Korn shell. Bash is very much like Korn shell but it can not do math operations in a while loop like Korn shell can:
--- Code: ---
--- End code ---
caveman_piet:
yep - I found that out the hard way.
So now I when I write scripts I need to
comment out some code until I can get to
the RS6000 box to test it.
Tx for all the help.
It's 03h40 where I am - so off to bed
and get ready to be at the client by 07h00.
[ October 20, 2002: Message edited by: caveman ]
just test da edit :D !
And finding myself hitting the ESC k and vi
edit commands in bash. Only to find it really screws with my bash command line.
g'night
[ October 20, 2002: Message edited by: caveman ]
voidmain:
quote:Originally posted by caveman:
yep - I found that out the hard way.
So now I when I write scripts I need to
comment out some code until I can get to
the RS6000 box to test it.
--- End quote ---
Why is that? You know you can get Korn shell for your Linux box right? I used to admin a cluster of RS/6000s (990s, 590s, 340s, M20s, and Xterminals) several years ago. I really liked those boxen. And I used a lot of Linux as cheap X clients into the cluster.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version