Hello:
I'm a very newbee at UNIX/AIX.
What i want to do is to tail a file from the bottom until a certain string is found and write all the lines after the found string to another file.
I've tried out a lot of combination with tail and grep but doesn't find the good one.
Could someone help... (4 Replies)
Hi
i am using grep command to search a string in a file and i am able to find that string in it ..
but moving forward once i find the string i need to remove the 5 lines above that and to remove 2 lines below it .. Just wanted to be clear there should be no lines existing which has a string... (7 Replies)
Hello I am new to this forum and have been perplexed by this issue for the last hour of my life, I've tried to search everywhere for a solution to my syntax error, but here is my code.
grep -wvnf 'noise.dat' sample.out | sort
output:
4:Java Swing
5:Swing Java
6:Software Requirements... (2 Replies)
need help in a command. My requirement is that i m grepping the filename based on a pattern in .tar.gz file and then copying the file into some dir
below is what exactly i want to achieve
step 1: grep -l '30017A6800022D1A' CurrentCollectorMeterReadBackup20081007.tar.gz
step 2: file found... (2 Replies)
On one of my servers, it appears that a bunch of html files got the following code added to it...
I was going to try to remove this line using grep & sed... as sample
grep -lr -e 'apples' *.html | xargs sed -i 's/apples/oranges/g'
I can get the grep portion to work...
grep "<script... (7 Replies)
Hi all,
I need some urgent help with grep.
I'm simply trying to extract the current date from the syslog file, which is "Oct 6" and then grepping this and output the messages to a new log file.
See the below commands and output, even though the log file is created, it is created with all the... (8 Replies)
Hi I m creating a file which will serve as a virtual harddisk .
I m using following command to create a file.
#dd if=/dev/zero of=/tmp/Sample.dat bs=1M count=1024
I have following doubts regarding the operation.
1) In above example i m creating a file with byte size of 1M .However in... (1 Reply)
According to linux hardening guide a PATH variable must not contain . or ..
so i grep the path variable using.
# echo $PATH | grep "."
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
# echo $PATH | grep ".."... (2 Replies)
Hi,
im working on an assignment (airline ticketing system). im kinda having problems with the search function. i want users to be able to search by departure time or by flight. however, my output displays the whole chunk of data instead of what they are supposedly searching for. appreciate if... (1 Reply)
grep -E '^(++){5}5000' <file_name>
this command searches value 5000 in only 6th column from provided file where pipe ( | )is delimiter which separate columns... can some one plz explain me what '^(++){5}5000' actually does..? :confused: (1 Reply)
Discussion started by: Killer420
1 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)