projects
/
oweals
/
cde.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Provide support for installation under OpenBSD. Don't override PATH in the install...
[oweals/cde.git]
/
cde
/
admin
/
IntegTools
/
dbTools
/
linksLast
1
#! /bin/ksh
2
3
#
4
# Script to move all link refereces in a ".lst" file
5
# to the end of the file.
6
#
7
8
USAGE="Usage: $0 file.lst"
9
10
case $# in
11
0) echo $USAGE;;
12
1);;
13
*) echo $USAGE;;
14
esac
15
16
awk '
17
/hard_link|sym_link/ { links[i++] = $0 ; next; }
18
{ print $0 }
19
END {
20
if ( i > 0 )
21
for ( i in links) print links[i];
22
}
23
' $@