Search Results

Search: Posts Made By: terry2009
2,604
Posted By terry2009
Thanks for this... but how can I get my "one" and...
Thanks for this... but how can I get my "one" and "comma"

1,person@email.co.uk

infront of the email addresses?
2,604
Posted By terry2009
supressing carrige returns/line feeds
Hi gurus

I am stripping lots of email addresses from a file with this

grep "^To" file.log |awk '{print "1,"$2}' > recipients.out


file.log looks something like this:
oasndfoasnosf
To:...
7,700
Posted By terry2009
Hi Again! Here is an extended part of the...
Hi Again!

Here is an extended part of the script... I'd like to be sure that sed will work instead of grep....

grep -l "search string in files I want" smtp*.tmp > email_filenames_list.txt ;...
7,700
Posted By terry2009
Thanks, but would this work (this is a snippet of...
Thanks, but would this work (this is a snippet of a much much larger script):


grep -E "[A-Z][0-9]" file.txt | sed 's#.*>\([A-Z][0-9]\).*#1,,,1,\1#' > out.txt
7,700
Posted By terry2009
Regular expression in grep -E | awk print
Hi All,

I have file.txt with contents like this:

random text
To: recipient@email.co.uk
<HTML>S7randomtext more random text
random text
To: recip@smtpemail.com
<HTML>E5randomtext more...
3,100
Posted By terry2009
Copy 1 file 5000 times and Rename each +1
Hi,

Found lots of stuff that is close but no cigar...

I have a file ie. a.txt, and I want to copy it to another directory 5000 times and call it:
a1.txt
a2.txt
...
a5000.txt
...
5,452
Posted By terry2009
Nah, client doesn't allow use of perl... Its not...
Nah, client doesn't allow use of perl... Its not one of their strategic software, therefore hasn't got security clearance! Good chance to learn some shell though.

Thanks for you're help, I'll get...
5,452
Posted By terry2009
Hi, Thanks for you post... but could you...
Hi,

Thanks for you post... but could you make this idiot proof for me please, never used UNIX in my life.

1. How would I get 12 Jun 2008 from the line:
Date: 12 Jun 2008 14:04:59 +0100
Would...
1,648
Posted By terry2009
Not avaliable on the project I'm on. The client...
Not avaliable on the project I'm on. The client doesn't have Perl as a listed safe software!
1,648
Posted By terry2009
Perl script to shell ???
Hi,

I have a log file containing data on emails sent. Looks a bit like this for one email:

Content-Type: text/plain;
charset="UTF-8"
Date: 12 Jun 2008 14:04:59 +0100
From: from@email.com...
5,452
Posted By terry2009
Simple shell script to find and print data
Hi,

I have a log file containing data on emails sent. Looks a bit like this for one email:

Content-Type: text/plain;
charset="UTF-8"
Date: 12 Jun 2008 14:04:59 +0100
From: from@email.com...
Showing results 1 to 11 of 11

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