Hi Guys,
I'm having a little issue getting quite a simple bash script running.
The part that's working:
qstat -f $queuenum | grep -Po '(?<=PBS_O_WORKDIR=).*(?=,)'
Outputs a directory to the screen (for example):
/short/h72/SiO2/defected/2-999/3-forces/FORCES_364
All I want to do is change directory to this folder. Appending a "| cd" to the end of the above command doesn't work, and I can't quite figure out how to use the $(()) tags either.
Any help would be appreciated.