Search Results

Search: Posts Made By: juheimbu
4,558
Posted By juheimbu
I found the script
#!/bin/perl -w

#########################################
#split_mbox.pl
#
#This script is desined to split an mbox
#file into individual message files....
4,558
Posted By juheimbu
Since the attachments are stored inline, it...
Since the attachments are stored inline, it shouldn't make a difference. I'd recommend a test, of course, but since they'll get delivered via smtp to the desired target, the recipient won't be any...
4,558
Posted By juheimbu
You'll probably want to write a script to parse...
You'll probably want to write a script to parse the mbox files and then send each. I've done that in the past, but I don't remember specifics. I believe that each message begins with "^From", so...
Forum: Solaris 11-13-2008
5,142
Posted By juheimbu
What do you get from: pkginfo|grep "^gcc" ...
What do you get from:

pkginfo|grep "^gcc"

Perhaps you're mistyping the pkgname?
28,443
Posted By juheimbu
You're right. I missed the extra space. Nice...
You're right. I missed the extra space. Nice catch.

It would work this way, though:

cat file66c.tsv|awk -F"\t" '{print $2}'
28,443
Posted By juheimbu
Alternatively: cat file66.tsv|awk '{print...
Alternatively:

cat file66.tsv|awk '{print $2}'
16,596
Posted By juheimbu
Another (bash): var="hello world" declare...
Another (bash):

var="hello world"
declare -a array
array=( $(echo ${var}) )
echo ${array[0]}
echo ${array[1]}
3,601
Posted By juheimbu
What's in $i? Try changing line 1 so that you're...
What's in $i? Try changing line 1 so that you're assigning var[1], not var[$i].
16,812
Posted By juheimbu
Perl would work, too, if you aren't stuck on...
Perl would work, too, if you aren't stuck on bash:


#!/bin/perl

my $line="module::name=test::type=generic_data::exec=snmpget.......::desc=A Little Test::interval=300";

my %data;

foreach...
47,078
Posted By juheimbu
I played around with it a bit, and the only way I...
I played around with it a bit, and the only way I could get the original varialbe to set properly was to set it like this:

var="c:\\\ndm\stores"

I got the "command garbled" error you're...
47,078
Posted By juheimbu
Perhaps try escaping the 'n', as well: ...
Perhaps try escaping the 'n', as well:

c:\\\ndm\\stores

Good luck!
47,078
Posted By juheimbu
You could try using sed to parse the value once...
You could try using sed to parse the value once you've read it:

var=c:\mask\mask
newvar=`echo $var|sed -e 's/\\/\\\\/g'`

Then use newvar for the rest of your operations. I'm sure there's a...
47,078
Posted By juheimbu
It should work the same way as if you're escaping...
It should work the same way as if you're escaping any other special character:

c:\\mask\\mask

Hope that helps.
Showing results 1 to 13 of 13

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