Skip to content
Snippets Groups Projects
Commit 09a6afc8 authored by Cristian Weiland's avatar Cristian Weiland
Browse files

Merge branch 'issue/33' into 'master'

Arruma filtro de dados

See merge request !17
parents 41032881 25fa1490
No related branches found
No related tags found
No related merge requests found
......@@ -20,9 +20,4 @@ columnId=$(sed s/"${4}".*$/"${4}"/ $path/tmp.csv | sed -e 's/\t/\n/g' | wc -l)
rm -f $path/tmp.csv $path/header.csv
cmd="\$$columnId == \"${filter}\""
# Print selected column's name:
# cmd2="{ print \$$columnId }"
# head -n1 "${input}" | awk -F $'\t' "$cmd2"
cat "${input}" | awk -F $'\t' "$cmd" > "$output"
cat "${input}" | tr -d '\000' | awk -F $'\t' "$cmd" > "$output"
......@@ -20,9 +20,4 @@ columnId=$(sed s/"${4}".*$/"${4}"/ $path/tmp.csv | sed -e 's/\t/\n/g' | wc -l)
rm -f $path/tmp.csv $path/header.csv
cmd="\$$columnId == \"${filter}\""
# Print selected column's name:
# cmd2="{ print \$$columnId }"
# head -n1 "${input}" | awk -F $'\t' "$cmd2"
cat "${input}" | awk -F $'\t' "$cmd" > "$output"
cat "${input}" | tr -d '\000' | awk -F $'\t' "$cmd" > "$output"
......@@ -20,5 +20,4 @@ columnId=`expr $columnId + 1`
rm -f $path/tmp.csv $path/header.csv
cmd="\$$columnId == \"${filter}\""
cat "${input}" | awk -F $'\t' "$cmd" | tr -d '\000' > "$output"
cat "${input}" | tr -d '\000' | awk -F $'\t' "$cmd" > "$output"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment