FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
programming/shell_scripting/file-test.sh at master · Scarlet-Coder/programming · GitHub
Scarlet-Coder
/
programming
Public
forked from
hacktoberfest17/programming
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
programming
/
shell_scripting
/
file-test.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (11 loc) · 205 Bytes
Breadcrumbs
programming
/
shell_scripting
/
file-test.sh
Copy path
File metadata and controls
11 lines (11 loc) · 205 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
#
check if the given file exist in following dir or not
echo
"
Enter a name:\c
"
read
fname
#
-f for file -d for dir
#
-s for size
if
[
-f
$fname
]
then
echo
"
Yes its a file
"
else
echo
"
No its not a file
"
fi
Back
|
FazBrowse Home
|
New Git URL