1

Passing "$1$" as an argument

view story
linux-howto

http://www.unix.com – Hi I have a strange issue and hence asking for your help. I am using a RHEL machine and the user passwords are stored inside /etc/shadow file. These are md5 encrypted passwords. I am extracting these encrypted passwords in a shell script and want to pass them to another shell script. But these passwords look like - "$1$98meo/YZ$.qOaoqb", or "$5$5gHl7rC19jx0UHTm50" - they start with $[1-9]$. Hence I am not able to transfer them correctly. Initial $1$ is getting converted into "ignoreeof". For example Code: script_name $1$98meo/YZ$.qOaoqb script_name (HowTos)