Hello,
I got a different scenario.
I have directory as /var/user.
In that i have sub directories as
/var/user/10/202/31/40
/var/user/10/202/31/41
/var/user/11/203/32/42
/var/user/12/201/31/43
Now, I want to remove 40, 41, 42, 43 directories which are last. Till /var/user its same. After that i would like to send sub directories path through notepad as a parameter.
Like..
I would like to give sub directories information in notepad. Like below
subdirectory.txt
10/202/31/40
10/202/31/41
11/203/32/42
Now, i have created variable
$parent_directory = '/var/usr/$subdirectory.txt.
Can some one please help me
How to start this coding in proper manner. I got confused and don't know where to start..
Please help me out.