Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
little_bash_functions
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Gael MILLOT
little_bash_functions
Commits
6db973d6
Commit
6db973d6
authored
6 years ago
by
Gael MILLOT
Browse files
Options
Downloads
Patches
Plain Diff
v1.2.0 release
parent
b251ec8a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+5
-0
5 additions, 0 deletions
README.md
little_bash_functions.sh
+4
-4
4 additions, 4 deletions
little_bash_functions.sh
with
9 additions
and
4 deletions
README.md
+
5
−
0
View file @
6db973d6
...
...
@@ -56,6 +56,11 @@ Check for updated versions (more recent release tags) at https://gitlab.pasteur.
#### WHAT'S NEW IN
## v1.2.0
output file name error in test_column_nb_perline_in_file_fun fixed
## v1.1.0
single_path_with_regex_fun function deals now with url
...
...
This diff is collapsed.
Click to expand it.
little_bash_functions.sh
+
4
−
4
View file @
6db973d6
...
...
@@ -2,7 +2,7 @@
################################################################
## ##
## LITTLE BASH FUNCTIONS v1.
0
.0 ##
## LITTLE BASH FUNCTIONS v1.
2
.0 ##
## ##
## Gael A. Millot ##
## ##
...
...
@@ -289,7 +289,7 @@ function test_column_nb_perline_in_file_fun () {
# -i or --input: file name and path. Must be tab delimited
# -o or --output: output file in which problematic lines are printed.
# If -o specified, the file must not exists.
# IF -o not specified, by default, the file name is -i_
line_
error and must not already exists at -i location
# IF -o not specified, by default, the file name is -i_error
_line
and must not already exists at -i location
# -c or --cleanoutput: output file containing the lines without the problematic lines.
# If -c specified, the file must not exists.
# IF -c not specified, the file name is -i_wo_error_line and must not already exists at -i location
...
...
@@ -332,14 +332,14 @@ function test_column_nb_perline_in_file_fun () {
return
1
fi
if
[[
-z
$OUTPUT_FUN
]]
;
then
local
OUTPUT_FUN
=
${
INPUT_FUN
}
_
line_
error
local
OUTPUT_FUN
=
${
INPUT_FUN
}
_error
_line
fi
if
[[
-f
$OUTPUT_FUN
]]
;
then
echo
-e
"
\n
### test_column_nb_perline_in_file_fun ERROR ###
${
OUTPUT_FUN
}
FILE ALREADY EXISTS
\n
"
return
1
fi
if
[[
-z
$OUTPUT_WOPATTERN_FUN
]]
;
then
local
OUTPUT_WOPATTERN_FUN
=
${
INPUT_FUN
}
_wo_
pattern
local
OUTPUT_WOPATTERN_FUN
=
${
INPUT_FUN
}
_wo_
error_line
fi
if
[[
-f
$OUTPUT_WOPATTERN_FUN
]]
;
then
echo
-e
"
\n
### test_column_nb_perline_in_file_fun ERROR ###
${
OUTPUT_WOPATTERN_FUN
}
FILE ALREADY EXISTS
\n
"
...
...
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