changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/delkey

changeset 7243: 34f64dcbbc25
parent: a58ca60592df
author: cinap_lenrek@felloff.net
date: Fri, 17 May 2019 18:14:10 +0200
permissions: -rwxr-xr-x
description: 7l: don't hardcode 4k pagesize, use INITRND
1 #!/bin/rc
2 
3 rfork e
4 
5 ctl = /mnt/factotum/ctl
6 if(test -r /mnt/term/mnt/factotum/ctl)
7  ctl = /mnt/term/mnt/factotum/ctl
8 
9 ifs='
10 '
11 
12 sed 's/ ![0-9a-zA-Z_]+\??/ /g; s/''/''''/g; s/ +$//' $ctl | awk -v 'ctl='^$ctl ' { printf "echo ''del%s'' > %s\n", $0, ctl } '