File: 2format

package info (click to toggle)
installation-guide 20070319
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 29,356 kB
  • ctags: 53
  • sloc: xml: 184,383; sh: 1,023; perl: 403; awk: 200; makefile: 65
file content (19 lines) | stat: -rwxr-xr-x 296 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

tmp=`tempfile`

while [ x"$1" != x ]; do
  echo $1
  cat $1 \
   | tr -d '\t' \
   | sed -f formatparasect \
   | sed -f para1 \
   | sed '/<\/para>/{:a;N;/<para>/!ba;s/<\/para>\n*<para>/<\/para><para>/;}' \
   | cat -s > $tmp
  cp $tmp $1
  shift;
done

rm -f $tmp

#   | sed -f fix \