Hello
Take a look at following lines.
This is giving me an o/p all in one array where as i want the column to be printed.How can i do it?
e.g
I am getting:
1575028616......
whereas i want
1
5750
28616
I am writing this small piece and trying to get this column o/p in a CSV.
COLUMNS=2047 /usr/bin/ps -eo ppid | grep -v "PPID" > /tmp/ppid.txt
cat /tmp/ppid.txt | while read line
do
PPID=`echo $line |awk '{print $1}'`
echo $PPID
done
Kindly advice
Abhi