Viewing 1 to 2 of 2 items
Tag Archives: Fnr

Merge 2 csv files with awk

I have 2 files pipe delimted and want to merge them based on a key e.g file 1 Code: 123$aaa$yyy$zzz 345$xab$yzy$zyz 456$sss$ttt$foo 799$aaa$ggg$dee file 2 Code: 123$hhh 345$ddd 456$xxx 888$zzz so if the key is the first field, and the result should be the common key between file 1 and 2 i.e. result will be  Full Article…


50 Most Frequently Used UNIX / Linux Commands

  2. grep command examples Search for a given string in a file (case in-sensitive search). $ grep -i “the” demo_file Print the matched line, along with the 3 lines after it. $ grep -A 3 -i “example” demo_text Search for a given string in all files recursively $ grep -r “ramesh” * More grep  Full Article…