A basic shell with piping, history and output redirection written in C.
Prepend command with PP and use -> to pipe commands:
example(bash): wc -l > out.txt
example(shell): PP wc -l -> out.txt
Prepend command with OR and use -> to pipe commands:
example(bash): ls -l | wc -l
example(shell): OR ls -l -> wc -l
Prepend command with ORPP and use -> to pipe commands:
example(bash): ls -l | wc -l > out.xt
example(shell): ORPP ls -l -> wc -l -> out.txt
- Type history too see previous commands
- use the bang(!) to execute the command id.
example:
history
0 ls
1 cat out.txt
2 rm out.txt
3 ls
4 history
!2
rm out.txt