Sponsored Content
Full Discussion: Recursive remove files
Top Forums UNIX for Beginners Questions & Answers Recursive remove files Post 302969324 by spirospap on Monday 21st of March 2016 03:13:45 PM
Old 03-21-2016
This will delete the .txt, .tar and .tif files as well and these have to survive.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

recursive copy of hidden files

I need to know how to copy hidden files recursively? cp -r sourceDir/* targetDir/. ignores the hidden files. Thank you!! (2 Replies)
Discussion started by: usfrog
2 Replies

2. Programming

Recursive remove directory.

What is the best way to completely remove dir with it's content ??? rmdir deletes only EMPTY dirs as i know. The man page of remove function says "remove() deletes a name from the file system." Can it remove any dir recursively ??? :rolleyes: (7 Replies)
Discussion started by: Trump
7 Replies

3. UNIX for Dummies Questions & Answers

Recursive remove files with exception

Hi, I want to remove a directory recursively except the inside directories calles .SYNC (designsync dirs) I am looking for something like: \rm -rf < find . * | grep -v .SYNC The find works ok but I do not know how to redirect it. Please help. Regards, Ziv (1 Reply)
Discussion started by: zivsegal
1 Replies

4. Shell Programming and Scripting

recursive saving of files and folders

Hi all I have a bash script, that loops through a folders files and all subfolders for .shtml files. It looks for a string and replaces it, creating a backup of the original file. This all works great, but I'd like, when the backup is done, that the files are then also created in their... (4 Replies)
Discussion started by: terrid
4 Replies

5. UNIX for Dummies Questions & Answers

recursive delete files from txt file or?

i have a txt file of image names that have to be deleted in pwd how can i use the txt file to delete the files in pwd and is it possible?--i might be able to import the txt files into a spreadsheet ahd same it as a csv file. i want it to be done recursive lly --what i mean is teh sysem goes thru... (4 Replies)
Discussion started by: plener
4 Replies

6. Shell Programming and Scripting

Command running for all recursive files

hi, I have installed ACL(access control list) in my ubuntu box in order to know which all are the users having permissions to read and write the files; If u run the command like; $getfacl /root/ It will give following output: # file: root/ # owner: root # group: root user::rwx... (2 Replies)
Discussion started by: ajaypadvi
2 Replies

7. Shell Programming and Scripting

Recursive looping through files and directories

hi; i need a script which will go to all directories and subdirectories and print the filenames as follow; here i m printing only files listing in current directory reason i m doing this is coz i want to perform some operations according to filename achieved so cant use find command;... (4 Replies)
Discussion started by: ajaypadvi
4 Replies

8. UNIX for Advanced & Expert Users

Recursive grep with only certain types of files

Can I please have some ideas on how to do a recursive grep with certain types of files? The file types I want to use are *.c and *.java. I know this normally works with all files. grep -riI 'scanner' /home/bob/ 2>/dev/null Just not sure how to get it to work *.c and *.java files. (5 Replies)
Discussion started by: cokedude
5 Replies

9. HP-UX

Recursive copy of Folders with files

Dear All, I will appreciate any help received. Our system is running on hpux v1 My problem is as follows: We have many customer folders with name fd000100, fd000101 and so on e.g. (Testrun)(testsqa):/>ll /TESTrun/fd000100 total 48 drwxrwx--- 2 fq000100 test 96 Jun 27 2004... (17 Replies)
Discussion started by: mhbd
17 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)
All times are GMT -4. The time now is 02:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy