help me !!!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting help me !!!
# 1  
Old 06-01-2006
help me !!!

two arguments can be files or directories. if two files are supplied.

How to check if they have the same content and print a success or failure outcome??
# 2  
Old 06-01-2006
Code:
ruby -e 'p gets(nil)==gets(nil) if File.file? $*[0]'

# 3  
Old 06-01-2006
Code:
diff "$1" "$2" && echo "No differences" || echo "Files differ"

$1, $2 are the two arguments.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question