Results 1 to 2 of 2
I have developed a shell script which will scan two files and then put the similar records in a third file.The script is follows
rm $filename3
touch $filename3
exec < ...
- 06-17-2007 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 3
script for scanning two files
I have developed a shell script which will scan two files and then put the similar records in a third file.The script is follows
rm $filename3
touch $filename3
exec < $filename1
while read line
do
exec <filename2
while read line1
do
if [ $line -eq $line1 ]
echo $line >> filename3
end if
done
done
But the above shell script is not working.
Could anyone help me out?
- 06-17-2007 #2
Don't dual-post. I already answered this in Linux Newbie.
DISTRO=Arch
Registered Linux User #388732


