Hi,
I have a problem with a simple script I am trying to write. I want a user to type grep, sed commands that are then stored in variables. Those variables are stored in a function, and the function is then called to execute the commands. The idea is that the user does it step by step.
... (4 Replies)
Hello
I do want to write a script which will check any errors say "-error" in the log file then have to send email to the concern person . And the concern person will correct the error .
Next time if the script runs eventhough the error has been corrected it will ... (1 Reply)
Hi,
I am writing a shell script that checks catalina logs on a production system and mails me if it detects errors.
It greps the logs for known errors which i have defined as variables.
The problem is the logs are huge, approx 30,000 before they rotate.
So I am forced to use grep instead... (3 Replies)
Hi,
I have written the following shell script -
Error_String="error"
var1="| grep -v note1 | grep -v note2"
grep -i $Error_String /users/mqm/Pwork/Err/*.out $var1
The above script gives error saying "grep: can't open |
grep: can't open grep
grep: can't open -v" etc
In my program... (3 Replies)
Hi guys, I have written this script, however the outcome is invalid. It contains grep search that is not needed:
Script:
#!/bin/bash
#this is a test script
FILES=$(ls /home/student/bin/dir1/*)
GREPFUNC=$(grep -E -i "login|Successfully" ORProxyTC`date '+%m%d%Y'`*.txt/ ${FILES})... (14 Replies)
I need help in the following script. I want to grep the sql errors insert into the error table and exit the shell script if there is any error, otherwise keep running the scripts.
Here is my script
#!/bin/csh -f
source .orapass
set user = $USER
set pass = $PASS
cd /opt/data/scripts
echo... (2 Replies)
Hi guys - below is my script that is checking for current file, size and timestamp.
However I added a "grep" feature in it (line in red), but not getting the desired result.
I am trying to acheive in output:
1. Show me the file name, timestamp, size and grep'ed words
It would be a... (2 Replies)
hi guys
very new to this game so excuse my ignorance. I need to create a script that simply greps for a text string and then outputs a message depending on whether the text string is there or not. The script I have setup is below, but whenever I run it I get the following error:
... (5 Replies)
HI Guys hoping some one can help
I have two files on both containing uk phone numbers
master is a file which has been collated over a few years ad currently contains around 4 million numbers
new is a file which also contains 4 million number i need to split new nto two separate files... (4 Replies)
Discussion started by: dunryc
4 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)