Changeset 2141 for palm/trunk/SCRIPTS
- Timestamp:
- Feb 6, 2017 10:19:32 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r1945 r2141 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # made check for existing files language independent 25 25 # 26 26 # Former revisions: … … 1237 1237 1238 1238 # CHECK IF FILE EXISTS 1239 if [[ $(ls $filename* 2>&1 | grep -c "not found") = 1 || \ 1240 $(ls $filename* 2>&1 | grep -c "nicht gefunden") = 1 || \ 1241 $(ls $filename* 2>&1 | grep -c "No such file") = 1 || \ 1242 $(ls $filename* 2>&1 | grep -c "does not exist") = 1 ]] 1239 if ! ls $filename* 1>/dev/null 2>&1 1243 1240 then 1244 1241 … … 1347 1344 eval filename=${pathout[$i]}/${fname}${endout[$i]} 1348 1345 eval catalogname=${pathout[$i]} 1349 if [[ $(ls $filename* 2>&1 | grep -c "not found") = 1 || \ 1350 $(ls $filename* 2>&1 | grep -c "nicht gefunden") = 1 || \ 1351 $(ls $filename* 2>&1 | grep -c "No such file") = 1 || \ 1352 $(ls $filename* 2>&1 | grep -c "does not exist") = 1 ]] 1346 if ! ls $filename* 1>/dev/null 2>&1 1353 1347 then 1354 1348
Note: See TracChangeset
for help on using the changeset viewer.