changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/wdoc2txt

changeset 7243: 34f64dcbbc25
parent: efddda59690a
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 switch($#*){
4 case 0
5  exit
6 case 1
7  switch($1){
8  case *.rtf
9  pub/rtf2text $1 >[2]/dev/null | plumb -i -d edit -a 'action=showdata filename='$1
10  case *.doc *
11  doc2txt $1 | plumb -i -d edit -a 'action=showdata filename='$1
12  }
13  exit
14 case *
15  for(i in *)
16  wdoc2txt $i
17 }