ibern
Joined 7 years ago
Karma
5
Submissions
8
Member since
Apr 2
Joined 7 years ago
I like to use command line tools for for one-off tasks that I'm unlikely to repeat. If there's a task I know I'll need to repeat or is too cumbersome to do in a couple of lines, I'll reach for Python.
cat data.csv | sed 's/"//g'
can be simplified by doing this instead: cat data.csv | tr d '"'
This awk command: cat sales.csv | awk -F',' '{print $1}' | sort | uniq
Can be replaced with a simpler (IMO) cut instead: cat sales.csv | cut -d , -f 1 | sort | uniq
When using head or tail like this: head -n 3
You don't need the -n: head -3
Also shout out to jq, xsv, and zsh (extended glob), all nice complements to the typical command line utils.CWL seems to be more popular than WDL, as far as I can tell, but Nextflow is probably more popular than both.