Search Results

Search: Posts Made By: dkozel
4,736
Posted By dkozel
Compare how? Size, Name, Last edited...? ...
Compare how? Size, Name, Last edited...?

What have you worked out so far?
3,181
Posted By dkozel
Perl Regex string opperation
I'm working on a basic log parser in perl. Input file looks like:

len: 120713
foo
bar
file size of: testdir1/testdir1/testdir1/testdir1/testfile0 is 120713Of course there are tens of thousands...
4,606
Posted By dkozel
Thank you. That works. My apologies for...
Thank you. That works.

My apologies for likely being unclear. My initial grep statement and your first awk statement had the same output, lines containing search terms and the following three...
4,606
Posted By dkozel
awk ran. *head smack* Should have tried that. ...
awk ran. *head smack* Should have tried that.

The result isn't as required however. The awk statement is equivalent to
dkozel $ grep "term1\|term2" -A3 testfilethe problem is that I would like...
4,606
Posted By dkozel
vgersh99: Thanks for the quick reply. ...
vgersh99: Thanks for the quick reply.

*sigh* I have access to awk and gawk on this computer. Unfortunately I'm working on a system I can't install software on so nawk isn't an option. I'll try...
4,606
Posted By dkozel
[SOLVED] Grepping multiple terms with different arguments
Grep -e 'term1' -A1 -e 'term2' -A3The above code always searches for either term and prints results + next three lines.

I'm trying to print out:

foo foo foo term1 bar bar bar
line right after...
3,292
Posted By dkozel
dkozel$ man grep | grep -e '-e' -A2 grep...
dkozel$ man grep | grep -e '-e' -A2
grep [options] [-e PATTERN | -f FILE] [FILE...]

DESCRIPTION
--
-E, --extended-regexp
Interpret PATTERN as an extended ...
5,541
Posted By dkozel
Solution Found
Jim: Thanks for the reply, I'll try that as well.

The solution I found was to open vim and:

Replaced newline characters with tabs
:%s/\n/^I/g

Then replaced pairs of tabs with a newline (the...
5,541
Posted By dkozel
parse file into tab separated columns
Hello,
I am trying to parse a file that resembles the last three groupings into something looking like the first two lines. I've fiddled with sed and awk a bit, but can't get anything to work...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 10:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy