Category: UNIX
-
UNIX tip – xargs with multiple commands
Xargs is an extremely powerful complement to the awesome find command. One downside is that you usually need to have a single pipeline. By default you can’t put together a bunch of commands which are not piped. However, it is possible to call a shell with xargs. In this way, you can execute multiple commands…
-
Using awk to sum rows of numbers
I have a script which takes a tab-delmited file for regression tests, and converts it xml. I want to do a sanity check, to make sure that the number of utterances in my xml files matches the number in the tab-delimited.txt file. I can do this in 2 lines in UNIX robert_felty$ wc -l samples2.txt…
Join 165 other subscribers
archives
Category
- ►AI (1)
- ▼Computers (138)
- ►(x)html (19)
- ►bash (10)
- ►css (13)
- ►elasticsearch (1)
- ►git (1)
- ►hardware (3)
- ►java (2)
- ►javascript (12)
- ►latex (29)
- ►linux (25)
- ►lucene (1)
- ►mac osx (11)
- ►perl (8)
- ►php (18)
- ►python (4)
- ►regex (4)
- ►software development (7)
- ►solr (1)
- ►sql (9)
- ►svn (1)
- ▼UNIX (12)
- BASH history and GNU screen
- Photos, EXIF, IPTC oh my!
- UNIX tip – xargs with multiple commands
- UNIX tip of the day – grep -P is slow
- UNIX tip of the day — duplicate and replace lines with awk
- UNIX tip of the day: Inserting files with sed
- UNIX tip of the day: pushd
- UNIX tip of the day: readlink
- UNIX Tip of the day: simple backups
- UNIX Tip of the day: Strange behavior editing PHP files with vim
- Using awk to sum rows of numbers
- Yet another website re-design
- ►vim (1)
- ►wiki/cms (11)
- ►WordPress (58)
- ►(x)html (19)
- ►cooking (44)
- ►environmentalism (4)
- ►general (20)
- ►linguistics (15)
- ►mindfulness (4)
- ►music (2)
- ►photography (15)