what is the need of giving '/' in (ps -fu lower | awk "/abc/ && /pqr/ ! /awk/")
can't we write like this for the same functionality (ps -fu lower | awk "abc && pqr ! awk")
User Profile
Collapse
-
-
How to change my group
I want to change my group from primary group to secondary or viceversa.
I don't have superuser access also.
could anybody please let me know how to do this. -
then why && is there in between the directory path.Is it checking the true/falsity of the stmt. /${strFREE}.
if yes then what for is it checking,as bcoz we have already set the value of the variable.
And what does " ! /awk/ " denonetes in the prog.Leave a comment:
-
Can't Understand the awk prog.in this script.and why '/' before $ symbol
strFree="stmnt"
strImportantTyp e="coldimpnt"
intUID=$(ps -fu lower | awk "/${strFree}/ && /${strImportantT ype}/ && ! /awk/ "'{ print $2 }')
where lower is the user.
No activity results to display
Show More
Leave a comment: