bash path problem

7 views
Skip to first unread message

Sapna Mishra

unread,
Mar 20, 2016, 7:41:03 AM3/20/16
to unix-basics
Hi all, 

Can any one tell me how to add a path in .bashrc file of a directory say Idl which contains so many sub directories such that when I do source .bashrc it is able to run all the codes and scripts inside all the different sub directories there??? 
Is it possible? I am doing 

IDL_PATH=.:+/idl/idl70/lib:/home/cs/Idl .... The Idl folder is having many sub-directories (eg. xidl, idl_code, net etc..) however I am only to run files in folder Idl but not of sub folders. 

Is there any way? 

Silvano Dossan

unread,
Mar 20, 2016, 3:28:03 PM3/20/16
to unix-basics
try this

IDL_PATH=`find /home/cs/Idl -type d | tr '\n' ':'`

Reply all
Reply to author
Forward
0 new messages