Jasmin shahrzad
asked on
read a file via sed , awk or perl
how to do the following from command line:
read a file start file is like that
scan id 123
difference
only 2 line then check if the second line is difference then variable scan in second file is 123
if start file like
scan id 123
no difference do nothing.
read a file start file is like that
scan id 123
difference
only 2 line then check if the second line is difference then variable scan in second file is 123
if start file like
scan id 123
no difference do nothing.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
1. Provided related and tested answer
2. Question being inactive.
2. Question being inactive.
Open in new window
Output:Open in new window