Search Results

Search: Posts Made By: dba_frog
4,286
Posted By dba_frog
sed with line break
<td>
CIS
</td>and I tried to sed 's/<td>\/nCIS\/n<\/td>/<td><\/td>' and sed 's/<td>\/rCIS\/r<\/td>/<td><\/td>' , but no joy. This is an html page that I need to clean.
1,126
Posted By dba_frog
sed with numbers
Patches have the following syntax: Patchxxxx.xxx where x is a number. I'm trying to strip the .xxx off of the patch, so I tried this:

sed 's/PATCH[0-9].[0-9]/Patch[0-9]/' patchin.log >...
2,796
Posted By dba_frog
convert date format
I've been using this thread:
https://www.unix.com/shell-programming-scripting/58675-change-date-dd-mmm-yyyy-mm-dd-yyyy.html
and...
2,121
Posted By dba_frog
process and exit to new page
File1 --> into shell file for processing --> file2

I have finished the work on my shell processing script, but I need to call this from a form -->cgi-bin, have the form wait/process bar while...
2,208
Posted By dba_frog
Now that is truly COOOL. TY
Now that is truly COOOL. TY
2,208
Posted By dba_frog
Remove 5th & 6th <td> from file
I have a page with a 6<td> structure. I need to strip the 5th and 6th <td></td> from the structure. The data in the 4th <td> varies, I can't get a pattern on it. So, I tried setting up a count of the...
963
Posted By dba_frog
Remove 5th & 6th <td> from file
I have a page with a 6<td> structure. I need to strip the 5th and 6th <td></td> from the structure. The data in the 4th <td> varies, so I can't get a pattern on it. So, I tried setting up a count of...
1,344
Posted By dba_frog
Insert Data into db and return php results
This is a three step process:
a) Upload date ->scrub\prep data,
b) insert into db,
c) return php results page.
I have a question about the best practices for unix to process this.

I have...
2,073
Posted By dba_frog
Ah, so I can ref the items as columns with this: ...
Ah, so I can ref the items as columns with this:
$1,$2,$3,$4,$5)
2,073
Posted By dba_frog
convert file into sql insert stmt
My file is now cleaned, sanitized & prepped:

07/07/2008 21:18:51 Installation 52016 complete *BUT NOTHING CHANGED*
07/21/2008 15:28:15 Removal 52016 complete
07/21/2008 15:34:15 Removal ...
1,021
Posted By dba_frog
My apologies, I didn't see the preview in there...
My apologies, I didn't see the preview in there until reviewing the output

but, this worked
sed 's/PATCH[0-9.]*//' infile > outfile

and i was very close, just needed a little tweaking.
1,021
Posted By dba_frog
Almost, it's cutting out the 'of' and some lines...
Almost, it's cutting out the 'of' and some lines ref a preview mode before the 'of'.
1,021
Posted By dba_frog
Strip one of two Patch references
This log file is wacky.

the syntax puts this in the Installation line:
Installation PATCH75682.91 of PATCH75681 complete
Installation PATCH76537.91 of PATCH76537 complete
Installation...
1,258
Posted By dba_frog
Ugh ! That is so simple. TY
Ugh !
That is so simple. TY
1,258
Posted By dba_frog
figuring out wildcards
I'm trying to delete everything between ( and ) in a line, ie: ( start xxxx, end xxx ). there is uppercase, lowercase and numbers in the parans. and are of varied length.
I tried this:
sed 's/([a-z...
3,094
Posted By dba_frog
copy line to new file if word matches
I'm drawing blank on this. The log file I have is filled with garbage, but the important lines are ##/##/### Installation xxxxxxx
So, I want to sed the line to a new file IF the word installation is...
2,017
Posted By dba_frog
insert LF and TAB for formatting
trying to insert a LF and 2 TABs for this:
sed 's/<td><\/td>/<td>\n\t\t<\/td>/' infile.
but, I'm not getting the syntax for inserting the LF and TABs correct
1,639
Posted By dba_frog
thank you,
thank you,
1,639
Posted By dba_frog
mv to file and cut
I have a section of a file from Line1 to <table border=1> that is approx. 30 lines.
I need to put the info into a tmp file: tmpHead, and then rm it from the file I'm working on.

The rm would be...
2,259
Posted By dba_frog
when I cat -v file I can see the ^ symbol ...
when I cat -v file
I can see the ^ symbol
bxxxxb:*:xxxx0:Bxxxan W. Bxxxxx^?rf:/usr/ids/bxxxxb:/usr/bin/ksh
exxxxxc:*:xxxxx:Cxxx Exxxxxo^[[C [xxxSR x0]:/usr/ids/exxxxxxc:/usr/bin/ksh...
2,259
Posted By dba_frog
TY, but this is strange. If I vi the file I see...
TY, but this is strange. If I vi the file I see the ^ in the user record. If I grep it I don't see the ^.
That was why my grep \^ was falling thru.
2,259
Posted By dba_frog
grep ^ as a character
I have a pwd file with a number of errors like: ^[ and [[^[
when I grep ^ I get the whole file since it thinks it's new line. Should I \ to escape this?
1,913
Posted By dba_frog
CT=0 while read LINE do # Check to see...
CT=0
while read LINE
do
# Check to see if the LINE is non-empty, and has a <td> tag in it.
if [[ "$LINE" == *"<td>"* ]]
then
# Increase the TD counter by 1
((CT++))
...
1,913
Posted By dba_frog
if stmt argument expected error
CT=0
while read LINE
do
# Check to see if the LINE is non-empty, and has a <td> tag in it.
if [ -n "$LINE" -a `echo $LINE |grep "<td>"` != "" ]
then
# Increase the TD counter...
7,042
Posted By dba_frog
Ok, guess my php is showing :D
Ok, guess my php is showing :D
Showing results 1 to 25 of 52

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