Hi,
i am quite new to sed and i wonder if there is anyway for me to explode the full path and take the last variable as the string ???
/home/root/usr2/testdir1 --> so i can take testdir1
/home/root/usr2/testdir3
i need to write a script to tar and gzip a list of directory. please help, i am just lacking of sed part.
thanks!
i am quite new to sed and i wonder if there is anyway for me to explode the full path and take the last variable as the string ???
/home/root/usr2/testdir1 --> so i can take testdir1
/home/root/usr2/testdir3
i need to write a script to tar and gzip a list of directory. please help, i am just lacking of sed part.
thanks!
Comment