Author: Kinben Sin
- To support the token
<<
Just type this command in dir MiniShell
.
make run
You can use commands in the following formats.
item
is necessary, [item]
is alternative.
>> command [argv] [&]
>> command [argv] > file [&]
>> command [argv] >> file [&]
>> command [argv] < file [&]
>> command [argv] << token [&]
>> command [argv] | command1 [argv1] | ... | commandn [argvn] [&]
cd
pwd
exit
tree
help
echo a b c
cat /etc/passwd
echo hello >log
cat /etc/passwd | wc -l
cat <input.txt | sort | uniq | cat >output.txt
./build/bin/mycp /etc/passwd ./log
./build/bin/myecho a b c
./build/bin/sleep &
sudo ./build/bin/ping 127.0.0.1
sudo ./build/bin/ping www.baidu.com
etc