1

How to substitute one argument into another?

view story
linux-howto

http://www.unix.com – Hello Friends, [In bash] I am not able to solve something which looks silly..after spending some time around it, thought of positing it here. I want to get $2, $3... into user. but I want to control the sequence by count. I want to assign $2 user..then $3 to user..then $4 to user etc. how can I substitute that with count Code: count=2; while loop { user=$[$count] echo "$user" count=$(($count+1)) } Moderator's Comments: Welcome to the UNIX and Linux Forums. Please use code (HowTos)