Help with pulling the data from log
by sam_nyc from LinuxQuestions.org on (#6DGPB)
Hi All,
My log looks like this. And it's huge. But only showing one line here. It's from PBSpro.
Code:user=e123456 group=d2i.h2c.s2pae.n2gi.default project=_tbs_project_default jobname=Case3.KFG queue=wrxorkq-next ctime=1672559451 qtime=1672559451 etime=1672559451 start=1672559461 exec_I only want ctime, qtime etime and start time for each user.
This is what I did. Code: cat pbslog_07302023.txt |grep "ctime="I am getting everything in that line. Any idea how to extract one or few things from the line of data.
Thanks.
My log looks like this. And it's huge. But only showing one line here. It's from PBSpro.
Code:user=e123456 group=d2i.h2c.s2pae.n2gi.default project=_tbs_project_default jobname=Case3.KFG queue=wrxorkq-next ctime=1672559451 qtime=1672559451 etime=1672559451 start=1672559461 exec_I only want ctime, qtime etime and start time for each user.
This is what I did. Code: cat pbslog_07302023.txt |grep "ctime="I am getting everything in that line. Any idea how to extract one or few things from the line of data.
Thanks.