he
disclaimer that I haven't tested it in any way.
open INP, "< inp.txt";
open OUT, "> out.txt";
printf OUT "%-10s%s\n", reverse split while ();
close OUT;
close INP;
HTH,
Rob
"Ashutosh Jog" <[EMAIL PROTECTED]> wrote in mess
Folks,
I am wokring on a script which at one point works on a txt file. The file's
format is as under:
40abc
35def
28ghi
17jkl
08mno
What I want to do is take the column on the right and shift it entirely to
the left and take the column on the left and mo
Hello all,
I am a complete newbie and am trying to do a couple of things but was
not able to. Any assitance is welcome.
If I have a dir structure G:\abc\efg\qrs.txt:
1) How can I list the entire structure under G:\abc along with all the dirs. under G:\abc\ right upto the file qrs.txt ?
In th
Hey,
Have you tried
system (convert -quality 40 image.jpg resampled_image.jpg);
This might not be your best option, but its worth a shot.
-Cheers.
Tux wrote:
> hey all, sorry if im asking a silly or stupid question, but i just CANT
> seem to find anything on google/in books on how to do this
Hello,
This might be a very simple question, but being a newbie I have to ask.
:)
How can I copy the line by line contents of a file to a array?
For eg: @animals should look like
@animals = ('tiger','lion','elephant');
And the text file would have entries for the same in this order (i.e.
one
){
> #-- today
> my($day,$month,$year) = (localtime)[3..5];
> #-- file's last modified date in seconds
> my $lm = (stat(shift))[9];
> #-- turn day/month/year into seconds
> my $sd = timelocal(undef,undef,undef,$day,$month,$year)
gt; #-- file's last modified date in seconds
> my $lm = (stat(shift))[9];
> #-- turn day/month/year into seconds
> my $sd = timelocal(undef,undef,undef,$day,$month,$year);
> #-- turn seconds into days
> return int(abs($lm-$sd) / (24*60*60));
Hi all,
I am trying to write a script which checks a dir for a file and then
compares the number of days old the file is. Comparing this the mail
should go to a user to whom the file (in the dir) belongs.
Likewise there will be 'n' number of directories for 'n' number of users
on this Server. The
Anyone here done any scripts for any serverswhere the users files
will be checked for time stamps and then the info will be emailed to
respective users.for the last time the file was modified?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT