sandeepmur
Programmer
Hi,
I need to find and execute a file under a given dir.. my find cmd is like this:
find /home/bc01/ -type f -name "i_abc.sh" -print
the above cmd is printing 2 lines :
find: cannot search /home/bc01/R1/tmp/m206/data/domain/old
/home/qtbc01/KISS-EAI-R1/tmp/eai_abc.sh
I want to obtain only the 2nd line so I can execute it. something like
fpaths = `find /home/bc01/ -name "i_abc.sh" -print`
echo $fpaths
fpaths
TIA,
sands
I need to find and execute a file under a given dir.. my find cmd is like this:
find /home/bc01/ -type f -name "i_abc.sh" -print
the above cmd is printing 2 lines :
find: cannot search /home/bc01/R1/tmp/m206/data/domain/old
/home/qtbc01/KISS-EAI-R1/tmp/eai_abc.sh
I want to obtain only the 2nd line so I can execute it. something like
fpaths = `find /home/bc01/ -name "i_abc.sh" -print`
echo $fpaths
fpaths
TIA,
sands