It lists all files and then renames them. For example, it will rename PROVEDP_JAN_20080205 to IN_PROV_2008JAN.dat.
However, it doesn't convert JAN to 01, as in your example. You initially said the output needed to contain the "???" you retrieved from the beginning of the file, but then, in your sample output, you showed "01" in the position which would have contained JAN.
So, if that was a typo, then you're done. If you still need it to be converted, then it'll be a little more work but not difficult for you to do.
Notes: The backslash before the ls command forces it to ignore any aliases, so you don't end up trying to process the file's date, owner, etc. The structure is a basic for loop. The section containing the echo and Perl statement within the $() structure returns the output of that section (actually a subshell) to the current command line as a simple string.
Hi,
I have experienced a situation whereby after rebooting the server, we were not able to bring it up.
After further troubleshooting it was found that it was an issue with the "boot" image/file permission.
Have you experienced such an issue?
I was not the one who did the troubleshooting... (1 Reply)
This question could be specific to the site subdivx.com In the past, I've been able to download a file following location using cURL but there is something about subdivx.com that's different and can't figure out how to get it to work.
I tried the following directly in the terminal with no... (5 Replies)
so i was testing something on a test box running linux. i manually vi'ed the /var/log/messages file. and i noticed, the file immediately stopped being updated.
it wasn't until i restarted the syslog process that events started being recorded in it again.
so that tells me, the syslog process... (20 Replies)
how to use the filehandle stored in a variable without knowing its file association i.e. the filename
code
my $logFH = $connObj->get('logFH');
infoPrint("Variable is of type IO \n") if(UNIVERSAL::isa($logFH, 'IO'));
infoPrint("$logFH\n");
output
== INFO :: Variable is of type... (0 Replies)
Hi..
Can Anyone out there help me? I need to write a script to convert a file in EDCIDC format to CSV
The files will be transfered through sftp to the box. Is there a way to check the file has finished being transfered or still transfering. so that my conversion task will be performed after... (3 Replies)
Hi All,
I was asked these question long time back,
Is there any way to know frm non-global zone to know which is the global zone it belongs?
As per my knowledge there is no way and i have looked for these topic for a quite a while and researched on it .I just want to be sure if i am... (1 Reply)
Hi,
I am parsing a very big file say 10 MB. It 'll take more than an hour ..I want to know the progress say in % .Is there any way to do that???
or
(Is there any way to know which line of the file I am in ) (2 Replies)
HI,
Do we have a command in AIX which will let us know when is the user id password getting expired!!
Any advice will be of great help!!
Thanks,
Siddharth (0 Replies)
i am a fresh person learning sco open server 5.5:confused:
how should i know that how much space is occupied & how much is free on a particular partition?please help (1 Reply)