diff --git a/README.md b/README.md index c7f0c4c1ee4a5bd3be8ac4202a264dca49bdd7e1..769bc34e274e16b610f89ee385e247919c91f996 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/little_bash_functions.sh b/little_bash_functions.sh index d12a4c4eb4b8ba68d8e40e5b10c987924f31fdba..53f0656477b267d46728094396b06b2bc1a607d7 100644 --- a/little_bash_functions.sh +++ b/little_bash_functions.sh @@ -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"