Basically I want to confirm that except for "BSC", AFCN is the only word in each file.So when I do a "Diff" how do i say do not take "BSC" into consideration but just check for other differences(in this case only AFCN)?
Well the most obvious would be to remove the unwanted line before to use diff...
To really help you, we would need to know a bit more:
Is this case always true? (First line unwanted) etc...
Yes this is always true.File1 i.e Test1 will always contain the first line "BSC" which I don't want.So when i'm doing the diff between the two files I'm hoping to see only 1 difference i.e the word "BSC" but to make it easier for others to read I would like the diff command not to take the first line of Test1 into consideration. and thus have no differences.
Since your new at unix, you could have a look at the man pages of tail and head commands, for you could have used e.g.
tail -n +2 test1
maybe more accessible for a novice than having to assimilate sed (and awk) syntax, nevertheless you would have to use it in the same way as the bright example of sk1418 since diff wants 2 files in input you have to use "-" to say "Standard Input - to be used as file1"...