10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello There,
Here is the use cases
Input folders
dropbox/project/abc/
dropbox/project/pqr/
dropbox/project/lmn/
dropbox/project/xyz/
Target Folders
/data/abc/
/data/pqr/
/data/lmn/
/data/xyz/ (2 Replies)
Discussion started by: TreasureCookies
2 Replies
2. Shell Programming and Scripting
Hi guys!
I hope this hasn't been asked too many times but,
Would someone be able to help me write or point me in the direction to some helpful tutorials in order to write a script to transfer a file directly to a server via SSH from a linux based computer.
The script should do as following:... (2 Replies)
Discussion started by: craigwilkinson
2 Replies
3. Solaris
Hi,
I have Solaris-10 (Update-7). This is having ZFS file-system and 10 sparse-root zones are there. I want to install Solaris-10 recommended patch cluster on it, but not sure, how to go ahead with procedure. I want to patch one side of the mirror and keep intact another side safe in case of... (6 Replies)
Discussion started by: solaris_1977
6 Replies
4. Shell Programming and Scripting
i have got many files like this in my folder temp(say)
imp_02042008.txt for date 02-04-2008
imp_03092009.txt for date 03-09-2009
imp_25112009.txt for date 25-11-2009
...................
........
in some folder.
and one of my shell code uses one of the above files based on date.... (9 Replies)
Discussion started by: Maruti
9 Replies
5. Shell Programming and Scripting
i have got many files like this in my folder temp(say)
imp_02042008.txt for date 02-04-2008
imp_03092009.txt for date 03-09-2009
imp_25112009.txt for date 25-11-2009
...................
........
in some folder.
and one of my shell code uses one of the above files based on date.... (0 Replies)
Discussion started by: Maruti
0 Replies
6. Solaris
Hi
I have a folder will all the file ftp in everyday. I have to go in every morning to check to see everynight have all the 2000+ file have been all FTP in.
so every morning i will check like this
# ls -l *_20080904*_20080904* |wc
if there is 2714 that mean is correct.
File name:... (13 Replies)
Discussion started by: summerpeh
13 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
With curl I can fetch a tar archive from a web server which contains a file ending with .scf which I am interested in. Unfortunately the file name may vary and the subdirectory inside the tar archive may change. I can manually browse the directory structure and extract the file and then... (3 Replies)
Discussion started by: tkrahn
3 Replies
8. Shell Programming and Scripting
Hello,
A file named c15a is registered on my disc all 10 minutes.
I must rename that file with the actually Date and with an automatic increase number on 5 digits, so as : c15a.20070528.00001 and the next file will be : c15a.20070528.00002.
The next day so tomorrow the five digits must be... (6 Replies)
Discussion started by: steiner
6 Replies
9. UNIX for Advanced & Expert Users
Hello,
I am a beginner with korn shell scripting. I have got a text file that gets produced every night and I need to transfer it to a windows shared area.
Is there any command line script (e.g FTP) that I could use to transfer the file automatically without manual intervention everyday?
Any... (4 Replies)
Discussion started by: tagem
4 Replies
10. Shell Programming and Scripting
Hi ,
can any one help me with a perl script for automating file transfer ?
At each step i need to check for the success or failure .
I am trying to connect to the target system for a specified number of times.if it doesnt connect even after 3 retries then the script should exit.
and i have to... (8 Replies)
Discussion started by: sveera
8 Replies
CLEAN-BINARY-FILES(1) User Commands CLEAN-BINARY-FILES(1)
NAME
clean-binary-files - remove a third party binaries (JARs) from an upstream archive
SYNOPSIS
clean-binary-files {[-f {-, instructions_file}], [-e exclusion_file] [-l]} [-a archive_file] [-d custom_jar_map] [-n] [-p] [-s]
OPTIONS
-f The instructions file, specifying which files to keep and which to remove
-e The exclusions file, specifying special binary files that are to be preserved, or non-binary files that are to be removed.
-l Only list instructions (to put in instructions file), do not delete anything.
-a Archive file on which actions will be performed, as opposed to current directory
-d A custom jar map file (has priority over the generic one).
-n No symlinks (i.e. only clean jars, don't run build-jar-repository afterwards)
-p Preserve original file names (-p to build-jar-repository)
-s Silent mode. Won't output commands during cleanup
-f The instructions file, specifying which files to keep and which to remove
-e - The exclusions file, specifying special binary files that are to be preserved, or non-binary files that are to be removed.
-l - Only list instructions (to put in instructions file), do not delete anything.
-a - Archive file on which actions will be performed, as opposed to current directory
-d - A custom jar map file (has priority over the generic one).
-n - No symlinks (i.e. only clean jars, don't run build-jar-repository afterwards)
-p - Preserve original file names (-p to build-jar-repository)
-s - Silent mode. Won't output commands during cleanup
EXAMPLES
Suppose there is a vanilla tarball abc-1.tar.gz with some binary files (jars) in it. In the source repo, we would want a clean copy without
any jars. We can use the scripts to achieve this:
To generate an instructions file:
clean-binary-files -e <exclusion file> -l -a abc-1.tar.gz > instructions
This creates an 'instructions' file, which contains info on what stays and what goes.
Then, one can run:
clean-binary-files -f instructions -n -a abc-1.tar.gz
This would create abc-1-clean.tar.gz for uploading into jpp/fedora/etc. repositories with no binary (jar) files.
Alternatively, if you have a vanilla tarball, you can clean and create symlinks in it's place all at once by:
clean-binary-files -e <exclusion file> -d <custom_jar_map> -a abc-1.tar.gz
Note: If the -a <file> is not given to clean-binary-files(1), all actions are performed on current directory.
SEE ALSO
Regular Manual Pages
check-binary-files(1), create-jar-ks(1), jpackage-utils(7)
Documentation
Further reading should be found in clean-binary-files.txt located in your standard documentation directory.
Original mail is here:
https://www.zarb.org/pipermail/jpackage-discuss/2005-November/009158.html
AUTHOR
Written by Deepak Bhole
REPORTING BUGS
Report bugs using JPackage Bugzilla (http://www.jpackage.org/bugzilla/)
clean-binary-files (jpackage-utils) 1.7.5 February 2009 CLEAN-BINARY-FILES(1)