Month: January 2018
-
UNIX tip of the day: two file processing with AWK
I recently came across some AWK code from a work colleague that I did not understand at all awk -F’\t’ -v OFS=’\t’ ‘FNR==NR{a[$1]=$1;next};$1 in a{print $1,$2,$3}’ file1 file2 I usually like to understand code instead of blindly copying and pasting, so I did a little research into what this was doing. Searching for “awk FNR…
Join 165 other subscribers
archives
Category
- ►Computers (132)
- ►(x)html (19)
- ►bash (9)
- ►css (13)
- ►elasticsearch (1)
- ►git (1)
- ►hardware (3)
- ►java (2)
- ►javascript (12)
- ►latex (29)
- ►linux (25)
- ►lucene (1)
- ►mac osx (10)
- ►perl (8)
- ►php (18)
- ►python (4)
- ►regex (4)
- ►software development (4)
- ►solr (1)
- ►sql (9)
- ►svn (1)
- ►UNIX (12)
- ►vim (1)
- ►wiki/cms (11)
- ►WordPress (56)
- ►(x)html (19)
- ►cooking (44)
- ►environmentalism (4)
- ►general (17)
- ►linguistics (15)
- ►mindfulness (4)
- ►music (2)
- ►photography (15)