The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Need help with Scripting diff command
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Need help with Scripting diff command
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-25-2008
joeyg
modérateur
Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
formatting the diff command in a script
Perhaps try
d=$(diff $write_file $output_file)
not sure about your d=1 logic ??
I think you want to see if d is blank or has something in it.
Perhaps the difference in files is a '1'
joeyg
View Public Profile
Find all posts by joeyg
Find joeyg's past nominations received
Find joeyg's present nominations given