Sponsored Content
Top Forums UNIX for Dummies Questions & Answers FIND and REMOVE HELP NEEDED!!! Post 302089389 by grial on Tuesday 19th of September 2006 02:42:29 AM
Old 09-19-2006
Quote:
Originally Posted by scooter17
thanks for the code. however, when i run it, it says
" find: bad option -rf "

am i doing something wrong? this is what i have

find / -type d -name <TestFolder> -exec rm -rf {} \;

thank you
Seems to be OK, but try:

Code:
find / -type d -name  <TestFolder> -exec rm \-rf {} \;

Notice the "\" back slash.

(-rf are "rm" parameters: recursive and force)

Regards.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove a File - Help Needed

Hi, I have created a file "-f.txt" or "-f" and now i want to remove this file, I have tried rm -f -f, but you would have understood the problem i am facing. Now please let me know what needs to be done, Also one more question i want to know the difference between Hard Link and Soft Link and... (3 Replies)
Discussion started by: amitkhiare
3 Replies

2. UNIX for Dummies Questions & Answers

Find and Remove help needed!!!!

thank you for the help. (1 Reply)
Discussion started by: scooter17
1 Replies

3. Shell Programming and Scripting

find explantion needed

Dear Experts, please can any body help me to explain the below commants in detail what exactly its doing what we mean by -mtime +2 and -exec and rm{}; find /home/data/ab.200* -mtime +2 -exec rm {} \; Regards, SHARY (3 Replies)
Discussion started by: shary
3 Replies

4. Shell Programming and Scripting

please help me how to script atomatic remove file that are not needed

Im new to this forum and also Unix. I need help to solve this Directory Clean-up. Im not sure how to do but i wish someone could help me out. I have to develop a script that can be used to automatically remove files that are not needed. The final script will be developed in two iterations. The... (1 Reply)
Discussion started by: sunilnbalar
1 Replies

5. UNIX for Dummies Questions & Answers

Help needed with find command

Hi Guys, Can someone help with this. I have to find out a file name which calls the following sql script "abhishek_to_sdw.sql". In other words it contains a pattern like "abhishek_to_sdw.sql". I have found out using "find" command that the file abhishek_to_sdw.sql is existing on the... (4 Replies)
Discussion started by: max29583
4 Replies

6. Shell Programming and Scripting

Help needed to remove a char from a specified sub-string

Hi! I'm having trouble usind sed to remove the char ' from within a database's varchar register's sql. For example, on the following sql: INSERT INTO patrimonio_municipal.patrimonio_municipal_airc_tmp Values('|Estação Elevatória|',|16723|,'|Grandes Reparações|', '|2010-03-26... (3 Replies)
Discussion started by: cremat0rio
3 Replies

7. UNIX for Dummies Questions & Answers

Remove Permission Help needed.

How would i remove rwx permission for group and other users for all hidden files (except . and ..) inside /root using a one line command. I have tried below command. # chmod og-rwx /root/.* but this has removed rwx permission for . and .. files . As a result # ls -ld /root drwx------ 3... (4 Replies)
Discussion started by: pinga123
4 Replies

8. Shell Programming and Scripting

shell command to remove some XML tag is needed

Hi all, I have a file which i have to remove some line from it, the lines that i have to remove from my file is as below: </new_name></w"s" langue="Fr-fr" version="1.0" encoding="UTF-8" ?> <New_name> and it is finding at the middle of my file, is there any command line in linux to do it or do... (10 Replies)
Discussion started by: id_2pc
10 Replies

9. UNIX for Dummies Questions & Answers

help needed: remove space between certain columns

dear all, i have a data looks like this (i have 3000 columns): rs123 A T T G C C C C C C A A A A A A A A A A A ... rs154 T T G C C C C C A A A A A A A A A A T T G ... rs126 A C C C C C A A A A A A A A A A A A T T G ... I want to remove all the space after the 2nd column and make the... (2 Replies)
Discussion started by: forevertl
2 Replies

10. UNIX for Beginners Questions & Answers

Bash to remove find and remove specific extension

The bash below executes and does find all the .bam files in each R_2019 folder. However set -x shows that the .bam extension only gets removed from one .bam file in each folder (appears to be the last in each). Why is it not removing the extension from each (this is $SAMPLE)? Thank you :). set... (4 Replies)
Discussion started by: cmccabe
4 Replies
GAUCHE-INSTALL(1)						  Gauche Commands						 GAUCHE-INSTALL(1)

NAME
gauche-install - install files and set attributes SYNOPSIS
1)* gauche-install [OPTION...] FILE DEST 2)* gauche-install [OPTION...] FILE... DIRECTORY 3)* gauche-install -d [OPTION...] DIRECTORY... 4) gauche-install -T DIRECTORY [OPTION...] FILE... 5) gauche-install -U DIRECTORY [OPTION...] FILE... DESCRIPTION
gauche-install is a program to install and remove files. On installation it allows to set ownership and permissions. This command is upward compatible with BSD install(1) and can be used as a drop-in replacement of it. Notably, 1st, 2nd and 3rd command-line format above are compatible with BSD install. This command is provided mainly for Gauche's extension packages to have simpler installation and configuration process. Being certain that gauche-install is available, those packages don't need to worry about subtle differences between various install(1) commands. The first format copies FILE on the file or in the directory named by DEST. The second format copies FILE ... into the directory DIRECTORY. The third format ensures DIRECTORY exists. If it doesn't, the command creates the path to the DIRECTORY , including any intermediate ones. The fourth format installing FILE ... to the DIRECTORY. It is more convenient than the first and second formats in the following regards: * If the destination directory does not exist, it is created (with any intermediate paths as needed). * The list of files can be empty, so that when the list of installed files can be generated by configuration, you don't need to handle the empty case specially in Makefile. (With BSD install format, empty file list yields an error.) * The directory prefix of files are preserved within the destination directory. This is handy to install subtree of files. For example, the following command installs '/usr/share/foo/main', '/usr/share/foo/conf/x' and '/usr/share/foo/conf/y' with a single command. gauche-install -T /usr/share/foo main conf/x conf/y Giving -p option suppresses this behavior and strips any directory prefix like the second format. The following command line installs '/usr/share/foo/main', '/usr/share/foo/x' and '/usr/share/foo/y'. gauche-install -T /usr/share/foo -p main conf/x conf/y The fifth format removes FILE ... in the DIRECTORY. Irrelevant options are ignored, so it is handy to uninstall files just by chaning -T in the fourth format to -U. OPTIONS
-C, --canonical-suffix This is used specially to install Gauche's autogenerated Scheme source by experimental precompilation. The generated file has a *.sci. Upon installation, this command replaces the suffix for *.scm. -d, --directory Creates directories. (3rd format only). It is only for the compatibility. Using the -T option, the destination directories are created automatically if missing. -g, --group=GROUP Change group of the installed file. -h, --help Show summary of options. -m, --mode=MODE Change mode of the installed file. -n, --dry-run Just prints what actions to be done. -o, --owner=OWNER Change owner of the installed file. -p, --strip-prefix=PREFIX Strip PREFIX directories from FILE(s) before installation. (4th/5th format only). --shebang=PATH Adds #!PATH before the file contents. Useful to install scripts. -S, --srcdir=directory Look for files within directory; useful if VPATH is used in Makefiles. -T, --target=directory Installs files to the directory, creating paths if needed. Partial path of files are preserved unless -p option is given. (4th format only) -U, --uninstall=directory Reverse of -T, e.g. removes files from its destination. Other options (except -h and -n) are ignored. -v, --verbose Work verbosely. DIAGNOSTICS
gauche-install exits with status 0 on success. SEE ALSO
gauche-package(1), install(1) The program will be documented fully by the Gauche Developers' Reference available via the info(1) system. AUTHORS
Shiro Kawai <shiro@acm.org> Author. Jens Thiele <karme@karme.de> Wrote this manpage for the Debian system. COPYRIGHT
Copyright (C) 2010 Jens Thiele Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty. Gauche 0.9.1 GAUCHE-INSTALL(1)
All times are GMT -4. The time now is 11:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy