can any one help with this please

October 4, 2010 at 13:57:53
Specs: Windows XP
hi i have a question in unix shell scripting ..i have a folder which has 2files ...they are abc.txt & def.txt...now i need a shell script which gets a number from each file and compares that number in two files and displays the result..if the two numbers are not equal then it should return a mismatch error and display number 1 & number 2

the script may be of the form below....

test.sh {graphname} {serial no.}

when we give the above script it should read the data from

1)abc.txt
it should read like tablename|(number1)
and give it as $1 = number1

if file abc.txt is not found/not available it should exit and give a message saying abc.txt is not available

2)def.txt
it should grep the applied rows as number2 grep appliedrows:(number2)
and give it as $2 = number2

if file def.txt is not found/not available it should exit and give a message saying def.txt is not available

now if $1 <> $2 -------> give a message saying mismatch and display $1 & $2


can any one help with this please...


See More: can any one help with this please

Report •

#1
October 19, 2010 at 17:54:58
help with your homework? Show us what you have got so far.

GNU win32 packages | Gawk


Report •
Related Solutions


Ask Question