How to differ a string with a text file
Dear all
I have a string with 10 lines and would like to differ it with a text file. Should I read it line by line, trim and differ or is there any simple solution? thanks beforehane |
the tool diff is able to accept input from stdin, so:
echo $STRING | diff - textfile can work |
All times are GMT -5. The time now is 09:18 AM. |