Results 1 to 2 of 2
Thread: Help with script
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
09-24-2011 #1
- Join Date
- Sep 2011
- Posts
- 6
Help with script
Code:#!/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
-
09-24-2011 #2
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/