parsing standard input with bash
Hi! I'm trying to set a variable with the standard input but i have a problem. For example:
user@work005:~> input some command done by me with ten parameters or more
In mi bash script I have
....
field1=$1
field2=$2 ...
field10=$10
--------------------
fields 1 to 9 i don't have troubles, but field 10 sets "$field1"0, it means
....
field1=input
field2=some...
field10=input0
----------------------
and I need filed10=or
What should I do? Thanks in advance...
Last edited by arosales; 07-15-2005 at 11:20 AM.
|