Hi,
I have one dir which has N subdirs.For ex:
/home/user/Project_Src
/home/user/Project_Src/Dir_A
/home/user/Project_Src/Dir_A/subdir/sub_dir2
/home/user/Project_Src/Dir_A/subdir/sub_dir3
/home/user/Project_Src/Dir_B
/home/user/Project_Src/Dir_B/Build
i want to create a folder with the name "NEW" in all the dirs & subdirs under /home/user/Project_Src and perform action (rm -rf .svn) in above mentioned directories.(ie under Project_Src all dirs & subdirs) while performing action i want the directory name in which the action is performed ie echo $dirname.
Result should be with the removal of .svn in all dirs,subdirs recursively:
/home/user/Project_Src/NEW
/home/user/Project_Src/Dir_A/NEW
/home/user/Project_Src/Dir_A/subdir/sub_dir2/NEW
/home/user/Project_Src/Dir_A/subdir/sub_dir3/NEW
/home/user/Project_Src/Dir_B/NEW
/home/user/Project_Src/Dir_B/Build/NEW
i tried to use for loop similar to below mentioned thread:
https://www.unix.com/shell-programmin...ch-folder.html
I got folder only under /Project_Src. I am using bash.
Thanks for all your help.