-
Notifications
You must be signed in to change notification settings - Fork 0
/
assert_cmds.txt
58 lines (58 loc) · 1.38 KB
/
assert_cmds.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# ECHO
echo "toto"
echo '"'toto'"'
echo """totot"""
echo "'""totot""'"a
echo '''ta'''
"echo" tata
echo "''test''"
echo '${USER}'
echo "${USER}"
echo ${USER}"'"
echo "test" "test"
echo "test""test"
echo test"test"
echo "test"test
echo $?
echo The current user is $USER
echo The current user is "'"$USER"'"
echo The current user is '"'"$USER"'"'
"'"echo"'" The current user is $USER
"''echo''" The current user is "'"$USER"'"
"'"""echo"""'" The current user is '"'"$USER"'"'
echo The current user is ${USER}
echo The current user is "'"${USER}"'"
echo The current user is '"'"${USER}"'"'
echo -n rtorto
echo -nnnnn fgergrg
echo -n-n fgjrogj
"'"echo"'" The current user is ${USER}
"''echo''" The current user is "'"${USER}"'"
"'"""echo"""'" The current user is '"'"${USER}"'"'
ls | wc -l
echo toto | ls | wc -l | echo toto
echo $?
ls -la srcs
ls -la srcs | grep in
pwd
echo toto | echo $? | ls | echo toto
echo $?
cat nonexistingfile.bob.gratton
# START REDIRECTION
# REDIRECTION FILENAME MUST BE file.txt
echo toto > file.txt | cat file.txt
echo toto >> file.txt | cat file.txt
echo toto > file.txt | cat file.txt | ls
echo toto >> file.txt | cat file.txt | ls
echo toto > file.txt | cat < file.txt
echo -n > file.txt | cat file.txt
echo > file.txt | cat file.txt
# END REDIRECTION
cat < Makefile
export $ec=ec
export $ho=ho
unset $PATH
$ec$ho test
# START HEREDOC
#cat << 4 > file.txt | cat file.txt
# END HEREDOC