Results 1 to 2 of 2
Thread: Help with script
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2011
Help with script
#!/bin/bash echo type first file name read x echo type second file name read y a=$(stat -c%s $x) b=$(stat -c%s $y) if '[' "$a" -gt "$b" ']' then echo "File $x larger " elif '[' "$b" -gt "$a" ']' then echo "File $y larger " else echo "Both files are equal" fi
Sorry, but as you've already had pointed out to you, homework questions are not allowed. You perhaps want to take a look at the man page for the 'find' command, or ask your tutor.Linux user #126863 - see http://linuxcounter.net/