File: Sort.sh

package info (click to toggle)
abinit 9.10.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 518,712 kB
  • sloc: xml: 877,568; f90: 577,240; python: 80,760; perl: 7,019; ansic: 4,585; sh: 1,925; javascript: 601; fortran: 557; cpp: 454; objc: 323; makefile: 77; csh: 42; pascal: 31
file content (8 lines) | stat: -rwxr-xr-x 107 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
#!/bin/bash

mv $1 tmp
exec > $1
sed '1,3!d' tmp
sed '4,/^\*/!d' tmp | head -n-1 | sort
tail -3 tmp
rm tmp