-
Notifications
You must be signed in to change notification settings - Fork 0
/
sh_tests.txt
31 lines (30 loc) · 1.16 KB
/
sh_tests.txt
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
31
-----------cd----------
cd 21sh 2>&1 | grep 21sh (+)
cd //// (+)
cd /// (+)
cd // (+)
cd / (+)
cd /////tmp (+)
=======================
echo "\x26"
echo -Een "\a\b\t\v\asdfsdf" | cat -e
echo -Een -n -n -n -n -E "\a\b\c\t\v\asdfsdf" | cat -e
>fifi | cat -e
cat -e | >fifi
>fifi
cat -e | cat > fifi
pwd >> file.txt | cat -e ; cat file.txt; rm file.txt
1>file.txt
te"\$$\stt\"
ls || cat hello || cat hello && cat print
ls || cat hello || cat hello || cat a || cat b && cat print
cat noexits && echo first && echo second && echo a && echo b || ls
ls && ls | echo hello || ls && echo end
ls && ls | echo hello || ls && echo end ; ls word
ls && ls | echo hello || ls && echo end ; ls word; qwe
ls && ls | echo hello || ls && echo end ; ls word; qwe;
ls doesnotexist . 2>&1 >/dev/null
mkdir test;cd test;ls -a;ls | cat | wc -c > ifif;cat ifif
base64 /dev/urandom | head -c 1000 | grep 42 | wc -l
base64 /dev/urandom | head -c 1000 | grep 42 | wc -l | sed -e 's/1/Yes/g' -e 's/0/No/g'
cd /tmp; sort << EOF | cat -e > sorted_poem; sed -e 's/Roses/Turnips/' < sorted_poem > better_poem; cd -; echo I prefer turnips anyway >> /tmp/better_poem; cat /tmp/better_poem