fixes
This commit is contained in:
Submodule client-gui2 updated: a66fa8e746...5c9b0516de
Binary file not shown.
42
prod_data_parse_scripts/parse_prijem_vydaj.sh
Executable file
42
prod_data_parse_scripts/parse_prijem_vydaj.sh
Executable file
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
if [ "$#" -lt 1 ] || [ "$#" -gt 2 ]; then
|
||||
printf 'Usage: %s INPUT.csv [OUTPUT.csv]\n' "$0" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
input=$1
|
||||
output=${2:--}
|
||||
|
||||
process_csv() {
|
||||
awk -F '\",\"' '
|
||||
BEGIN {
|
||||
OFS = FS
|
||||
}
|
||||
|
||||
{
|
||||
sub(/\r$/, "", $0)
|
||||
}
|
||||
|
||||
NR == 1 {
|
||||
print
|
||||
next
|
||||
}
|
||||
|
||||
{
|
||||
if ($5 == "- -") {
|
||||
$5 = ""
|
||||
}
|
||||
|
||||
print
|
||||
}
|
||||
' "$input"
|
||||
}
|
||||
|
||||
if [ "$output" = "-" ]; then
|
||||
process_csv
|
||||
else
|
||||
process_csv > "$output"
|
||||
fi
|
||||
3473
profile_export1/rok_17_6.komp-ac-profile.json
Normal file
3473
profile_export1/rok_17_6.komp-ac-profile.json
Normal file
File diff suppressed because it is too large
Load Diff
2
server
2
server
Submodule server updated: 07ee908786...3e0aa63df9
Submodule tui-pages updated: ce4bc49fa6...a135d67c79
Reference in New Issue
Block a user