Sponsored Content
Full Discussion: Find and delete
Top Forums Shell Programming and Scripting Find and delete Post 302976299 by MadeInGermany on Monday 27th of June 2016 01:58:09 PM
Old 06-27-2016
-name "*" omits ".?*" in some versions of find. But in any case there should be -type f or \! -type d to ensure there is no rm attempt on directories (that take extra time).
This User Gave Thanks to MadeInGermany For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Find who has permission to delete

All, I am running a script , which has permision as below -r-xr-x--- 1 pmgr ffw 11660 Sep 3 2003 ccln and tring to delete the file in the directory inter (sys212:pct:/>) ll | grep ^d dr-xr-xr-x 32 bin bin 8192 Dec 24 03:24 etc drwxr-xr-x 32... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

2. UNIX for Dummies Questions & Answers

To Know this find and delete will work ???..

All, I have a question . I have a directoy which have permision like drwxrwxr-x 5 root cusr 8192 Dec 5 12:50 test I dont have write permision to delete . inside the directory i am having many files . with permision like $cd test ... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

3. UNIX for Dummies Questions & Answers

Find a word and delete the line

Hi I have a text file like this name today.txt the request has been accepted the scan is successful at following time there are no invalid packages 5169378 : map : Permission Denied the request has been accepted Now what i want do is I want to search the today.txt file and if i... (1 Reply)
Discussion started by: gsusarla
1 Replies

4. Shell Programming and Scripting

find a line and delete it.

Hi All, I would like to fine some entry in a file, if it found, it should remove the same in the same file. Please some one help me. need to find and en entry 'bea' from hosts file. If it found it should write it same host file. but i am not geting it. If i am writing it in new file... (2 Replies)
Discussion started by: bullz26
2 Replies

5. UNIX for Advanced & Expert Users

Find and delete the line

Hi I have a text file like this name today.txt the request has been accepted the scan is successful at following time there are no invalid packages 5169378 : map : Permission Denied the request has been accepted Now what i want do is I want to search the today.txt file and if i... (8 Replies)
Discussion started by: gsusarla
8 Replies

6. Shell Programming and Scripting

Find and delete everything else...

Ok, new user, relatively new to scripting and need to move to the next stage with awk or sed or both. I have been using them both at a basic level in my script. I want to find a line, no problem, but then I want to delete everything on that line except for the word I am looking for AND the... (4 Replies)
Discussion started by: derekphl
4 Replies

7. UNIX for Dummies Questions & Answers

find and delete files

hi all , i want to find and interactively delete all the files having size greater than 20 bytes using "find" and other commands..... (8 Replies)
Discussion started by: sonu_pal
8 Replies

8. UNIX for Advanced & Expert Users

Find and delete not working

Hi, I have a .ksh script which finds all the directories older than 84 days and tries to housekeep. Below is the command used find * -depth -type d -ctime +84 -exec rm -rf {} \; The above command lists all the directories ie child and parent directory in descending order which are more... (0 Replies)
Discussion started by: annamalai77
0 Replies

9. Shell Programming and Scripting

Find, backup and delete.

Is there any error while executing this script.. #!/bin/bash FINDPATH=/home/ftpcdr/cdr/192.168.3.91 BACKPATH=/home/ftpcdr/backup STATUS=$? cd $FINDPATH find -type d -mtime +30 -print > $BACKPATH/list.txt # FIND FILES THAT CREATED BEFORE 30 DAYS. FIRST=$(ls $BACKPATH/list.txt | grep... (5 Replies)
Discussion started by: leo_ultra_leo
5 Replies

10. Shell Programming and Scripting

Pattern find and delete

Hi Team, Could someone please help me on this .. While doing my day to day activity I use to delete manually the repeated ones .. For example 05 & 06 are my hosts.. Now I need to print only 05 and 06, 05-06 is not required. This is how I generate my report daily .. DBG-STG1-05... (5 Replies)
Discussion started by: Nallachand
5 Replies
LDCONFIG(8)						     Linux Programmer's Manual						       LDCONFIG(8)

NAME
ldconfig - configure dynamic linker run-time bindings SYNOPSIS
/sbin/ldconfig [ -nNvXV ] [ -f conf ] [ -C cache ] [ -r root ] directory ... /sbin/ldconfig -l [ -v ] library ... /sbin/ldconfig -p DESCRIPTION
ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file /etc/ld.so.conf, and in the trusted directories (/lib and /usr/lib). The cache is used by the run-time linker, ld.so or ld- linux.so. ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated. ldconfig will attempt to deduce the type of ELF libs (i.e., libc5 or libc6/glibc) based on what C libs, if any, the library was linked against. Some existing libs do not contain enough information to allow the deduction of their type. Therefore, the /etc/ld.so.conf file format allows the specification of an expected type. This is used only for those ELF libs which we can not work out. The format is "dirname=TYPE", where TYPE can be libc4, libc5, or libc6. (This syntax also works on the command line.) Spaces are not allowed. Also see the -p option. ldconfig should normally be run by the superuser as it may require write permission on some root owned directories and files. OPTIONS
-v Verbose mode. Print current version number, the name of each directory as it is scanned, and any links that are created. Overrides quiet mode. -n Only process directories specified on the command line. Don't process the trusted directories (/lib and /usr/lib) nor those speci- fied in /etc/ld.so.conf. Implies -N. -N Don't rebuild the cache. Unless -X is also specified, links are still updated. -X Don't update links. Unless -N is also specified, the cache is still rebuilt. -f conf Use conf instead of /etc/ld.so.conf. -C cache Use cache instead of /etc/ld.so.cache. -r root Change to and use root as the root directory. -l Library mode. Manually link individual libraries. Intended for use by experts only. -p Print the lists of directories and candidate libraries stored in the current cache. FILES
/lib/ld.so run-time linker/loader /etc/ld.so.conf File containing a list of colon, space, tab, newline, or comma-separated directories in which to search for libraries. /etc/ld.so.cache File containing an ordered list of libraries found in the directories specified in /etc/ld.so.conf, as well as those found in /lib and /usr/lib. SEE ALSO
ldd(1), ld.so(8) COLOPHON
This page is part of release 3.55 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
2012-05-10 LDCONFIG(8)
All times are GMT -4. The time now is 11:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy