Search Results

Search: Posts Made By: RacerX
4,292
Posted By RacerX
It almost works after a bit of debugging: a...
It almost works after a bit of debugging: a missing semi-colon after s=$0, but it errors out because the path has underscores in it too! The updated code i am using in php:
$renamecmd = `ls...
4,292
Posted By RacerX
[Solved]Rename file-name minus one?
I need to rename a directory full of files named like:

page_001.jpg
page_002.jpg
page_003.jpg

to the file name minus one. Meaning instead of page_001.jpg that file becomes page_000.jpg so:
...
3,403
Posted By RacerX
Ghostscript output file numbering?
I am using ghostscript to convert a multi-page pdf file to individual jpg files. I am wondering if there is a way to get ghostscript to start numbering the output jpg files from zero? What i am...
4,788
Posted By RacerX
CURLOPT_FOLLOWLOCATION, open_basedir, and shell php?
I wrote a php-framework-based web application that utilizes CURL and CURLOPT_FOLLOWLACTION and it works great on my localhost. However, when i move it up to the client's shared webserver the...
3,395
Posted By RacerX
Thanks radoulov that did the trick! You're a...
Thanks radoulov that did the trick! You're a life-saver or maybe a database-saver in this case!
5,886
Posted By RacerX
Yes, words to live by, and backups have saved my...
Yes, words to live by, and backups have saved my rear-end many a time.



Sorry was thinking out loud and that line was actually commented out in program.



Told you i was totally confused....
3,395
Posted By RacerX
Awk Multiline Record Combine?
I'm trying to use Awk to get the id and name fields ($1 and $2) of file1 combined with their corresponding multiline records in file2 that are separated by blank line. Both files are ordered so that...
5,886
Posted By RacerX
Thanks, i did try to solve it and did many...
Thanks, i did try to solve it and did many searches here using keywords awk and compare. However, i kept screwing it up, am very confused at this point, and got nowhere and i really don't want to...
5,886
Posted By RacerX
Awk Compare File1 File2 on f2
I'm trying to compare two files using AWK, where if field2 of both files match, replace field1 of file1 with field1 of file2 and if there is no match just print the line of file1.

file1.txt (has...
Forum: Web Development 10-20-2008
4,275
Posted By RacerX
Your solution gave me an idea and it worked: ...
Your solution gave me an idea and it worked:

number_format(($myvar/10), 1, '.',',')

Thanks for your help!
Forum: Web Development 10-17-2008
4,275
Posted By RacerX
Need Number Format Help in PHP
I have a number coming into a php echo statement that looks like 0293 and i want to output it looking like 29.3 and for the life of me i cannot figure out how to do it with available php functions...
9,333
Posted By RacerX
Thanks for this explanation, i think the 'n'...
Thanks for this explanation, i think the 'n' option was the key to fixing my sorting problem.



Sorry i think my ". . ." between the records did not properly indicate that there were 49 other...
9,333
Posted By RacerX
Data records deleted I'd like to get all...
Data records deleted


I'd like to get all the individuals that raced in the same race, on the same date at the same track together, but you'll notice after i do the sort in the instance above two...
9,333
Posted By RacerX
i tried doing a sort using explicit definition as...
i tried doing a sort using explicit definition as suggested on a couple of fields but again i could not get it to come out right.

I think i don't understand enough about how sort actually works:...
9,333
Posted By RacerX
SOLVED:Sort cmd to get GROUP BY?
Is there any way using the sort command to get something like a GROUP BY clause?

I'm trying to sort through race_event records and group them by those individuals that raced together in the same...
2,220
Posted By RacerX
Brilliant simple solution! Did exactly what i...
Brilliant simple solution! Did exactly what i needed it to do.

Thanks for your help!
2,220
Posted By RacerX
Number Grouped Rows in File
I have a file containing 750,000 records and have managed to sort them by related columns and now i'd like to add an ID number to the front of each line of the records that are grouped together....
7,411
Posted By RacerX
Thanks for the replies. I decided to give...
Thanks for the replies. I decided to give vgersh99's version a try, because i am more comfortable with the awk code and it worked to perfection on my files.

You guru's are great but always make me...
7,411
Posted By RacerX
Awk Compare Files w/Multiline Records
I'm trying to compare the first column values in two different files that use a numerical value as the key and output the more meaningful value found in the second column of file1 in front of the...
9,704
Posted By RacerX
OK, that explains why i never could find a match...
OK, that explains why i never could find a match in my real files using the above code, as the names in File1 i'm trying to match could be on any line in File2; so as you say i'll have to try to...
9,704
Posted By RacerX
Thanks for your help and possible solution! After...
Thanks for your help and possible solution! After running your code against my two example files above it returns:


RICHARD:J:LOONEY:YONKERS:NY
JAMES:F:BIXLER:LEXINGTON:KY ...
9,704
Posted By RacerX
Awk Compare f1,f2,f3 of File1 with f1 of File2
I have an Awk string-compare problem and have searched the internet and forums for a solution i could use but cannot find a solution i understand to make work with my particular problem:

I need to...
2,221
Posted By RacerX
Jean-Pierre, thank-you so much! Your program...
Jean-Pierre, thank-you so much! Your program successfully splits the bulk of the 38,000 chunked-names i have to change. I can't thank-you enough for this code-gift! You've turned my nightmare into...
2,221
Posted By RacerX
Splitting Chunked-FullNames Nightmare
I've got a problem i'm hoping other more experienced programmers have had to deal with sometime in their careers and can help me: how to get fullnames that were chunked together into one field in an...
1,976
Posted By RacerX
Looks like you did not specify a Field Separator...
Looks like you did not specify a Field Separator just the Output Field Separator you wanted. Sorry i don't have gawk but in Awk is this close to what you were trying to do?

awk 'BEGIN {FS = ",";...
Showing results 1 to 25 of 38

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