Search Results

Search: Posts Made By: gammarays
8,886
Posted By gammarays
it works! thanks. it seem that in the loop's last...
it works! thanks. it seem that in the loop's last iteration, i = -- and so the error message prints every time because I did not have a case for that. After adding the case the problem went away. :D
8,886
Posted By gammarays
hi, thanks for your replies, but it still...
hi,

thanks for your replies, but it still seems to be straight to my error message. Here's the modified script. Is the for loop in its correct format? :confused:

set -- 'getopt "frd*:" "$*"'...
8,886
Posted By gammarays
using getopt with a switch statement
hi all,

i have been trying to get a script working that can take in more than one option using getopt. But for some reason, even when i type in a covered option, it skips directly to my error...
2,655
Posted By gammarays
thanks, that was helpful
thanks, that was helpful
2,655
Posted By gammarays
adding contents of a variable to a command
hi all,

i'm new to shell scripting, so i'm not sure how to work this. Is it possible to read in the contents of a variable and add it to a command? for example:

------------------------...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy