Skip to content

Instantly share code, notes, and snippets.

@adrianbiro
Last active June 1, 2022 09:05
Show Gist options
  • Save adrianbiro/eaea802dc06cde4deb96740e1bd32f37 to your computer and use it in GitHub Desktop.
Save adrianbiro/eaea802dc06cde4deb96740e1bd32f37 to your computer and use it in GitHub Desktop.
Spocita ti to clenske a ignoruje prazdne riadky.
awk -F',' 'NF>1{printf("%s\t%d\n", $1, ($2 + $3))}' clenske_prispevky.csv \
| pr --columns=3 --double-space --number-lines --first-line-number=1 \
--date-format=%Y-%m-%d --header='Zostatok clenske prispevky' > Zostatok_clenske.txt
@adrianbiro
Copy link
Author

Tukni na Raw, text daj to suboru co nazves: sum_clenske.sh Spustis to cez terminal v priecinku kde mas csvcko prikazom bash sum_clenske.sh Ak chces hustejsie stlpce zmen cislo na konci v --columns=3

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