Using a bash script, I need to find all files in a folder "except" the newest file. Then I need to insert the contents of one text file into all the files found. This text needs to be placed at the beginning of each file and needs a blank line between it and the current contents of the file. Then I... (5 Replies)
Hi all,
We have CVS server running for few years with absolutely no problems.
Because of conditions not depending on me, I'm forced to move some part of our repository to another server (SVN). I need to move ONLY one branch from CVS server to SVN server. The branch must be moved with all... (7 Replies)
i have some 1000 files in my dir and i want to find top 100 files and move them to some other location:
below the 2 commands i used, but it is not working
ls -ltr | grep ^- | head -100 | xargs mv destination - _________>not working
ls -ltr | grep ^- | head -100 | xargs mv {}... (3 Replies)
Hi All,
So I have another question. I'm trying to search for files with a certain extension and then move all of them up one level in the folder hierarchy.
So something like this:
original: /path/to/file/test.txt
after: /path/to/test.txt
I had some great help recently with another... (4 Replies)
Hi ,
I've learnt that the following command will remove the files from the given folder for given no.of days
find /home/etc -type f -atime -10 -exec rm -f {} \;
But how can I change the above command that will move the files to another specified directory instead of removing the... (1 Reply)
I have have 6 empty directory below. I would like write bash scipt if any files less "1000000000" bytes then move to "/export/home/mytmp/final" folder first and any files greater than "1000000000" bytes then move to final1, final2, final3, final4, final4, final5 and that depend see how many files,... (6 Replies)
Greetings. I know enough Unix to be dangerous (!) and know that there is a clever way to do the following and it will save me about a day of agony (this time) and I will use it forever after! (many days of agony saved in the future)!
Basically
I need to find any image files (JPGs, PSDs etc)... (5 Replies)
I have the below command to delete all .xml files older than 90 days
find . -type f -name '*.xml' -mtime +90 -exec rm {} \;
What will be the command to move all the .xml files older than 90 days to this folder -> "/tmp/my_bk"
My OS: SunOS my-pc 5.10 Generic_150400-17 sun4v sparc... (4 Replies)
I have several problems with my problems: I hope you can help me.
1) the If else statement I am getting an error message. My syntax must be incorrect because the entire statement is throwing an error.
For example in filew.log if these items don't exist Memsize, SASFoundation and also if... (0 Replies)
I have a directory /home/cmccabe/nfs/exportedReports that contains multiple folders in it. The find writes the name of each folder to out.txt. A new directory is then created in a new location /home/cmccabe/Desktop/NGS/API, named with the date. What I am trying to do, unsuccessfully at the moment,... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT NETBSD
cvs-debc
CVS-DEBC(1) General Commands Manual CVS-DEBC(1)NAME
cvs-debc - view contents of a cvs-buildpackage/cvs-debuild generated package
SYNOPSIS
cvs-debc [options] [package ...]
DESCRIPTION
cvs-debc is run from the CVS working directory after cvs-buildpackage or cvs-debuild. It uses the cvs-buildpackage system to locate the
.changes file generated in that run. It then displays information about the .deb files which were generated in that run, by running dpkg-
deb -I and dpkg-deb -c on every .deb archive listed in the .changes file, assuming that all of the .deb archives live in the same directory
as the .changes file. It is useful for ensuring that the expected files have ended up in the Debian package.
If a list of packages is given on the command line, then only those debs with names in this list of packages will be processed.
Note that unlike cvs-buildpackage, the only way to specify the source package name is with the -P option; you cannot simply have it as the
last command-line parameter.
OPTIONS
All current cvs-buildpackage options are silently accepted; however, only the ones listed below have any effect. For more details on all
of them, see the cvs-buildpackage(1) manpage.
-adebian-architecture, -tGNU-system-type
See dpkg-architecture(1) for a description of these options. They affect the search for the .changes file. They are provided to
mimic the behaviour of dpkg-buildpackage when determining the name of the .changes file.
-Mmodule
The name of the CVS module.
-Ppackage
The name of the package.
-Vversion
The version number of the package.
-Ttag The CVS tag to use for exporting sources.
-Rroot directory
Root of the original sources archive.
-Wwork directory
The full path name for the cvs-buildpackage working directory.
-xprefix
This option provides the CVS default module prefix.
--help, --version
Show help message and version information respectively.
SEE ALSO cvs-buildpackage(1), cvs-debi(1), cvs-debuild(1) and debc(1).
AUTHOR
cvs-buildpackage was written by Manoj Srivastava, and the current version of debi was written by Julian Gilbey <jdg@debian.org>. They have
been combined into this program by Julian Gilbey.
DEBIAN Debian Utilities CVS-DEBC(1)