[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it possible to export just the wildcard portion of a string?
From: |
Matthew Wakeling |
Subject: |
Re: Is it possible to export just the wildcard portion of a string? |
Date: |
Sun, 29 Mar 2009 20:21:47 +0100 (BST) |
User-agent: |
Alpine 2.00 (DEB 1167 2008-08-23) |
On Fri, 27 Mar 2009, cmdrfred wrote:
<td class="align_left"><!--jp_14--> /viewprofile/index/314237 jp_14 </td>
So i made a search string in baregrep that looked like this
character_name_...... and it gave me all the results I wanted, but when I go
to export it gives me the full line every time. All I want to do is export
the numbers after the words character_name_ and before "> is this possible?
Your explanation is inconsistent, but you probably want something like:
sed -e "s/^.*character_name_\([0-9]*\) .*$/\1/"
Matthew
--
I work for an investment bank. I have dealt with code written by stock
exchanges. I have seen how the computer systems that store your money are
run. If I ever make a fortune, I will store it in gold bullion under my
bed. -- Matthew Crosby