Skip to content

Instantly share code, notes, and snippets.

View fragrusti's full-sized avatar

Francesco Agrusti fragrusti

View GitHub Profile
@fragrusti
fragrusti / bashcli.sh
Created July 11, 2018 13:30
[Multiple rename via bash] Add extension 'foo' to multiple files via sh #bash #sh #for #cli
for f in *; do mv "$f" "$f.foo"; done
@fragrusti
fragrusti / bashcli.sh
Created July 11, 2018 13:28
[Split CSV file per row with awk] Split CSV file per row with awk from bash #bash #awk #csv #split
awk -F'\t' '{print $2 > $1};close($1)' foobar.csv