Hi i am a newbie, and have trying something that looked easy at first sight.
in this script i want to delete all the files and directories in subdirectory1 (but not delete subdirectory1) and dont show any stderr or stdout messages:
i try this but the stderr and stdout is shown...and it says that i am trying to delete /dev/null...please help:
rm -rf /directory1/subdirectory1/* /dev/null 2>&1
this is my file system...
directory1
|
|
| ------subdirectory1
| |
| |
| |----------subsubdirectory1
|