Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
strange behaviour in shell script
Name: James Date: December 8, 2003 at 07:19:03 Pacific OS: hp-ux 10.20 CPU/Ram: unknown
Comment:
I am completely baffled by this problem..I have a shell script. Near the start I declare a series of variables for example:
Summary: Hi, I'm trying to run loops in shell scripts using the following script. loop=1 while [ loop -lt 10 ] do echo 'this is my $loop text-line' loop='expr $loop + 1' done ---- but I'm getting error: test: ...
Summary: In shell script sed or awk command, can I use hexadecimal code for substitution? I want to perform the following: Input file: Line1 Line2 Line3 Line4 Output file: (all in one line now) Line1Line2Line...
Summary: Dear all, I wonder how to find the size of an array in shell script. For example, I declared an array as following: #! /bin/sh a = (1 adf 8 2 se) How could I get the size of the array a? I had searche...