source:
NEMO/branches/2018/dev_r9956_ENHANCE05_ZAD_AIMP/doc/variables_checking.sh
@
11946
Last change on this file since 11946 was 9957, checked in by acc, 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.