mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-12 03:35:02 -04:00
some sytem scripts
This commit is contained in:
parent
4b0a965e4a
commit
5852171b21
25 changed files with 639 additions and 1 deletions
15
shell_scripts/useful/find_if_file_exists.sh
Executable file
15
shell_scripts/useful/find_if_file_exists.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
if [ $# -ne 1 ]
|
||||
then
|
||||
echo "Usage - $0 file-name"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -f $1 ]
|
||||
then
|
||||
echo "$1 file exist"
|
||||
else
|
||||
echo "Sorry, $1 file does not exist"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue