Here is my command
<code> ps axo user=myfuckingusername,comm,cmd | grep postgres | grep -v grep | awk {'print $1 " " $3'} | sort | uniq
</code>
<code> ps axo user=myfuckingusername,comm,cmd | grep postgres | grep -v grep | awk {'print $1 " " $3'} | sort | uniq
</code>
ps axo user=myfuckingusername,comm,cmd | grep postgres | grep -v grep | awk {'print $1 " " $3'} | sort | uniq
and here is the result
<code>edbpostgres /bustools/postgresplus/engine_ppas96/as9.6/bin/edb-postgres
edbpostgres postgres:
postgres postgres:
postgres /usr/pgsql-11/bin/postmaster
</code>
<code>edbpostgres /bustools/postgresplus/engine_ppas96/as9.6/bin/edb-postgres
edbpostgres postgres:
postgres postgres:
postgres /usr/pgsql-11/bin/postmaster
</code>
edbpostgres /bustools/postgresplus/engine_ppas96/as9.6/bin/edb-postgres
edbpostgres postgres:
postgres postgres:
postgres /usr/pgsql-11/bin/postmaster
I would like to have only the 1st and fourth result
Lot of things without any success