mirror of
https://github.com/Hizenberg469/Makefile-tutorial.git
synced 2026-04-20 06:12:23 +03:00
23 lines
318 B
Bash
23 lines
318 B
Bash
#!/bin/bash
|
|
|
|
: << cmt
|
|
This is
|
|
multiline Comments
|
|
in bash
|
|
cmt
|
|
|
|
ARRAY=($(ls *.txt))
|
|
COUNT=0
|
|
echo -e "FILE NAME \t WRITEABLE"
|
|
for FILE in "${ARRAY[@]}"
|
|
do
|
|
echo -n $FILE
|
|
echo -n "[${#ARRAY[$COUNT]}]"
|
|
if [ -w "$FILE" ]; then
|
|
echo -e "\t YES"
|
|
else
|
|
echo -e "\t NO"
|
|
fi
|
|
|
|
let COUNT++
|
|
done |