Compare two files columns

view full story

http://www.linuxforums.org – Hai guys i have one question i have two files cat > file1 9842121,a4 9942121,a4 9742121,a4 cat > file2 9842121,a4 9742121,a4 9442121,a4 iwant output like below 9842121,a4 basicallly i wnat to compare two text files first column and if it is same the i would print it in a new text file can anybody help me out please (HowTos)