Here is what I have which currently just outputs PID and not the actually ID at all:
VLCID=`ps -C vlc | awk '{print $1}'`
OIFS=$IFS
IFS='\ '
ARR=$VLCID
fox x in "$ARR";
do
echo "$x"
done
IFS=$OIFS
It's been a while since I have done any bash coding and even before then i wasn't using it particularly in depth.
This post has been edited by TechnoBear: 23 August 2012 - 03:31 PM

New Topic/Question
Reply



MultiQuote



|