Ignore:
Timestamp:
Jan 15, 2025, 1:50:20 PM (9 days ago)
Author:
jbclement
Message:

PEM:
Improvement of the Bash script tools in the deftank with an automatic error detection which ends the script with a message.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/concat_diagpem.sh

    r3214 r3579  
    33### Script to concatenate "diagpem.nc" outputs into one file ###
    44################################################################
     5set -e
     6trap 'echo -e "\033[31mError: an issue occurred in the script on line $LINENO! Please review the command and try again.\033[0m"' ERR
    57
     8################################################################
     9# Modify here the parameters for the script
     10###########################################
    611# Output file name
    712output_file="diagpem_concat.nc"
     
    2025files=($directory/diagpem*.nc)
    2126output_file=($directory/$output_file)
     27################################################################
    2228
    2329
    24 ################################################################
    2530# Checking if everything is ok
    2631if [ ! -d "$directory" ]; then
Note: See TracChangeset for help on using the changeset viewer.