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 this structure the dir name abc will not change and neither will the name of the file qrs.txt. But there will be a different dir name for efg for eg: there will be dirs as under
G:\abc\efg\qrs.txt
G:\abc\hij\qrs.txt .......etc. etc.
How can I have these listed in a file (line by line) using perl?
2) Then I would want to take the individual dir names under G:\abc and
put them in a separate txt file.
For eg: From the above eg., I would like to have the dir's 'efg' and
'hij' listed in a diff txt file, line by line (i.e just these dir name)
Is there a way to do so in perl? I could do the first part in shell
script but wasn't sure how it would work under perl. Thank you in
advance for your patience.
Cheers,
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Re: newbie question Steve Grazzini
- Re: newbie question Kevin Meltzer
- RE: newbie question Dharmendra Rai
- Newbie Question James Parsons
- Re: Newbie Question Sudarshan Raghavan
- Re: Newbie Question John W. Krahn
- Newbie Question James Parsons
- Re: Newbie Question Jean Padilla
- Re: Newbie Question montana
- Re: Newbie Question Dharmender Rai
- Re: Newbie question Ashutosh Jog
- Re: Newbie question John W. Krahn
- Newbie question Steve Lobach
- Re: Newbie question Lance
- Re: Newbie question Daryl Field
- Re: Newbie question Steve Lobach
- Re: Newbie question wiggins
- Newbie question Michael Sullivan
- Re: Newbie question drieux
- Re: Newbie question Randal L. Schwartz
- Newbie question Drue Reeves