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 user4832408 for bash script: how to diff two files after stripping prefix from each line?

$
0
0

To print all fields but the first two the awk utility (and programming language) can be used:

awk '{$1=$2=""; print $0}' file1 > newfile1awk '{$1=$2=""; print $0}' file2 > newfile2diff newfile1 newfile2

Viewing all articles
Browse latest Browse all 6

Trending Articles