DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
shell script remove file if exists
#!/bin/bash file="file_you_want_to_delete" if [ -f "$file" ] ; then rm "$file" fi
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#shell
#script
#remove
#file
#exists
ADD COMMENT
Topic
COMMENT
Name
7+3 =
Submit