Sponsored Content
Full Discussion: Optargs????
Top Forums Shell Programming and Scripting Optargs???? Post 302159487 by skyineyes on Thursday 17th of January 2008 11:54:08 PM
Old 01-18-2008
Actually i am not having any unix console right now. Otherwise i could have checked that.
PLease help me with an example !!!

Thanks

Quote:
Originally Posted by frank_rizzo
have you looked at the man page for getopt or the shell documentation for getopts?
 

We Also Found This Discussion For You

1. Shell Programming and Scripting

optargs processing

Hello i'm writing some analyzing script and i'm giving to my program these parameters, for example: ./procinfo -r tmpfile sh -c "cat tmpfile" where -r is proccessed in getopts and it takes an argument by OPTARG.. The thing is I need to save this part to some variable: sh -c "cat tmpfile"... (4 Replies)
Discussion started by: midin
4 Replies
All times are GMT -4. The time now is 11:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy