- Timestamp:
- Jul 11, 2018 12:57:35 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/palm_find_lowest_available_error_number
r3024 r3118 41 41 working_dir=$(readlink -f "${SCRIPT_LOCATION}/../../") 42 42 trunk_dir=$(readlink -f "${SCRIPT_LOCATION}/../") 43 source_dir=${trunk_dir}/SOURCE 43 44 44 45 contains() { … … 48 49 error_code_prefix="PA" 49 50 50 all_found_error_codes=$(grep -P "CALL +message\(.+\)" ${trunk_dir}/SOURCE/* \ 51 all_found_error_codes=$(grep -A10 -P "CALL message\( " ${source_dir}/*.f90 \ 52 | sed -e ':a;N;$!ba;s/ *& *\n */ /g' \ 53 | grep -P "CALL message\( " \ 51 54 | grep -oP "${error_code_prefix}(?<!\d)\d{4}(?!\d)" | sort | uniq -c \ 52 55 | grep -oP "${error_code_prefix}(?<!\d)\d{4}(?!\d)")
Note: See TracChangeset
for help on using the changeset viewer.