Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
transparencia
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
C3SL
transparencia
Commits
c7ee092c
Commit
c7ee092c
authored
7 years ago
by
Cristian Weiland
Browse files
Options
Downloads
Patches
Plain Diff
Issue #53: Fix bug that got the wrong column number in resume_register.sh
Signed-off-by:
Cristian Weiland
<
cw14@inf.ufpr.br
>
parent
6e3e0468
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/workers/config.sh.example
+1
-1
1 addition, 1 deletion
scripts/workers/config.sh.example
scripts/workers/resume_register.sh
+0
-1
0 additions, 1 deletion
scripts/workers/resume_register.sh
with
1 addition
and
2 deletions
scripts/workers/config.sh.example
+
1
−
1
View file @
c7ee092c
...
@@ -8,7 +8,7 @@ index="servidores"
...
@@ -8,7 +8,7 @@ index="servidores"
# ColumnName: The name of the column from the CSV that we will use to filter data.
# ColumnName: The name of the column from the CSV that we will use to filter data.
columnName="ORGSUP_
LOTACA
O"
columnName="
COD_
ORGSUP_
EXERCICI
O"
# Filter: An associative array that will be used to filter data. The key should be the initials, and they will be used to generate the index name.
# Filter: An associative array that will be used to filter data. The key should be the initials, and they will be used to generate the index name.
# The value should be the same as in the CSV, since it will be used to match data.
# The value should be the same as in the CSV, since it will be used to match data.
...
...
This diff is collapsed.
Click to expand it.
scripts/workers/resume_register.sh
+
0
−
1
View file @
c7ee092c
...
@@ -16,7 +16,6 @@ output="${path}/${date}_Cadastro_Unique.csv"
...
@@ -16,7 +16,6 @@ output="${path}/${date}_Cadastro_Unique.csv"
head
-n1
${
input
}
>
$path
/header.csv
head
-n1
${
input
}
>
$path
/header.csv
iconv
-f
WINDOWS-1252
-t
UTF-8
-o
$path
/tmp.csv
$path
/header.csv
iconv
-f
WINDOWS-1252
-t
UTF-8
-o
$path
/tmp.csv
$path
/header.csv
columnId
=
$(
sed
s/
${
4
}
.
*
$/
${
4
}
/
$path
/tmp.csv |
sed
-e
's/\t/\n/g'
|
wc
-l
)
columnId
=
$(
sed
s/
${
4
}
.
*
$/
${
4
}
/
$path
/tmp.csv |
sed
-e
's/\t/\n/g'
|
wc
-l
)
columnId
=
`
expr
$columnId
+ 1
`
rm
-f
$path
/tmp.csv
$path
/header.csv
rm
-f
$path
/tmp.csv
$path
/header.csv
cmd
=
"
\$
$columnId
==
\"
${
filter
}
\"
"
cmd
=
"
\$
$columnId
==
\"
${
filter
}
\"
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment