Created
May 11, 2018 17:13
-
-
Save edenizk/a29aad4a8037b4910eee19724d22c6a1 to your computer and use it in GitHub Desktop.
links in Linux
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
#list folders | |
for folder in * | |
do | |
ls $folder | |
done | |
cd /home/uczelnia.local/ekoseci1/www/operating/class4/folder1 | |
for i in 1 2 | |
do | |
ln -s image$i.jpeg softimage$i.jpeg | |
done | |
cd .. | |
for folder in * | |
do | |
for file in $folder/* | |
do | |
if [[ $file = *".txt" ]]; | |
then | |
echo "${file#.*}" | |
fi | |
done | |
done | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment