As a one-liner: (make sure you keep a copy of file1 around...)
perl -ne "/^([^=]+)/ and $_{$1}=$_; END {print sort values %_}" file1 +file2 > file1
In reply to Re: Merge the difference between two files and save it on the first file. Also update the first file with info in second file.
by hdb
in thread Merge the difference between two files and save it on the first file. Also update the first file with info in second file.
by Shariq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |