Created
October 19, 2016 05:51
-
-
Save lv7777/7051d7af4736d246e142d0d411264068 to your computer and use it in GitHub Desktop.
ね゛た゛ぁ゛ん゛(ねっとり)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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