Skip to content

Instantly share code, notes, and snippets.

@lv7777
Created October 19, 2016 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lv7777/7051d7af4736d246e142d0d411264068 to your computer and use it in GitHub Desktop.
Save lv7777/7051d7af4736d246e142d0d411264068 to your computer and use it in GitHub Desktop.
ね゛た゛ぁ゛ん゛(ねっとり)
oij=("v" "a" "n" "ho" "ten")
#echo $oij
# up is ${oij[0]}
#echo "oij's array length is "${#oij[*]}
function NasiNasiSearch(){
echo "sedの練習をしまつ!w"
lsans=`ls`
for dir in `ls -la | sed -e "/^[^d]/d" | sed -e "/\.$/d" | sed -e "s/^.* //"`
do
cd $dir
if ls
then
echo "着信アリ"
else
echo "着信ありまぁす!"
fi
#pwd
cd ../
done
}
function CreateDirs(){
echo "starting CreateDirs function"
for aa in $(seq 10)
do
mkdir $RANDOM
done
ls -la
}
CreateDirs
NasiNasiSearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment