File: remove_exit.sh

package info (click to toggle)
hdf5 1.8.13%2Bdocs-15
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 171,520 kB
  • sloc: ansic: 387,158; f90: 35,195; sh: 20,035; xml: 17,780; cpp: 13,516; makefile: 1,487; perl: 1,299; yacc: 327; lex: 178; ruby: 37
file content (11 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# This script removes the "EXIT CODE" line in the end of all standard output files.  OpenVMS doesn't output the
# same value as Unix.  So we remove the line first on Unix before running the tests.  Simply run the command
# "sh ./remove_exit.sh" under hdf5/tools/h5diff/testfiles directory.

for file in $(ls *.txt)
do
sed '/EXIT CODE/d' $file > _$file
mv _$file $file
done