summaryrefslogtreecommitdiff
path: root/test/asset/shell/pipe.et
blob: a00360acdc9bb1f8fcb6928ba56f88b33f468e6d (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
test Pipe:
    node n
    shell on n as sh:
        echo abcd | grep -o '[bc]*'
        echo abcd | grep -o '[bcd]*' | grep -o '[ab]*'


test Redirect:
    node n
    shell on n as sh:
        echo a > file
        echo b > file
        echo c >> file
        echo x
        cat file
        echo y
        cat < file
        echo z

test PipeRedirect:
    node n
    shell on n as sh:
        echo abcdefghi | grep -o '[b-h]*' | grep -o '[a-g]*' > file
        cat < file | grep -o '[acegi]' | cat > file2
        cat file2 - < file