last lab
This commit is contained in:
10
labLinux/lab3/find.sh
Executable file
10
labLinux/lab3/find.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
for item in "$HOME"/*; do
|
||||
if [ -d "$item" ]; then
|
||||
echo "$item — это директория"
|
||||
elif [ -f "$item" ]; then
|
||||
echo "$item — это файл"
|
||||
else
|
||||
echo "$item — это не файл и не директория"
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user