Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Shenbaga.d
1,851
Posted By rbatte1
Can you paste in some sample input? (in CODE...
Can you paste in some sample input? (in CODE tags) and which command gives you which output please?

It might be that it looks like a space to a human but it is something else however the [^ ]...
732
Posted By bakunin
It looks like your headers are differently spaced...
It looks like your headers are differently spaced and i suppose this will not count as a difference, right?

If so: first get the headers (line 1 always?) and change all the spacings to a single...
732
Posted By Scott
Using diff and head if diff <(head -1...
Using diff and head


if diff <(head -1 file1.tsv) <(head -1 file2.tsv) > /dev/null; then
echo Headers OK
else
echo Headers not OK
fi


Or awk


awk 'A[NR]=$0 { nextfile }
END {...
Showing results 1 to 3 of 3

 

Featured Tech Videos

All times are GMT -4. The time now is 07:53 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy