03-28-2014
Sorry, I couldn't reproduce it either. It displayed every line containing the field name regardless of leading keywords or something other than a space in front of it but I can't find the grep command I used, it rolled off the screen.
At any rate, thanks for looking at it.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi there,
I'm investigating migrating a system currently running Scos osr5 to Linux (eg RH 7.2) but there are a lot of in house scripts, some of which are probably using "Sco specific" constructs etc. One I have come across is as follows,
if ????? ]
then ....etc.etc
fi
The regular... (2 Replies)
Discussion started by: pcs7088
2 Replies
2. Shell Programming and Scripting
cat *:22:B0
has the following output
2220 -50
2220 -50
2220 -51
2225 -47
2225 -50
2230 -63
2230 -50
2235 -50
2235 -50
2235 -48
2240 -53
2240 -53
2245 -51
2245 -51
2250 -52
2250 -52
2250 -50 (2 Replies)
Discussion started by: yogesh_powar
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
i am using PUTTY 0.51 release for connecting the Red hate linux box in SSH mode. its working fine but i can't able to scoll the scoll bar using scroll wheel inthe mouse. please suggest me how to solve it.
thanks in advance.
thanks and regards,
ilayans (2 Replies)
Discussion started by: ilayans
2 Replies
4. Shell Programming and Scripting
I know I asked a similar question but I want to know if there is a regular expression existing that with a korn shell cmd, finds any timestamp data records in a file where it is greater then a timestamp in a shell variable ?
something like :
grep all records where it has a timestamp >... (5 Replies)
Discussion started by: Browser_ice
5 Replies
5. Shell Programming and Scripting
Actually I got a list of file end with *.txt
I want to use the same command apply to all the *.txt
Thus I try to find out the fastest way to write those same command in a script and then want to let them run automatics.
For example:
I got the file below:
file1.txt
file2.txt
file3.txt... (4 Replies)
Discussion started by: patrick87
4 Replies
6. Shell Programming and Scripting
For example:
I got a list of file end at .txt. I want all of them do the same command like
grep '^@' and attached it to a output .sh file.
This is the command I type:
ls *.txt | awk '{print "grep \' \^\@\' ",$1}' > txt.sh
My desired output is when I type the command "more txt.sh "
The... (4 Replies)
Discussion started by: patrick87
4 Replies
7. UNIX for Advanced & Expert Users
hi,
1. When i am deleting file in the linux machine i am getting below error message.
rm text.fil
rm: remove regular file `text.fil'? y
rm: cannot remove `text.fil': Read-only file system
From su also i tried i am getting same error message.
2. Some times the file permissions and user name... (1 Reply)
Discussion started by: coconut.ramu
1 Replies
8. Shell Programming and Scripting
i have a log file...in that there is a data like
oss1 F:\app\data\misc\server 012-07-31 08:35:15 8.1.1.
oss2 F:\app\data\misc\server 012-07-31 08:36:15 8.1.2.
oss3 F:\app\data\misc\server 012-07-31 08:37:15 8.1.3.
pss4 F:\app\data\misc\server 012-07-31... (20 Replies)
Discussion started by: navsan420
20 Replies
9. UNIX for Dummies Questions & Answers
Dear all,
my question is about grep.
i have two files.
the first one is a list with ids (line number 188) like this:
comp10045_c0_seq1
comp10118_c0_seq1
comp10221_c0_seq2
comp10503_c0_seq1
comp10504_c0_seq1
comp10504_c0_seq2
comp10631_c0_seq1
comp10631_c0_seq2
comp10646_c0_seq1... (17 Replies)
Discussion started by: kleinstadt
17 Replies
10. UNIX for Dummies Questions & Answers
I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore.
Here is what 's happening:
* I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies
LEARN ABOUT OSX
svk::log::filter::grep
SVK::Log::Filter::Grep(3) User Contributed Perl Documentation SVK::Log::Filter::Grep(3)
SYNOPSIS
SVK::Log::Filter::Grep - search log messages for a given pattern
DESCRIPTION
The Grep filter requires a single Perl pattern (regular expression) as its argument. The pattern is then applied to the svn:log property
of each revision it receives. If the pattern matches, the revision is allowed to continue down the pipeline. If the pattern fails to
match, the pipeline immediately skips to the next revision.
The pattern is applied with the /i modifier (case insensitivity). If you want case-sensitivity or other modifications to the behavior of
your pattern, you must use the "(?imsx-imsx)" extended pattern (see "perldoc perlre" for details). For example, to search for log messages
that match exactly the characters "foo" you might use
svk log --filter "grep (?-i)foo"
However, to search for "foo" without regards for case, one might try
svk log --filter "grep foo"
The result of any capturing parentheses inside the pattern are not available. If demand dictates, the Grep filter could be modified to
place the captured value somewhere in the stash for other filters to access.
If the pattern contains a pipe character ('|'), it must be escaped by preceding it with a '' character. Otherwise, the portion of the
pattern after the pipe character is interpreted as the name of a log filter.
STASH
/PROPERTY MODIFICATIONS
Grep leaves all properties and the stash intact.
perl v5.10.0 2008-08-04 SVK::Log::Filter::Grep(3)