Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-1.sh
Normal file
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-1.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
f=`cat foo.txt` # f will contain the entire contents of the file
|
||||
printf '%s\n' "$f"
|
||||
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-2.sh
Normal file
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-2.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
f=$(cat foo.txt)
|
||||
printf '%s\n' "$f"
|
||||
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-3.sh
Normal file
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-3.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
f=$(<foo.txt)
|
||||
echo -E "$f"
|
||||
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-4.sh
Normal file
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-4.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
file=$(<foo.txt)
|
||||
print $file
|
||||
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-5.sh
Normal file
2
Task/Read-entire-file/UNIX-Shell/read-entire-file-5.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
zmodload zsh/mapfile
|
||||
print $mapfile[foo.txt]
|
||||
Loading…
Add table
Add a link
Reference in a new issue