Some annoying output - something small, just cannot see what?
removed
|
Hi again Batistuta,
Your script has some structural problems. Here is my interpretation of what I think you're getting at: Code:
#!/bin/bash |
...even worse using 'find -L */"$filename";' definitely isn't the right way: either make the user supply the full path, a search path or search the local directory (use 'optargs'?). Then $filename isn't propagated down the script so 'echo "file "$filename" found;' doesn't even show the actual file (or files!) found and it doesn't protect against spaces and such. And usually you have an idea of which files to back up. I mean you don't go backing up random files.
Code:
function help() { echo "Bash scripting guides: |
removed
|
Batistuta,
It's coming along, keep up the effort! A few things. Your if statements are still not correct, but they're closer. Please see my other post. Here's a marked up version, discussing a few of the issues: Code:
#!/bin/bash Another free tip: try debugging your scripts by adding set -x to the top. Here's another revision that should do what you want. Code:
#!/bin/bash |
removed
|
removed
|
All times are GMT -5. The time now is 11:32 AM. |