The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
replace last / by |
.
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
:
replace last / by |
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
01-15-2008
ghostdog74
Registered User
Join Date: Sep 2006
Posts: 2,554
Code:
# echo "/home/apps/test/document" |
sed
's/^\(.*\)\/\(.*\)/\1\|\2/' /home/apps/test|document
Last edited by ghostdog74; 01-15-2008 at
05:38 AM
..
ghostdog74
View Public Profile
Find all posts by ghostdog74
Find ghostdog74's past nominations received
Find ghostdog74's present nominations given