You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this script without any arguments (only -d was given). Everytime I run this script I got an error, it doesn't matter how many files there were in this directory:
Hi,
I tried this script without any arguments (only -d was given). Everytime I run this script I got an error, it doesn't matter how many files there were in this directory:
$ ./check_file_ages_in_dirs.sh -d /tmp/test/
./check_file_ages_in_dirs.sh: 341: [: unexpected operator
OK: 1 dir(s) -- /tmp/test/: 0 files
$ ./check_file_ages_in_dirs.sh -d /tmp/test/
./check_file_ages_in_dirs.sh: 336: [: unexpected operator
./check_file_ages_in_dirs.sh: 341: [: unexpected operator
OK: 1 dir(s) -- /tmp/test/: 1 files
$ ./check_file_ages_in_dirs.sh -d /tmp/test/
./check_file_ages_in_dirs.sh: 336: [: unexpected operator
./check_file_ages_in_dirs.sh: 336: [: unexpected operator
./check_file_ages_in_dirs.sh: 341: [: unexpected operator
OK: 1 dir(s) -- /tmp/test/: 2 files
$ ./check_file_ages_in_dirs.sh -d /tmp/test/
./check_file_ages_in_dirs.sh: 336: [: unexpected operator
./check_file_ages_in_dirs.sh: 336: [: unexpected operator
./check_file_ages_in_dirs.sh: 336: [: unexpected operator
./check_file_ages_in_dirs.sh: 341: [: unexpected operator
OK: 1 dir(s) -- /tmp/test/: 3 files
... and so on :)
I am using a bash with Ubuntu 15.10. Do you need something more?
Thanks in advance!
The text was updated successfully, but these errors were encountered: