Hi all!
Script works well but now I need to add feature that output file will be saved useing ANSI codepage.
Source files I'm useing are all saved as Unicode.
all advice is welcomed.
Thnx.
Hi All!
Need more pointers for adding features into my script.
Right now when file "a" appears in folder "a" it will edited and renamed and moved into folder "b".
But the original file in folder "a" does not get removed.
I tought two possibilities.
1. original file in folder a gets deleted or...
I'v got it to work like this:
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time);
$sec=sprintf("%02d",$sec);
$min=sprintf("%02d",$min);
$hour=sprintf("%02d",$hour);
$mday=sprintf("%02d", $mday);
$mon=sprintf("%02d", $mon+1);
$year=sprintf("%04d"...
I'm useing the same code what I posted here. "list.ao" is text file which contain failenames what has to be converted.
Script , list.ao and all the txt files are in the same folder.
I can get time but im unable to but it on the filename. Well I can add date into file name but then the filename is not added itself its time or name not both
For human reader. I create 20+ csv files for him every month. I would like to automate my part. What they to after is not in my contract. Unfortunately I'm never done scripting.
So I'm still unable to get timestamp after filename :(
I can get time now but unable to integrate it into file name.
use strict;
use warnings;
use POSIX qw(strftime);
my $date;
printf(OF."%s",strftime(("%Y-%m-%d %H:%M:%S",localtime($date=time))));
Below is script where it edits the file, removes txt extension and writes new file.
I also need to insert timestamp into filname (fileA2007-03-25 12:01:12 ; fileB2007-03-26 10:50:55). How can I achieve that? Help needed.
$failid="list.ao";
$fail=0;
if (open(FAILIDcnt, $failid)) {...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.