Re: Need to change file columns

2002-12-21 Thread Ashutosh Jog
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

Need to change file columns

2002-12-21 Thread Ashutosh Jog
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

Newbie question

2002-12-11 Thread Ashutosh Jog
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

Re: shell command

2002-09-02 Thread Ashutosh Jog
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

Newbie Question.

2002-08-27 Thread Ashutosh Jog
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

Re: (Question about a script)

2002-08-20 Thread Ashutosh Jog
){ > #-- 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)

Re: (Question about a script)

2002-08-20 Thread Ashutosh Jog
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));

(Question about a script)

2002-08-20 Thread Ashutosh Jog
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

Help with scripts

2002-08-20 Thread Ashutosh Jog
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