Search Results

Search: Posts Made By: mustfirst
9,721
Posted By mustfirst
@peasant Many thanks for your reply. The...
@peasant
Many thanks for your reply.

The OS is debian-linux-gnu

It looks like using atime is not the best choice and ctime is the ideal switch as the files in the folder won't be written once...
9,721
Posted By mustfirst
Remove file isn't working
I'm trying to delete the files that are 5 days old..
Clearly the modified date is April 15 for workorders.sql
My code won't delete it. However if I use +4 then it will delete it. Am I missing...
4,269
Posted By mustfirst
Delete directory older than n days
drwxr-xr-x 2 dbadmin dbadmin 4096 Apr 21 09:44 2020-04-17
drwxr-xr-x 2 dbadmin dbadmin 4096 Apr 21 09:44 2020-04-16
drwxr-xr-x 2 dbadmin dbadmin 4096 Apr 21 09:44 2020-04-20
drwxr-xr-x 2 dbadmin...
4,685
Posted By mustfirst
Sorry, I made a mistake, my code did not work and...
Sorry, I made a mistake, my code did not work and i used your code it's working.
Can you explain what is [0-9][0-9][0-9]
3,609
Posted By mustfirst
Restore database improve code
let me know if you can suggest any improvement in my code. I think i have too many ECHO.



#! /bin/bash

DATABASE=$1
DATE=$2
MYLOGIN=/home/dbadmin/login_dev.ini...
4,685
Posted By mustfirst
Thanks madelngermany, I used find ~/ -name...
Thanks madelngermany,

I used find ~/ -name 'bin.0000[01-9][10-999]' and it worked.

Can you explain what is [01-9][10-999]?
4,685
Posted By mustfirst
Script to list Sequential files
I have sequential files like this. I'm trying to write a bash shell script to list all of them. These files are part of mysql to do database point in time recovery

bin.000001
.
.
.
bin.000999...
Showing results 1 to 7 of 7

 

Featured Tech Videos

All times are GMT -4. The time now is 07:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy