This commit is contained in:
iru 2011-04-17 17:27:47 -03:00
commit 3029059953
3 changed files with 4 additions and 2 deletions

View file

@ -1,2 +1,2 @@
#!/bin/rc #!/bin/rc
ls -p $* | mc ls -pF $* | mc

View file

@ -42,3 +42,5 @@ flag suppresses this rewriting.
The names of files printed by The names of files printed by
.I ns .I ns
will be inaccurate if a file or directory it includes has been renamed. will be inaccurate if a file or directory it includes has been renamed.
The name of this tool is reminiscent of national socialism and nextstep, it's hard to decide which one is worse.

View file

@ -56,7 +56,7 @@ fn kbmap{
fn readmethod{ fn readmethod{
echo echo
echo Storage devices echo Storage devices
for(i in /dev/sd??){ for(i in /dev/sd[A-Z][0-9]*){
echo -n local!^$i' ' echo -n local!^$i' '
echo `{sed 's/inquiry[ ]+//g; q' $i/ctl}\ echo `{sed 's/inquiry[ ]+//g; q' $i/ctl}\
partitions: `{cat $i/ctl | grep part | awk '{print $2}'} partitions: `{cat $i/ctl | grep part | awk '{print $2}'}