The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Printing out pattern in line
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Printing out pattern in line
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
11-21-2007
Franklin52
Moderator
Join Date: Feb 2007
Posts: 4,348
With
sed
:
Code:
ps -f |
sed
's!.*\/\(.*\)\..*!\1!'
with the extension ".def":
Code:
ps -f |
sed
's!.*\/\(.*\)\..*!\1.def!'
Regards
Last edited by Franklin52; 11-21-2007 at
12:40 PM
..
Franklin52
View Public Profile
Find all posts by Franklin52
Find Franklin52's past nominations received
Find Franklin52's present nominations given