blob: e0898853fb81d99ae9da6bf7ade80fcd475636ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
--# -path=.:prelude
concrete UnixUni of Unix = open Prelude in {
flags unlexer=codelit ; lexer=codelit ;
{-
lincat
Line ;
[Command] {1} ;
Command ;
File ;
-}
lin
Pipe = infixSS "|" ;
Comm c = c ;
WhatTime = ss ["date +%D"] ;
WhatDate = ss ["date +%T"] ;
WhereNow = ss ["pwd"] ;
Remove = prefixSS "rm" ;
Copy x y = ss ("cp" ++ x.s ++ y.s) ;
Linecount = prefixSS ["wc -l"] ;
Wordcount = prefixSS ["wc -w"] ;
Name x = x ;
It = ss [] ;
}
|