03-30-2012
Quote:
Originally Posted by
Yeaboem
maybe I'm missing your point, but if you don't want to recurse, then don't use 'find'. If your favorite shell's filename expansion is too weak to let you use complex regular expressions, then use 'echo *' or 'ls' and pipe to your favorite 'grep'?
Hi,
Thanks for your response.
I need to use find 'coz I need to work on files that are x-number of day's old? Can I achieve the same with just using echo, ls and pipe?
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I need to perform a non-recursive find in Unix. Sounds simple, but it doesn't actually work. The command ALWAYS searches through the subdirectories.
Any ideas? I am on DEC Unix :-( (3 Replies)
Discussion started by: christallott
3 Replies
2. UNIX for Dummies Questions & Answers
Hello, I am trying to search a directory for all files matching "G*" without looking in sub-directories "success" and "error". I've searched this forum and found the following syntax, but can't make it work:
find . \( ! -name success -prune -name error -prune \) -type f -name "G*"
Have... (6 Replies)
Discussion started by: alexkav
6 Replies
3. UNIX for Dummies Questions & Answers
Hi everyone,
I'm using a recursive find (you know the type, find . -name qwert*) to find a set of files. However, because I'm new to the system and there is not much documentation about these particular files I'm trying to find them using this recursive find.
I started off at the location... (3 Replies)
Discussion started by: spanish_tony
3 Replies
4. Shell Programming and Scripting
I HAVE A TEXT FILE CONTAINING THE VALUES
1.CPP
2.CPP
3.CPP
4.CPP
5.CPP
6.CPP
I WANT TO TAKE EACH .CPP AND USE THE FIND COMMAND TO FIND THE LATEST VERSION OF THE FOLDER IN WHICH IT IS PRESENT.
HOW DO I IMPLEMENT IT IN A WHILE LOOP
I TRIED SOMETHING LIKE THIS
WHILE
CAT... (3 Replies)
Discussion started by: ultimatix
3 Replies
5. UNIX for Advanced & Expert Users
Hi,
I have question is related to find command. I want to find command should search in current folder only not recursive mode(sub-folders).
I found a one way of,
find . \( -name success -prune \) -o -name "Rajini*"
How ever, my current folder is having lots sub-folders and am not... (7 Replies)
Discussion started by: Nagapandi
7 Replies
6. UNIX for Advanced & Expert Users
I was working on a shell script and found that the find command took too long, especially when I had to execute it multiple times. After some thought and research I came up with two functions.
fileScan()
filescan will cd into a directory and perform any operations you would like from within... (8 Replies)
Discussion started by: newreverie
8 Replies
7. Shell Programming and Scripting
Tricky one:
I want to do several things all at once to blow away a directory (rm -rf <dir>)
1) I want to find all files recursively that have a specific file extension (.ver) for example.
2) Then in that file, I want to grep for an expression ( "sp2" ) for example.
3) Then I want to... (1 Reply)
Discussion started by: jvsrvcs
1 Replies
8. UNIX for Dummies Questions & Answers
Hello Unix Gurus,
I am using the following find commands:
1)
find Input_Path -name '*.' -exec mv -f
{} Outputpath \;
2)
find Inputpath -name '*.' -exec cp
{} Outputpath \;
3)
find Somepath -name '*.'
Now the problem is my Unix version does not support maxdepth Option for find... (7 Replies)
Discussion started by: pchegoor
7 Replies
9. UNIX for Dummies Questions & Answers
Is there a way to use the find command to recursively scan directories for files greater than 1Gb in size and print out the directory path and file name only?
Thanks in advance. (6 Replies)
Discussion started by: jimbojames
6 Replies
10. UNIX for Dummies Questions & Answers
Hi All
I have a requirement to find the file that are most latest to be modified in each directory. Can somebody help with the command please?
E.g of the problem.
The directory A is having sub directory which are having subdirectory an so on.
I need a command which will find the... (2 Replies)
Discussion started by: sudeep.id
2 Replies
LEARN ABOUT DEBIAN
fslint-gui
fslint-gui(1) User Commands fslint-gui(1)
NAME
fslint-gui - A GUI wrapper for the individual fslint command line tools
SYNOPSIS
fslint-gui [OPTIONS] [PATHS]
DESCRIPTION
fslint is a toolset to find various problems with filesystems, including duplicate files and problematic filenames etc.
Individual command line tools are available in addition to the GUI and to access them, one can change to, or add to $PATH the
/usr/share/fslint/fslint directory on a standard install. Each of these commands in that directory have a --help option which further
details its parameters.
findup - find DUPlicate files
findnl - find Name Lint (problems with filenames)
findu8 - find filenames with invalid utf8 encoding
findbl - find Bad Links (various problems with symlinks)
findsn - find Same Name (problems with clashing names)
finded - find Empty Directories
findid - find files with dead user IDs
findns - find Non Stripped executables
findrs - find Redundant Whitespace in files
findtf - find Temporary Files
findul - find possibly Unused Libraries
zipdir - Reclaim wasted space in ext2 directory entries
PARAMETERS
If [PATHS] are specified, they become the default search path, otherwise the current directory becomes the default.
--version
Display the fslint version and exit
--help Display help for tool specific options
AUTHOR
Written by Padraig Brady
REPORTING BUGS
Report bugs to <P@draigBrady.com>.
COPYRIGHT
Copyright (C) 2000-2009 Padraig Brady <P@draigBrady.com>.
This program 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 of the License, or 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, which is available at www.gnu.org
fslint July 2009 fslint-gui(1)