08-31-2004
Try using...
find . -type f -name '*xyz*' -newer start.file ! -newer end.file -exec ls -ltr {} \+
Or...
find . -type f -name '*xyz*' -newer start.file ! -newer end.file -print | xargs ls -ltr
However, neither method is guaranteed to work for large numbers of matched files.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to have the timestamps of the files containing a specific string in them.
I have tried using different combinations of find command and grep and ls but not giving the desired output.
find $HOME/bin/shells -name "*" -print -exec ls -Flt {} -exec grep -i "abc" '{}' \;
Please help. (8 Replies)
Discussion started by: nguda
8 Replies
2. UNIX for Advanced & Expert Users
Hi all,
I need help to find out if it is possible (if so, how? :D ) to move a hard link to a given file without making the main file i-node modification time change.
That is:
I have a file myFile.txt ,
and I have a link myLink.dat to that file (obtained by: ln myFile.txt myLink.dat).... (1 Reply)
Discussion started by: gian1975
1 Replies
3. UNIX for Advanced & Expert Users
Hi All,
Iam trying to find two kinds of files while ignoring rest of the files in a directory
The files are like below
Files to be found
--------------------
perp45560
oerp4556
Files to be ignored
----------------------
oerp4556123450
oerp4556123470
I was trying the following... (4 Replies)
Discussion started by: baanprog
4 Replies
4. Shell Programming and Scripting
I have some files, those are abbreviated (ed,ea, and bi)
company_ed_20100719.txt
company_ea_20100719.txt
company_bi_20100719.txt
I would like to rename these files by replacing
ed with EmployeeDetails
ea with EmployeeAddress
bi with BankInfomration
as
company_... (3 Replies)
Discussion started by: LinuxLearner
3 Replies
5. Shell Programming and Scripting
Hi,
As a newbie, I'm desperate ro make my shell script work. I'd like a script which checks all the files in a directory, check the file name, if the file name ends with "extracted", store it in a variable, if it has a suffix of ".roi" stores in another variable. I'm going to use these two... (3 Replies)
Discussion started by: armando110
3 Replies
6. Shell Programming and Scripting
Hi ,
I am adding a line in my shell scripts to delete all the old directory with the below command. On running this command it is coming out with the message
find: incomplete statement
find /ersdg3/ERS/ERS_INPUT_LOGS/RIO/rio_archive -type d -mtime +47 -exec rm -rf {}
What is wrong or... (3 Replies)
Discussion started by: guddu_12
3 Replies
7. UNIX for Dummies Questions & Answers
Hello all,
I need to print directories using find command. The directories names contain date in the format YYYYMMDD or the name of directory is only the date format. I want print directories, which doesn't start with this date.
E.g I have dirs like
foo20120101
foo20120101foo
20120101foo... (1 Reply)
Discussion started by: satin1321
1 Replies
8. Shell Programming and Scripting
On my linux box, I have a file say dump.txt.
I then need to move to another seperte folder and need to find only one file with extension *.tar that has the closest timestamp after / next to the timestamp of the dump.txt. (2 Replies)
Discussion started by: mohtashims
2 Replies
9. Shell Programming and Scripting
As part of a bash the below line strips off a numerical prefix from directory 1 to search for in directory 2.
for file in /home/cmccabe/Desktop/comparison/missing/*.txt
do
file1=${file##*/} # Strip off directory
getprefix=${file1%%_*.txt}
... (5 Replies)
Discussion started by: cmccabe
5 Replies
10. UNIX for Beginners Questions & Answers
In a fastload teradata utility I am trying to delete the files which are older than 30days using the find and rm command as following.
find . -name 'xxx_*' -mtime +30 -exec rm -f {} \;
I expect it to delete all the files older than 30 days but sometimes it gives an error : find: bad status--... (3 Replies)
Discussion started by: stelkar
3 Replies
LEARN ABOUT DEBIAN
bbackupctl
BBACKUPCTL(8) Box Backup BBACKUPCTL(8)
NAME
bbackupctl - Control the Box Backup client daemon
SYNOPSIS
bbackupctl [-q] [-c config-file] command
DESCRIPTION
bbackupctl sends commands to a running bbackupd daemon on a client machine. It can be used to force an immediate backup, tell the daemon to
reload its configuration files or stop the daemon. If bbackupd is configured in snapshot mode, it will not back up automatically, and the
bbackupctl must be used to tell it when to start a backup.
Communication with the bbackupd daemon takes place over a local socket (not over the network). Some platforms (notably Windows) can't
determine if the user connecting on this socket has the correct credentials to execute the commands. On these platforms, ANY local user can
interfere with bbackupd. To avoid this, remove the CommandSocket option from bbackupd.conf, which will also disable bbackupctl. See the
Client Configuration page for more information.
bbackupctl needs to read the bbackupd configuration file to find out the name of the CommandSocket. If you have to tell bbackupd where to
find the configuration file, you will have to tell bbackupctl as well. The default on Unix systems is usually /etc/box/bbackupd.conf. On
Windows systems, it is bbackupd.conf in the same directory where bbackupd.exe is located. If bbackupctl cannot find or read the
configuration file, it will log an error message and exit.
bbackupctl usually writes error messages to the console and the system logs. If it is not doing what you expect, please check these outputs
first of all.
-q
Run in quiet mode.
-c config-file
Specify configuration file.
Commands
The following commands are available in bbackupctl:
terminate
This command cleanly shuts down bbackupd. This is better than killing or terminating it any other way.
reload
Causes the bbackupd daemon to re-read all its configuration files. Equivalent to kill -HUP.
sync
Initiates a backup. If no files need to be backed up, no connection will be made to the server.
force-sync
Initiates a backup, even if the SyncAllowScript says that no backup should run now.
wait-for-sync
Passively waits until the next backup starts of its own accord, and then terminates.
wait-for-end
Passively waits until the next backup starts of its own accord and finishes, and then terminates.
sync-and-wait
Initiates a backup, waits for it to finish, and then terminates.
FILES
/etc/box/bbackupd.conf
SEE ALSO
bbackupd.conf(5), bbackupd-config(8), bbackupctl(8)
AUTHORS
Ben Summers
Per Thomsen
James O'Gorman
Box Backup 0.11 10/28/2011 BBACKUPCTL(8)