On Thursday 13 September 2007 20:35, Roland Smith wrote:
On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote:
I'm trying to do some text file manipulation, and it's driving me nuts.
[snip]
I've looked at sort and uniq, and I've googled a fair bit but can't
seem to find anything that
I don't have the perl skills, though that would be ideal.
-- snip --
Another approach in Perl would be:
#!/usr/bin/perl
my (%names, %dups);
while () {
my ($key) = split;
$dups{$key} = 1 if $names{$key};
$names{$key} = 1;
}
delete @names{keys %dups};
#
# keys %names is
On Friday 14 September 2007 09:42, Steve Bertrand wrote:
I don't have the perl skills, though that would be ideal.
-- snip --
Another approach in Perl would be:
#!/usr/bin/perl
my (%names, %dups);
while () {
my ($key) = split;
$dups{$key} = 1 if $names{$key};
On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote:
I'm trying to do some text file manipulation, and it's driving me nuts.
I've got a sorted file of SMTP addresses, and want to eliminate the
lines that are the same up to a space character within the line.
Example:
[EMAIL
First, please always make sure your responses go to the list.
It is both list etiquette and of practical value. Follow-ups to
only an individual may not reach the person who can provide real help.
Most Email clients have a group reply which will do the trick.
On Thu, Sep 13, 2007 at 10:32:34AM
On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote:
The only space is the one separating the SMTP address from the OK or NO.
Then you should be able to tell it to sort on the first token in
the string with white space as a separator and to eliminate
duplicates. It has been a long time
On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote:
First, please always make sure your responses go to the list.
It is both list etiquette and of practical value. Follow-ups to
only an individual may not reach the person who can provide real help.
Most Email clients have a group reply
On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote:
I'm trying to do some text file manipulation, and it's driving me nuts.
I've got a sorted file of SMTP addresses, and want to eliminate the
lines that are the same up to a space character within the line.
Example:
[EMAIL
On Sep 13, 2007, at 1:19 PM, Kurt Buff wrote:
I think I may have a better solution. The file I'm trying to massage
has a predecessor - the non-unique lines are the result of a
concatenation of two files.
Silly me, it's better to 'grep -v' with the one file vs. the second
rather than trying to
On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote:
The only space is the one separating the SMTP address from the OK or
NO.
Then you should be able to tell it to sort on the first token in
the string with white space as a separator and to eliminate
duplicates. It has been a long time
On 9/13/07, Roland Smith [EMAIL PROTECTED] wrote:
On Thu, Sep 13, 2007 at 10:16:40AM -0700, Kurt Buff wrote:
I'm trying to do some text file manipulation, and it's driving me nuts.
I've got a sorted file of SMTP addresses, and want to eliminate the
lines that are the same up to a space
On 9/13/07, Craig Whipp [EMAIL PROTECTED] wrote:
On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote:
The only space is the one separating the SMTP address from the OK or
NO.
Then you should be able to tell it to sort on the first token in
the string with white space as a separator
On 9/13/07, Jeffrey Goldberg [EMAIL PROTECTED] wrote:
On Sep 13, 2007, at 1:19 PM, Kurt Buff wrote:
I think I may have a better solution. The file I'm trying to massage
has a predecessor - the non-unique lines are the result of a
concatenation of two files.
Silly me, it's better to
On Sep 13, 2007, at 2:38 PM, Kurt Buff wrote:
Instead of grep -v take a look at comm.
Interesting! I just looked at the man page, and while I don't think it
it's going to be directly useful (or I'm just not reading the page
correctly), it's a new utility to me - I'll keep it in mind for
On Thursday 13 September 2007 20:19, Kurt Buff wrote:
On 9/13/07, Jerry McAllister [EMAIL PROTECTED] wrote:
The only space is the one separating the SMTP address from the OK or
NO.
Then you should be able to tell it to sort on the first token in
the string with white space as a
Kurt Buff wrote:
I'm trying to do some text file manipulation, and it's driving me nuts.
...
I don't have the perl skills, though that would be ideal.
Any help out there?
Buy Learning Perl, Fourth Edition, read it, and do the exercises:
(forgot to cc the list =))
Remove the word root from the crontab entry. The user should be
specified only in the system crontab.
On 10/3/06, jan gestre [EMAIL PROTECTED] wrote:
i made a script and put on root's crontab, however it's not doing or showing
the output that is forwarded to my email
On 10/3/06, Ivan Levchenko [EMAIL PROTECTED] wrote:
Remove the word root from the crontab entry. The user should be
specified only in the system crontab.
thanks ivan, but the solution i made was i put in the
/usr/local/etc/periodic/daily directory, it is now working :D
On 10/3/06, jan
On 10/2/06, jan gestre [EMAIL PROTECTED] wrote:
i made a script and put on root's crontab, however it's not doing or showing
the output that is forwarded to my email address correctly therefore i'm not
sure if it is working or not. below is what the script look like:
...
30 8 * * * root
19 matches
Mail list logo