![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help understanding mv | taiL | Shell Programming and Scripting | 16 | 10-02-2009 09:07 AM |
| Simulate SVN diff using plain diff | ackbarr | Shell Programming and Scripting | 3 | 02-07-2009 01:01 PM |
| Understanding a diff file | frozensmilz | Linux | 2 | 10-06-2008 03:46 PM |
| diff 2 files; output diff's to 3rd file | blt123 | Shell Programming and Scripting | 2 | 05-28-2002 12:29 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
i need diff understanding :)
Can someone tell me where i'm going wrong Code:
if [ "$file1" \< "$file2" ]; then
set outPut = diff "$file1" "$file2" | wc -l
echo $file1 $file2;
echo "$outPut"
if [$outPut == 0];then
echo " "$file1" and "$file2" " v
fi
fi
This is the following result: Quote:
and line 40 refers "if [ ! -f $file2 ]; then" which is not listed. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|