07-10-2008
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
fsvs-url-format
FSVS - URL format(5) fsvs FSVS - URL format(5)
NAME
Format of URLs -
FSVS can use more than one URL; the given URLs are overlaid according to their priority. FSVS can use more than one URL; the given URLs
are overlaid according to their priority.
For easier managing they get a name, and can optionally take a target revision.
Such an extended URL has the form
['name:'{name},]['target:'{t-rev},]['prio:'{prio},]URL
where URL is a standard URL known by subversion -- something like http://...., svn://... or svn+ssh://....
The arguments before the URL are optional and can be in any order; the URL must be last.
Example:
name:perl,prio:5,svn://...
or, using abbreviations,
N:perl,P:5,T:324,svn://...
Please mind that the full syntax is in lower case, whereas the abbreviations are capitalized!
Internally the : is looked for, and if the part before this character is a known keyword, it is used.
As soon as we find an unknown keyword we treat it as an URL, ie. stop processing.
The priority is in reverse numeric order - the lower the number, the higher the priority. (See url__current_has_precedence() )
Why a priority?
When we have to overlay several URLs, we have to know which URL takes precedence - in case the same entry is in more than one. (Which is
not recommended!)
Why a name?
We need a name, so that the user can say 'commit all outstanding
changes to the repository at URL x', without having to remember the full URL. After all, this URL should already be known, as there's a
list of URLs to update from.
You should only use alphanumeric characters and the underscore here; or, in other words, w or [a-zA-Z0-9_]. (Whitespace, comma and
semicolon get used as separators.)
What can I do with the target revision?
Using the target revision you can tell fsvs that it should use the given revision number as destination revision - so update would go
there, but not further. Please note that the given revision number overrides the -r parameter; this sets the destination for all URLs.
The default target is HEAD.
Note:
In subversion you can enter URL@revision - this syntax may be implemented in fsvs too. (But it has the problem, that as soon as you
have a @ in the URL, you must give the target revision every time!)
There's an additional internal number - why that?
This internal number is not for use by the user.
It is just used to have an unique identifier for an URL, without using the full string.
On my system the package names are on average 12.3 characters long (1024 packages with 12629 bytes, including newline):
COLUMNS=200 dpkg-query -l | cut -c5- | cut -f1 -d' ' | wc
So if we store an id of the url instead of the name, we have approx. 4 bytes per entry (length of strings of numbers from 1 to 1024).
Whereas using the needs name 12.3 characters, that's a difference of 8.3 per entry.
Multiplied with 150 000 entries we get about 1MB difference in filesize of the dir-file. Not really small ...
And using the whole URL would inflate that much more.
Currently we use about 92 bytes per entry. So we'd (unnecessarily) increase the size by about 10%.
That's why there's an url_t::internal_number.
Author
Generated automatically by Doxygen for fsvs from the source code.
Version trunk:2424 11 Mar 2010 FSVS - URL format(5)