backup
This commit is contained in:
parent
78f412c6c5
commit
f43ccef893
|
@ -4,4 +4,4 @@
|
|||
0RSS Feed /rss.xml
|
||||
|
||||
Most recent (20) log entries:
|
||||
=head -n 20 listing.gophermap
|
||||
=head -n 20 listing.gophermap | sed 's|^0||' | awk -v tot="$(wc -l listing.gophermap)" '{print 0 int(tot)-NR+1 " >> " $0}'
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
=intro.gophermap
|
||||
=/var/gopher/listing.gophermap
|
||||
=sed 's|^0||' /var/gopher/listing.gophermap | awk -v tot="$(wc -l /var/gopher/listing.gophermap)" '{print 0 int(tot)-NR+1 " >> " $0'}
|
||||
|
|
|
@ -8,4 +8,4 @@ if [ -f "$desc" ]; then
|
|||
fi
|
||||
|
||||
printf "%s - Ship Log\\n" "$ship"
|
||||
grep "^0${ship}" "/var/gopher/listing.gophermap" | sed "s|0${ship} - |0|"
|
||||
sed "s|^0||" /var/gopher/listing.gophermap | awk -v tot="$(wc -l /var/gopher/listing.gophermap)" '{print 0 int(tot)-NR+1 " >> " $0}' | grep "^.*>>\\ ${ship}"
|
||||
|
|
Loading…
Reference in New Issue