Sed substitute for my username?
Hi everyone, i have been stuck on a problem that i cant seem to find an answer for, i tried many things that didnt work.
the problem is: [ list all your processes, using sed to substitute "me" for your username.] So i am asuming that after i get the right sed command i will be able to do something like [ ps -u me ] this is what i have tried so far and they have not worked Code:
sed 's/s06-cs271-s09/me/g' </home/s06-cs271-s09 >/home/s06-cs271-s09.new |
try this:
Code:
ps -ux | sed "s/\$$USER/me/" Code:
#!/usr/bin/sed -f Code:
ps -ux | pssub |
All times are GMT -5. The time now is 12:29 AM. |