all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-1.sh
Normal file
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-1.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ sh -c ls
|
||||
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-2.sh
Normal file
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-2.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ sh -c "echo hello"
|
||||
3
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-3.sh
Normal file
3
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-3.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ bash -c 'paste <(echo 1) <(echo 2)'
|
||||
$ ksh -c 'let i=3+4; print $i'
|
||||
$ zsh -c 'if [[ 5 -lt 6 ]] { echo ok };'
|
||||
3
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-4.sh
Normal file
3
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-4.sh
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
$ VAR=`echo hello` # obsolescent backtick notation
|
||||
$ VAR=$(echo hello) # modern POSIX notation
|
||||
$ (echo hello) # execute in another shell process, not in this one
|
||||
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-5.sh
Normal file
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-5.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ csh -fc 'if (5 < 6) echo ok'
|
||||
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-6.sh
Normal file
1
Task/Shell-one-liner/UNIX-Shell/shell-one-liner-6.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
$ es -c 'if {test 5 -lt 6} {echo ok}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue