|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by prasen in Unix Operating Systems, HP-UX Unix, IBM AIX Unix
Im trying to compare the contents of a file with another file file, and then if it exists, will replace the string with a text, like this --
1:
2:
3:
4:
5:
6:
7:
|
for i in `cat fileA.txt`
do
grep $i $1 | sed 's/$i/\/\/REVIEW: $i does not exit/g' >> log_$1
done
here I will pass filename, say fileB.txt as parameter
I'm trying to grep list from fileA, check if it exist in fileB, then replace the list with a string
|
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625