08-13-2018
For demonstration I have put an echo before the rm.
Remove it to really run the rm!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Anyone know of a way to list all of the files including subdirectories and list them as oldest first? (2 Replies)
Discussion started by: 2dumb
2 Replies
2. Shell Programming and Scripting
hello people
i need your help please
i want to achieve the following with the simplest, most efficient shell-tools:
i have a directory with a lot of files from users.
the script should check which partition the dir is on
if the partition with the directory is more than 90% full
... (2 Replies)
Discussion started by: scarfake
2 Replies
3. Shell Programming and Scripting
Would someone please give me a script that will remove all but the newest jpg image from my server.
i am uploading a new image every 10 seconds form a live web cam
Also i do not know who to make a shell script work
i am new to all this so i need all the help you could give
Thank You very much (1 Reply)
Discussion started by: Destined
1 Replies
4. Shell Programming and Scripting
I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies
5. Shell Programming and Scripting
Hi
I am want to create a script where the file gets moved from the current folder to a folder transfer based on the oldest first. This script should run one file at a time using a loop. I want it as a loop because I want to do some processing while I have one file. Can anyone guide me on this? (2 Replies)
Discussion started by: chamajid
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I need to delete the oldest file in folder when the file count in the folder exceed 6 ( i have a process that puts the source files into this folder )
E.x : Folder : /data/opt/backup
01/01/2012 a.txt
01/02/2012 b.txt
... (1 Reply)
Discussion started by: akshay01987
1 Replies
7. Shell Programming and Scripting
I need a script to clean up the files on our backup system. I was hoping this would be simple for someone to put together for me.
I'm sure I could do it, but I'm a bash n00b so it would definitely not be efficiently or within a reasonable amount of time. :(
Requirements:
- Root of backups... (3 Replies)
Discussion started by: Calab
3 Replies
8. Shell Programming and Scripting
Hi
My directory structure is as below.
dir1, dir2, dir3
I have the list of files to be deleted in the below path as below.
/staging/retain_for_2years/Cleanup/log $ ls -lrt
total 0
drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2
drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies
9. UNIX for Advanced & Expert Users
There are some 25,000 files in 7,000 directories in my source library and I am trying to find oldest files. I am running this find:
find /usr/mysrc -name "*." -type f -mtime +8000 -exec ls -l {} 2>/dev/null
and playing with the days parameter for mtime, but the output is not sorted... (3 Replies)
Discussion started by: migurus
3 Replies
10. Shell Programming and Scripting
Hi,
I have a script doing backup to synology server, the script create new folder each day with the date as being folder name i.e. 2018-07-30. Just before creating the new folder I want the script to find the oldest folder from the list and delete it including its content.
for example... (3 Replies)
Discussion started by: humble_learner
3 Replies
comb(1) General Commands Manual comb(1)
Name
comb - combine delta versions of SCCS file
Syntax
comb [-o] [-s] [-psid] [-clist] files
Description
The command generates a shell procedure which, when run, will reconstruct the given SCCS files. For further information, see The recon-
structed files are generally smaller than the original files. The arguments may be specified in any order, but all keyletter arguments
apply to all named SCCS files. If a directory is named, behaves as though each file in the directory were specified as a named file,
except non-SCCS files (last component of the path name does not begin with s.) and unreadable files, which are silently ignored. If a
name of - is given, the standard input is read; each line of the standard input is taken to be the name of an SCCS file to be processed.
The generated shell procedure is written on the standard output.
Each keyletter argument is explained as though only one named file is to be processed, but the effects of any keyletter argument apply
independently to each named file.
Options
-clist Preserves specified deltas. See for the syntax of a list. All other deltas are discarded.
-o Causes the reconstructed file to be accessed at the release of the delta to be created. Otherwise the reconstructed file would
be accessed at the most recent ancestor. Use of the -o keyletter may decrease the size of the reconstructed SCCS file. It may
also alter the shape of the delta tree of the original file.
-pSID Indicates oldest delta to be preserved. All older deltas are discarded in the reconstructed file.
-s Generates a shell procedure which produces a report. This report gives the file name, size (in blocks) after combining, original
size (also in blocks), and percentage change computed by:
100 * (original - combined) / original
It is recommended that before any SCCS files are actually combined, one should use this option to determine exactly how much
space is saved by the combining process.
If no keyletter arguments are specified, will preserve only leaf deltas and the minimal number of ancestors needed to preserve the tree.
Restrictions
The command may rearrange the shape of the tree of deltas. It may not save any space; in fact, it is possible for the reconstructed file
to actually be larger than the original.
Diagnostics
See for explanations.
Files
s.COMB The name of the reconstructed SCCS file.
comb????? Temporary.
See Also
admin(1), delta(1), get(1), help(1), prs(1), sccs(1), sccsfile(5)
Guide to the Source Code Control System
comb(1)