5

getting: too many arguments error

view full story
linux-howto

http://ubuntuforums.org – I have the following script and I'm getting: too many arguments error Code: #!/bin/bash #creating new dir and copy files into it create_dir() {         if [ $# -eq 0 ]; then                 echo "Usage: $0 param1 param2"         else                 echo "Making directory $1 and copying files..."                 mkdir $1                 for i in *   &nbs (Hardware)