Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fo
#!/bin/bash # GNU bash, version 4.4.20 file="main.bash" if [ -r $file ] then echo "File has read access" else echo "File doesn't have read access" fi if [ -w $file ] then echo "File has write permission" else echo "File doesn't have write permission" fi if [ -x $file ] then echo "File has execute permission" else echo "File doesn't have execute permission" fi if [ -f $file ] then echo "File is an ordinary file" else echo "This is a special file" fi if [ -d $file ] then echo "File is a directory" else echo "This is not a directory" fi if [ -s $file ] then echo "File size is zero" else echo "File size is not zero" fi if [ -e $file ] then echo "File exists" else echo "File doesn't exists" fi
run
|
edit
|
history
|
help
0
Array
prog1
a shell script to say good morning/afternoon/evening
Find ERROR
180420107522
asdf
yes
Bash: Find count of a character in a line/word
GetListRDA
<script>alert(1);</script>