Results 1 to 2 of 2
Hey everyone, I'm new at this but i have a coding problem.
read -p "Enter Commands sperated by commas" cmds
echo "$cmds" | tr ',' '\n'
so user enters in:
...
- 11-05-2010 #1Just Joined!
- Join Date
- Nov 2010
- Posts
- 1
Bash Code
Hey everyone, I'm new at this but i have a coding problem.
read -p "Enter Commands sperated by commas" cmds
echo "$cmds" | tr ',' '\n'
so user enters in:
ls,date
echo displays:
ls
date
NOW, is there a way to now run those Commands in the same script?
THANKS for any help.
- 11-05-2010 #2Linux Newbie
- Join Date
- Mar 2010
- Posts
- 121


Reply With Quote
