Search Results

Search: Posts Made By: gholdbhurg
21,257
Posted By gholdbhurg
Shell script: Remove blank lines
Hi gurus,

I have this file with blank lines in it.
How do i remove them in shell?
I tried these commands but not working:
sed '/^ *$/d'
or
sed '/^$/d'
Anybody has a better idea pls?

Also...
1,610
Posted By gholdbhurg
sql command question
Hi,

Table1
======
Code1
Field1

Table2
======
Code1
Field1

Would anyone be able to help me know what's the best sql command to delete the entry in Table1 if its Code1-Field1 combination...
1,600
Posted By gholdbhurg
advice on shell script
Hello,
I have this script running on cron every 20 minutes.
By 12pm daily, our system is expecting all input files to be uploaded by the script.
After this cutoff time, the script would still be...
1,536
Posted By gholdbhurg
question on perl script
LOGFILE
========
My name is: ?Anthony Perkins
I am an American citizen.
My name is: ?Donte Suarez
I am a Spanish citizen.
My name is: ? lenny Davis
I am an Australian citizen.
My name is:...
1,706
Posted By gholdbhurg
how to do sort in perl?
Hi,
Can anyone advise how to correct my script pls?
I'm not getting the correct output =(

Details below:

Logfile
========
Player Num : 14
Player Name : Jacee Thirkins
MVP winner ...
4,316
Posted By gholdbhurg
Hi Sir Franklin, Do you mind giving a brief...
Hi Sir Franklin,

Do you mind giving a brief explanation of the above code pls? =)
So i can use it in the future as well.

Thanks so much.
4,316
Posted By gholdbhurg
Hi Sir Franklin, Sincerely appreciate your...
Hi Sir Franklin,
Sincerely appreciate your response.
I actually have a little idea of how i want to go about this, but i just seem to have a hard time putting everything exactly in code.

I want...
4,316
Posted By gholdbhurg
Yes, shell script please. Thanks.
Yes, shell script please.
Thanks.
4,316
Posted By gholdbhurg
shell script for matching 2 files
Hi,
Would anyone be able to suggest on this shell script query? =)
From the contents of the 2 sample files below, if both files' 1st fields matched (ex: XYZ1234=XYZ1234), I want to append the 4th...
11,113
Posted By gholdbhurg
Unfortunately, the seq doesnt work :( seq:...
Unfortunately, the seq doesnt work :(
seq: command not found

Any other unix scripting lines possible?
Btw, i'm using ksh. Thanks!
11,113
Posted By gholdbhurg
Wow great, thanks a lot era! :) Hope you don't...
Wow great, thanks a lot era! :)
Hope you don't mind a follow-up question, what if i want to store in a file all those existing statistics files? And just just put spaces on those missing files? :)...
11,113
Posted By gholdbhurg
how to check missing files?
I have 50 files in this directory (/home/unixnewbie/wklyfiles) namely:
statistics.1
statistics.2
statistics.3
statistics.4
statistics.5
statistics.6
statistics.7
statistics.8
statistics.9...
1,430
Posted By gholdbhurg
Hi, Can pls help explain on that code? ...
Hi,
Can pls help explain on that code?

Anyone else have any ideas? =)

Appreciate it.
Thanks.
1,430
Posted By gholdbhurg
help on unix script
Hi,
Anyone knows how to go about this one?
For example, i am normally receiving files (FILENAME.YYMMDD) daily in /file/location/path
But there are some days that there will be no file received....
1,468
Posted By gholdbhurg
help on script
Hi, how do i manipulate the below file to produce the following output:
Simmons - #3
Higgins - #7
Norton - #9

File contents:
Name=Dorothy Simmons. I'm 22 years of age. My favorite...
7,655
Posted By gholdbhurg
convert unix script to perl
Hi,
I have these lines in a unix script:

FILEONE = /<filepath1>/<filename1.txt>
FILENEW = /<filepath2>/<filename2.txt>
head -5 $FILEONE | sed '1d' > $FILENEW
PARAM1 = `cat $FILENEW | awk...
9,136
Posted By gholdbhurg
thanks nua7 :)
thanks nua7 :)
9,136
Posted By gholdbhurg
If there are no threads related to this, Does...
If there are no threads related to this,
Does anyone know a way for this? :)

Thanks
9,136
Posted By gholdbhurg
check cpu usage
Hi,
Are there previous threads on perl scripts that check the cpu usage and send email whenever this exceeded a certain threshold?

Thanks.
3,679
Posted By gholdbhurg
Hi era/jim, Thanks for the quick response. ...
Hi era/jim,
Thanks for the quick response.

>>>
Hi era,
My responses below:
1. Can transactions be intermingled in the log file, or will all details of a transaction be on adjacent lines, and...
3,679
Posted By gholdbhurg
Perl script to scan back lines
Hi Perl gurus,
I have this file to scan through. Sample lines below:

2008031A, USERNAME, 12345, give ABC, take XYZ, transaction submitted
2008031B, USERNAME, 12346, waiting for processing...
5,867
Posted By gholdbhurg
Perl script to scan through files
Dear perl gurus,
I plan to create a script that will scan through a logfile line by line.
And if ever a certain line meets the below conditions, it will alert me via email.
-->
a) Position 10 to...
1,700
Posted By gholdbhurg
unix questions for newbie
Hi Unix gurus,

I know these are some easy questions.
But i just want to be sure about them.
Hope someone can help explain the following please?

1) if [[ -r /etc/ngtpath.conf ]]
- What does...
134,107
Posted By gholdbhurg
Hi Unix gurus, Anyone has any scripts out...
Hi Unix gurus,

Anyone has any scripts out there that determines if current date is the first working day of the month? For example, it should be 2007-OCT-01, 2007-NOV-01, 2007-DEC-03, 2008-JAN-01,...
10,138
Posted By gholdbhurg
to write the logs of scp
Hi Unix gurus,

I created this script to automate the copying of files daily from one server to another using the scp command.
-->
#!/bin/ksh

KEY="$HOME/.ssh/SSHKEY"

if [ ! -f $KEY ];then...
Showing results 1 to 25 of 26

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