Shell Scripting
Asked by
zelenytsya
I read http://
I Created a new script called "backup-lots.sh", containing:
#!/bin/sh
for i in 0 1 2 3 4 5 6 7 8 9 ; do
cp $1 $1.BAK-$i done
And create a file "important_data" with anything in it and then run:
petro-z@
bash: ./backup-lots.sh: Отказано в доступе
or
petro-z@
sudo: ./backup-lots.sh: command not found
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu bash Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
To post a message you must log in.