Sponsored Content
Top Forums UNIX for Dummies Questions & Answers find command to exclude directories Post 302213470 by SmurfGGM on Thursday 10th of July 2008 07:04:45 AM
Old 07-10-2008
find command to exclude directories

Howdy

I have this directory structure ...

eep
eepaptest
eepfatest
eepgltest
eep.old
eeppoptest
ehf
ehfaptest
ehfgltest
ehp
ehpgltest

I want to find files in these directories, but I want to exclude eep, ehf & ehp.

Cany anyone help with the correct command ??

Thanks in advance !
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find but exclude directories

Hello, I have a line in my script to find the files changed in the last 24 hours. It is as below: find /home/hary -type f -mtime -1 I now want to exclude a directory named "/home/hary/temp/cache" from the above find command. How do I add it to my script? Any help is appreciated. ... (9 Replies)
Discussion started by: tadi18
9 Replies

2. UNIX for Dummies Questions & Answers

How to Exclude multiple directories from find command?

Hi, Can some one help me how to exclude multiple directories using find command.. I have the directory structure below. /a/a1/b1 /a/c1/c2 /a/d1/d2/d3 I want to exlcude a1,c2and d3 from the above using find,can some one suggest pls.. thanks in advance... Use code tags... (1 Reply)
Discussion started by: jagadish_gaddam
1 Replies

3. Shell Programming and Scripting

Help - Find command to exclude sub-directories

Hi Forum. I'm trying to write a script that finds and deletes files that are older than 300 days. The script will read a table that contains the following 3 columns: 1st col: “Y” means sub-directory scan; "N" means no subdirectory scan 2nd col: sub-directory location 3rd col: File prefix... (7 Replies)
Discussion started by: pchang
7 Replies

4. Shell Programming and Scripting

Perl exclude directories in command line

Hi, I use find command to list all the files in a directory and its sub-directories, but the problem is to exclude certain directories during search. Can i give the directory names in command line to skip them and search rest of the directories? For example i have directories: test ../test1... (1 Reply)
Discussion started by: nmattam
1 Replies

5. UNIX for Dummies Questions & Answers

Find command to exclude directories and setup alias or script?

Hi, Firstly - sorry for the duplicate my other post looked like i was posting a how to for people. But i am wanting some help :P I want to search from / to find files and exclude my mounted ntfs drives. I have found this thread (Which I can't post the URL to until i have 5 posts) it's... (4 Replies)
Discussion started by: mightymouse2045
4 Replies

6. UNIX for Dummies Questions & Answers

Using grep command to find the pattern of text in all directories and sub-directories.

Hi all, Using grep command, i want to find the pattern of text in all directories and sub-directories. e.g: if i want to search for a pattern named "parmeter", i used the command grep -i "param" ../* is this correct? (1 Reply)
Discussion started by: vinothrajan55
1 Replies

7. AIX

Exclude Directories in my tar command

Hi, im having some issues after i execute the next command: tar -cvf /varios/restore/test.tar -X /jfma/test1/excludefile /jfma | gzip -c > /varios/restore/test.tar.gz this creates the desired "test.tar.gz" file, but whe i try to open it it says "tar: 0511-164 There is a media read or write... (6 Replies)
Discussion started by: blacksteel1988
6 Replies

8. Shell Programming and Scripting

Exclude directories in FIND command

Can you please help tweak the below command to exclude all directories with the name "logs" and "tmp" find . -type f \( ! -name "*.tar*" ! -name "*.bkp*" \) -exec /usr/xpg4/bin/grep -i "user_1" /dev/null {} + >result.out bash-3.2$ uname -a SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v... (9 Replies)
Discussion started by: mohtashims
9 Replies

9. Shell Programming and Scripting

Need Tar Ball command to exclude directories

Hi, uname -a SunOS mymac 5.11 11.2 sun4u sparc SUNW,SPARC-Enterprise I need to tar a folder /tmp/moht but do not want these three folders to be included in the tar file -> savejpg, bmpsave and imgsave I tried --exclude, -path, -not options but it says bad option Can you help me with... (3 Replies)
Discussion started by: mohtashims
3 Replies
TZ_CONVERT(1)															     TZ_CONVERT(1)

NAME
tz_convert - Timezone converter from operating system tz format into libical format used by Orage and several other calander tools. SYNOPSIS
tz_convert [OPTION...] [INFILE] DESCRIPTION
tz_convert is a command line tool, which can be used to convert timezone data from so called tz binary format, usually used in operating systems, to libical format, used by several calenders like Orage. There are several options available to only convert certain files or files in certain directory. Or only convert part of the file and ignore for example old data. It is also possible to add new timezone files, which are based on old timezone data. There are tools, which generate ical timezones data from tz source database, but those are often not available for normal users and are difficult to use. So often libical timezones are not upto date. tz_convert reads directly the binary tz data and makes it possible to keep libical timezones up to date. The tool is mainly meant to be used by distro maintainers, but it should be easy and clear enough for all users. FILES
tz timezone files often can be found in directory /usr/share/zoneinfo. For example Europe/Helsinki. libical timezone files needs to be where you calendar can find them. For Xfce and Orage systems they are located under your Xfce directory in share/orage/libical/zoneinfo. For example Europe/Helsinki.ics. (use locate to find them.) OPTIONS
-V, --version Print version information and exit. -?, --help Show this help message and exit. --usage Show short usage summary. -i, --infile tz file name from operating system to convert from. If this is directory, all files in it are processed. Default is /usr/share/zoneinfo -o, --outfile ical timezone file name to be written. This can not be directory. It is meant to be used together with timezone parameter. This is very seldom used. Default is timezone/infile.ics -m, --message debug message level. How much exra information is shown. 0 is least and 10 is highest (1=default). May give usefull information when things do not work as expected. -l, --limit limit processing to newer than this year. Often there is a lot of old data available, which is not needed in normal day to day work and skipping unused years helps to improve performance. Default is to ignore older than year 1970 time changes. -t, --timezone timezone name to be used in the actual file. Normally file name is the same as timezone name, but if you want to create your own timezone, you need new file name, which contains some known timezone name. This is used together with outfile parameter. -r, --norecursive process only main directory, instead of all subdirectories. 0 = recursive 1 = only main directory (0=default). -c, --exclude count number of excluded directories. 5 = default (You only need this if you have more than 5 excluded directories). This is used together with exclude parameter. -x, --exclude do not process this directory, skip it. You can give several directories with separate parameters. By default directories right and posix are excluded, but if you use this parameter, you have to specify those also. You need to use exclude count if you have more than 5 exclude directories. -u, --norrule do not use RRULE ical repeating rule, but use RDATE instead. Not all calendars are able to understand RRULE correctly with timezones. (Orage should work fine with RRULE). 0 = use RRULE 1 = do not use RRULE (0=default). BUGS
Please report any bugs and enhancement requests to http://bugzilla.xfce.org/. Note that tz_convert is part of orage so bugs are reported against orage and component tz_convert. Usage related questions can be sent to xfce@xfce.org email list. HOMEPAGE
http://www.xfce.org/projects/orage/ AUTHOR
tz_convert was written by Juha Kautto <juha@xfce.org>. This manual page was written by Juha Kautto <juha@xfce.org>. 05/28/2009 TZ_CONVERT(1)
All times are GMT -4. The time now is 05:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy