Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
16
Task/Unix-ls/Ksh/unix-ls.ksh
Normal file
16
Task/Unix-ls/Ksh/unix-ls.ksh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/ksh
|
||||
|
||||
# List everything in the current folder (sorted), similar to `ls`
|
||||
|
||||
# # Variables:
|
||||
#
|
||||
targetDir=${1:-/tmp/foo}
|
||||
|
||||
######
|
||||
# main #
|
||||
######
|
||||
|
||||
cd ${targetDir}
|
||||
for obj in *; do
|
||||
print ${obj}
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue