Skip to content

Instantly share code, notes, and snippets.

@aborruso
Last active March 15, 2018 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aborruso/b8e538456b770c3aaff886972591642c to your computer and use it in GitHub Desktop.
Save aborruso/b8e538456b770c3aaff886972591642c to your computer and use it in GitHub Desktop.
colonnaA colonnaB
totò pazza
mangia la
mucca sera
#!/bin/bash
# estraggo la seconda colonna e rimuovo l'intestazione
csvsql --query "select colonnaB from toto" toto.csv | tail -n +2 >./input.csv
# ne stampo i valori
while read p; do
echo $p
done <./input.csv
@pigreco
Copy link

pigreco commented Mar 15, 2018

Grazie @aborruso
mi ha aiutato tanto!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment