source:
branches/UKMO/dev_merge_2017_CICE_interface_SI3_JGLR/DOC/variables_checking.sh
@
11460
Last change on this file since 11460 was 9407, checked in by nicolasmartin, 6 years ago | |
---|---|
|
|
File size: 488 bytes |
Line | |
---|---|
1 | #!/bin/sh |
2 | |
3 | #set -euvx |
4 | |
5 | #shared_namelist_files=$( ls ../NEMOGCM/CONFIG/SHARED/namelist_* ) |
6 | shared_namelist_files=$( ls ~/Workspace/NEMO/branches/trunk/NEMOGCM/CONFIG/SHARED/namelist_* ) |
7 | |
8 | namelist_variables=$( awk '($1 ~ /[cdlnrsy]n_/ ) {print $1}' ${shared_namelist_files} \ |
9 | | sed 's/[=(].*//' | sort -u ) |
10 | |
11 | for variable in ${namelist_variables}; do |
12 | [[ $( grep ${variable/_/\\\\\\\\_} tex_sub/*.tex ) ]] && echo $variable ${variable//_/\\\\\\\\_} && exit 0 |
13 | done |
14 | |
15 | exit 0 |
Note: See TracBrowser
for help on using the repository browser.