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 -->
#
5
(
permalink
)
01-15-2008
reborg
Administrator
Join Date: Mar 2005
Location: Ireland
Posts: 4,233
Actually, what I intended to post was this, but got distracted by an awk script:
Code:
sed
's_/\([^/][^/]*\)$_|\1_'
If you mean something followed by at least one other character, be explicit.
reborg
View Public Profile
Find all posts by reborg
Find reborg's past nominations received
Find reborg's present nominations given