Answers for "bash delete old file"

1

delete old files linux

find /opt/backup -type f -mtime +30 -exec rm -f {} \;
Posted by: Guest on March-31-2020
2

bash delete the last line of a file

# Basic syntax:
sed -i '$d' input_file

# Note, -i means that the input_file will be modified in place
Posted by: Guest on October-04-2020

Code answers related to "bash delete old file"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language