Search Results

Search: Posts Made By: kahuna
10,536
Posted By kahuna
Try using the case statement.
Try using the case statement.
7,482
Posted By kahuna
I'm not sure this is better, but it at least gets...
I'm not sure this is better, but it at least gets rid of the backslashes.

my @arrayquotes = ('"An Apple a day keeps the doctor away"', '"Procastination is the thief of time"');
2,858
Posted By kahuna
You could try ...
You could try

FILEA='[Tt][Ee][Ss][Tt][Ff][Ii][Ll][Ee]1.[Tt][Xx][Tt]'

if [ ! -f $FILEA ]
then
echo file does not exists
else
echo file exists
fi

but there may be issues...
3,742
Posted By kahuna
Gsw_aix, you're dot including - so you are...
Gsw_aix, you're dot including - so you are running all your scripts in the current shell.
Gfca, on the other hand, is running each script in separate child shells.
Forum: Linux 06-19-2008
44,877
Posted By kahuna
Try > debug.out22621
Try

> debug.out22621
9,156
Posted By kahuna
I believe month is 0-11, not 1-12. So 05 is June...
I believe month is 0-11, not 1-12. So 05 is June which has 30 days.
9,156
Posted By kahuna
What is the value of $month?
What is the value of $month?
3,819
Posted By kahuna
Thanks radoulov! I learned something today. :)
Thanks radoulov! I learned something today. :)
3,819
Posted By kahuna
Radoulov, Could you explain a little...
Radoulov,



Could you explain a little more on how the second perl solution works? I can't figure out how the substitute knows which "ExitAction = NONE" to substitute. I see that you're...
7,749
Posted By kahuna
Storing a password is a security problem. You...
Storing a password is a security problem. You may want to investigate Oracle OS authentication.
4,655
Posted By kahuna
It seems to me that all the grep solutions that...
It seems to me that all the grep solutions that have been posted ignore the requirement of finding the pattern multiple times on the same line.
19,832
Posted By kahuna
By original syntax, I meant for the specific line...
By original syntax, I meant for the specific line that was posted (@LOGNAMES). You added "{" and "}" which changes the way perl interprets the line. Please use the line below.

@LOGNAMES=map...
19,832
Posted By kahuna
What exactly do you mean by bombed? Didn't...
What exactly do you mean by bombed? Didn't compile? Didn't produce the correct result? Resulted in an error? Did you try running the command from the shell prompt?

Perl is filled with traps for...
19,832
Posted By kahuna
This still doesn't compile. Your quotes don't...
This still doesn't compile. Your quotes don't match up.

@LOGNAMES=map { glob($_) } 'fin**'twiz*.log*','nestl*','riesen*';


Are you sure you have files in the current directory that match the...
19,832
Posted By kahuna
The code posted doesn't compile on my machine....
The code posted doesn't compile on my machine. Try changing


printf $filename\n;



printf "$filename\n";


And adding 2 closing curly brackets - "}"
19,832
Posted By kahuna
Try @LOGNAMES=map { glob($_) }...
Try

@LOGNAMES=map { glob($_) } 'twiz*.log*','nestl*','riesen*';
40,825
Posted By kahuna
I think you may need the s option to span...
I think you may need the s option to span newlines

while ($whole_file =~ m#\<a\>(.*?)\<\/a\>#sg) {
13,057
Posted By kahuna
I suspect that the difference is that sed is...
I suspect that the difference is that sed is writing 100MB, but grep is only writing the line found. To even the comparision, as bakunin suggested, try redirecting sed output to /dev/null (without...
32,133
Posted By kahuna
If you're familiar with perl, you might try ...
If you're familiar with perl, you might try

Spreadsheet::WriteExcel - Write to a cross-platform Excel binary file. - search.cpan.org...
2,212
Posted By kahuna
sed -e '/^BTS/{$!d;}' -e '/^FHS/{1!d;}'
sed -e '/^BTS/{$!d;}' -e '/^FHS/{1!d;}'
13,486
Posted By kahuna
You could use sed, but it's not really...
You could use sed, but



it's not really more efficient. Sed still needs to read and write all of file 2 and needs to make checks on every line. Cat just needs to read and write, and can do so...
17,899
Posted By kahuna
try mkdir -p "${BACKUP_DIR}/`dirname...
try

mkdir -p "${BACKUP_DIR}/`dirname "$N"`"
Forum: UNIX and Linux Applications 11-15-2007
42,547
Posted By kahuna
Try g/,$/.,+2j
Try

g/,$/.,+2j
Forum: Programming 11-13-2007
2,512
Posted By kahuna
How are you dividing the work between the...
How are you dividing the work between the processes? And what is the significance of the sequence? Could you have a driver process that assigns a sequence and a range of transactions to the other...
13,939
Posted By kahuna
Most SQL tables have a key field or fields. ...
Most SQL tables have a key field or fields. Normally the key field would be used to identify and match the record to determine if it has changed. But from your requirement, this is not what you...
Showing results 1 to 25 of 146

 

Featured Tech Videos

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