Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Quine/UNIX-Shell/quine-1.sh
Normal file
2
Task/Quine/UNIX-Shell/quine-1.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
cat < "$0"
|
||||
1
Task/Quine/UNIX-Shell/quine-2.sh
Normal file
1
Task/Quine/UNIX-Shell/quine-2.sh
Normal file
|
|
@ -0,0 +1 @@
|
|||
history | tail -n 1 | cut -c 8-
|
||||
14
Task/Quine/UNIX-Shell/quine-3.sh
Normal file
14
Task/Quine/UNIX-Shell/quine-3.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
string=`cat`
|
||||
printf "$string" "$string"
|
||||
echo
|
||||
echo END-FORMAT
|
||||
} <<'END-FORMAT'
|
||||
{
|
||||
string=`cat`
|
||||
printf "$string" "$string"
|
||||
echo
|
||||
echo END-FORMAT
|
||||
} <<'END-FORMAT'
|
||||
%s
|
||||
END-FORMAT
|
||||
9
Task/Quine/UNIX-Shell/quine-4.sh
Normal file
9
Task/Quine/UNIX-Shell/quine-4.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
_ ()
|
||||
{
|
||||
function __ ()
|
||||
{
|
||||
true
|
||||
};
|
||||
${1} &> /dev/null;
|
||||
echo "$(declare -f _);_ ${@}"
|
||||
};_ __
|
||||
Loading…
Add table
Add a link
Reference in a new issue