Quantcast
Channel: bash script: how to diff two files after stripping prefix from each line? - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Mathiou for bash script: how to diff two files after stripping prefix from each line?

$
0
0

I would first generate the two files to compare with the header removed using the cut command like this :

cut -f 3- -d "" file_to_compare > cut_file

And then use the diff command.


Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>