Ask a Question related to PERL Beginners, Design and Development.
-
Ross #1
Place part of filename into the file
Warning: rank newbie here.
I have a series of ascii files, like file0037.txt file0038.txt
file0039.txt etc.
I have a statement somewhere within every file that goes like:
Select * from stuff into selection
How do I modify/replace this statement in each file to reflect the
last 2 digits of the filename?
file0037.txt - should contain
Select * from stuff where thing="37" into selection
file0038.txt - should contain
Select * from stuff where thing="38" into selection
file0039.txt - should contain
Select * from stuff where thing="39" into selection
Thanks,
Ross
Ross Guest
-
#39906 [NEW]: Unable to use place holders as part of the actual SQL query with PDO's
From: iab398 at bham dot ac dot uk Operating system: Unix PHP version: 5.2.0 PHP Bug Type: SQLite related Bug description: ... -
Move file to a new filename every month to a different name
I have written only very simple batch scripts previously, and I'm stumped when trying to move a file on Windows 2000 to a different file name each... -
Can't place a file
I just upgraded to Photoshop 7, and everything worked great, then I had a system crash, so I had to reinstall everything. Now when I go under FILE to... -
Adding filename to downloaded file
Hi, I'm using php to generate a csv file and want to force the user to download it to their local PC. Trouble is, when I use: ... -
how to get filename from a FILE *fp?
hi, my question is, is there a way to know the filename of a file from its high level 'FILE' pointer after I have 'fopened' it? like char...



Reply With Quote

