Exact, if name of subdirectory is the name of file where to launch command then this file will delete.
So, We can just repeat -type f after -o connector:
Regards.
Last edited by vbe; 10-08-2016 at 10:59 AM..
Reason: typo - added the missing i to/icode...
I need to find the largest files in a directory & it's subdirectories.
I'm not sure what options on ls -l will work to give me this. or is there another way to do this?
Thanks,
igidttam (6 Replies)
Hi,
I have to rename all occurance of CUST_MST to RESELLER_MST both in filename and file content under a directory (say D0) which contains multiple (2-3 levels) sub directory.
Example:
D0 -> D1 -> D2 has a file CUST_MST_TEMP.txt
this contains :
> cat /D0/D1/D2/CUST_MST_TEMP.txt... (3 Replies)
I am wanting to find files within a directory that are over a certain number of days old and copy them to another directory. And unfortunately not having much luck.......is someone able to help.
Would also like to add that there are literally thousands of files that I am wanting to copy in one... (3 Replies)
Hi Everyone,
It would be helpful if someone helps me on this.
Requirement:
I have a directory which includes different types of files(for example *.java,*.class),but not restricted for only these types. I need to find the same types of file extensions from its directories and subdirectories... (3 Replies)
find . -type f -name "*.sql" -print|xargs perl -i -pe 's/pattern/replaced/g'
this is simple logic to find and replace in multiple files & folders
Hope this helps.
Thanks
Zaheer (0 Replies)
How can I list the files in a directory and just show the file size, date stamp, timestamp and file name..
I've been trying to ls -lrt the directory to a file and then use the cut command but I'm not having any luck with getting the proper results.. I thought i could use the -f switch and count... (4 Replies)
Hi, I hope the title does not scare people to look into this thread but it describes roughly what I'm trying to do. I need a solution in PHP.
I'm a programming beginner, so it might be that the approach to solve this, might be easier to solve with an other approach of someone else, so if you... (0 Replies)
Hiiii Friends
I have 2 files with huge data. I want to compare this 2 files & if they hav same set of vales in specific rows & columns i need to get that value from one file & replace it in other.
For example: I have few set data of both files here:
a.dat:
PDE-W 2009 12 16 5 29 11.11 ... (10 Replies)
Hi All,
Request your expertise in tackling one requirement in my project,(i dont have much expertise in Shell Scripting). The requirement is as below,
1) We store the last run date of a process in a file. When the batch run the next time, it should read this file, get the last run date from... (1 Reply)
I'm working on a bash script to move files from one location, to two. The first part of my challenge is intended to check a particular directory for contents (e.g. files or other items in it), if files exists, then send the list of names to a txt file and email me the text file. If files do not... (4 Replies)
Discussion started by: Nvizn
4 Replies
LEARN ABOUT REDHAT
mknmz
MKNMZ(1) Namazu Project MKNMZ(1)NAME
mknmz - an indexer of Namazu
SYNOPSIS
mknmz [options] <target>...
DESCRIPTION
mknmz 2.0.9, an indexer of Namazu.
Target files:
-a, --all
target all files.
-t, --media-type=MTYPE
set the media type for all target files to MTYPE.
-h, --mailnews
same as --media-type='message/rfc822'
--mhonarc
same as --media-type='text/html; x-type=mhonarc'
-F, --target-list=FILE
load FILE which contains a list of target files.
--allow=PATTERN
set PATTERN for file names which should be allowed.
--deny=PATTERN
set PATTERN for file names which should be denied.
--exclude=PATTERN
set PATTERN for pathnames which should be excluded.
-e, --robots
exclude HTML files containing <meta name="ROBOTS" content="NOINDEX">
-M, --meta
handle HTML meta tags for field-specified search.
-r, --replace=CODE
set CODE for replacing URI.
--html-split
split an HTML file with <a name="..."> anchors.
--mtime=NUM
limit by mtime just like find(1)'s -mtime option. e.g., -50 for recent 50 days, +50 for older than 50.
Morphological Analysis:
-c, --use-chasen
use ChaSen for analyzing Japanese.
-k, --use-kakasi
use KAKASI for analyzing Japanese.
-m, --use-chasen-noun
use ChaSen for extracting only nouns.
-L, --indexing-lang=LANG index with language specific processing.
Text Operations:
-E, --no-edge-symbol
remove symbols on edge of word.
-G, --no-okurigana
remove Okurigana in word.
-H, --no-hiragana
ignore words consist of Hiragana only.
-K, --no-symbol
remove symbols.
Summarization:
-U, --no-encode-uri
do not encode URI.
-x, --no-heading-summary do not make summary with HTML's headings.
Index Construction:
--update=INDEX
set INDEX for updating.
-Y, --no-delete
do not detect removed documents.
-Z, --no-update
do not detect update and deleted documents.
Miscellaneous:
-s, --checkpoint
turn on the checkpoint mechanism.
-C, --show-config
show the current configuration.
-f, --config=FILE
use FILE as a config file.
-I, --include=FILE
include your customization FILE.
-O, --output-dir=DIR
set DIR to output the index.
-T, --template-dir=DIR
set DIR having NMZ.{head,foot,body}.*.
-q, --quiet
suppress status messages during execution.
-v, --version
show the version of namazu and exit.
-V, --verbose
be verbose.
--debug
be debug mode.
--help show this help and exit.
REPORTING BUGS
Report bugs to <bug-namazu@namazu.org>.
COPYRIGHT
Copyright (C) 1997-1999 Satoru Takabayashi All rights reserved.
Copyright (C) 2000,2001 Namazu Project All rights reserved.
This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER-
CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
mknmz of Namazu 2.0.9 November 2001 MKNMZ(1)