Last active
March 15, 2018 16:37
-
-
Save aborruso/b8e538456b770c3aaff886972591642c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
colonnaA | colonnaB | |
---|---|---|
totò | pazza | |
mangia | la | |
mucca | sera |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Grazie @aborruso
mi ha aiutato tanto!!!