18 lines
518 B
Markdown
18 lines
518 B
Markdown
# Unix Shell
|
|
|
|
These exercises are meant for people who want to improve their Shell Programming knowledge
|
|
|
|
## Whitespace Renamer
|
|
|
|
Write a program that gets a directory as an input via arguments and renames all files which have spaces in their name to `_`, so `Contract 4242 for BellTech.pdf` becomes `Contract_4242_for_BellTech.pdf`.
|
|
|
|
## Expected Result
|
|
|
|
```
|
|
$ sh find_and_replace.sh
|
|
Usage: find_and_replace.sh [-v] path
|
|
$ sh find_and_replace.sh -v /path/to/directory
|
|
Renaming 'My Document.txt' -> My_Document.txt
|
|
```
|
|
|