Search Results

Search: Posts Made By: kahuna
11,362
Posted By kahuna
Try using the case statement.
Try using the case statement.
8,354
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"');
3,575
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...
4,525
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
56,084
Posted By kahuna
Try > debug.out22621
Try

> debug.out22621
9,636
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,636
Posted By kahuna
What is the value of $month?
What is the value of $month?
4,219
Posted By kahuna
Thanks radoulov! I learned something today. :)
Thanks radoulov! I learned something today. :)
4,219
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...
9,355
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.
6,046
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.
22,839
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...
22,839
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...
22,839
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...
22,839
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 - "}"
22,839
Posted By kahuna
Try @LOGNAMES=map { glob($_) }...
Try

@LOGNAMES=map { glob($_) } 'twiz*.log*','nestl*','riesen*';
43,157
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) {
16,372
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...
34,946
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,668
Posted By kahuna
sed -e '/^BTS/{$!d;}' -e '/^FHS/{1!d;}'
sed -e '/^BTS/{$!d;}' -e '/^FHS/{1!d;}'
14,887
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...
23,446
Posted By kahuna
try mkdir -p "${BACKUP_DIR}/`dirname...
try

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

g/,$/.,+2j
Forum: Programming 11-13-2007
3,028
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...
16,133
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

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