Skip to main content

All Questions

Tagged with
0 votes
2 answers
7k views

Why does my Bash script display the "too many arguments" error at the cp command?

Here is my script, I get the error "line 33: [: too many arguments", I'm confused why, surely only 2 arguments are being provided to cp here? I am providing two directories to the script with no ...
Mike's user avatar
  • 1,487
0 votes
1 answer
3k views

Writing this Bash Script to accept Arguments?

How would I go about converting this bash script: mkdir /store/sftp/%USERNAME% sudo useradd -d /incoming %USERNAME% sudo passwd %USERNAME% ## Password needs to be typed or passed in here sudo ...
Urda's user avatar
  • 848