File: bomstrip.awk

package info (click to toggle)
bomstrip 9-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 212 kB
  • ctags: 29
  • sloc: pascal: 41; cpp: 34; ansic: 34; java: 33; python: 31; makefile: 28; sh: 24; perl: 7; haskell: 6; php: 6; ruby: 6; awk: 2; sed: 1
file content (6 lines) | stat: -rwxr-xr-x 229 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
#!/usr/bin/awk -f
# by Peter Pentchev, 2008, public domain.
# does not work on the one true awk, does work on the gnu clone.  but still then fails if file does not end in newline.

NR == 1 && /^/ { sub("^...", "") }
{ print }