how to pass parameters to a linux bash shell

Posted by chun on Stack Overflow See other posts from Stack Overflow or by chun
Published on 2010-04-15T13:27:48Z Indexed on 2010/04/15 13:33 UTC
Read the original article Hit count: 316

Filed under:

hi

i have a linux bash shell 'myshell' i want it to read two date as parameters, ex: myshell date1 date2 i am a Java programer, but don't know how to write a shell to get this done

the rest of the shell is like this

sed "s/$date1/$date2/g" wlacd_stat.xml >tmp.xml mv tmp.xml wlacd_stat.xml

thanks

© Stack Overflow or respective owner

Related posts about linux