sed help, Find a pattern, replace it with same text minus leading 0
HI Folks,
I'm looking for a solution for this issue.
I want to find the Pattern 0[0-9]/ and replace it with [0-9]/. I'm just removing the leading zero. I can find the Pattern but it always puts literal value as a replacement.
What am I missing??
Moderator's Comments:
edit by bakunin: Please view this code tag video for how to use code tags when posting code and data.
Hi I need to help on finding the below pattern using sed
<b><a href="/home/document.do?assetkey=x-y-abcde-1&searchclause=photo">
and replace as below in the same line on the index file.
<b><a href="/abcde.html">
thx in advance.
Mari (5 Replies)
This is my first post, please be nice. I have tried to google and read different tutorials.
The task at hand is:
Input file input.txt (example)
abc123defhij-E-1234jslo
456ujs-W-abXjklp
From this file the task is to grep the -E- and -W- strings that are unique and write a new file... (5 Replies)
Hi,
I have a situation where I want to replace some occurrences of ".jsp" into ".html" inside a text file.
For Example:
If a pattern found like <a href="http://www.mysite.com/mypage.jsp"> it should be retained.
But if a pattern found like <a href="../mypage.jsp"> it should be changed to... (4 Replies)
Hi,
My input file
form 1
fill 2
fill 3
form 4
fill 5
form 6
fill 7
form 8
Now i need to substiute according to the fill.
form followed by single fill need to be replced with category 1
form with above and below fill need to be repalced with category 2 (5 Replies)
i am editing a big log file with the following pattern:
Date: xxxx Updated: name
Some log file text here
Date: eee Updated: ny
Some log file text here
Basically i want to remove all the text in a line before the "Updated" pattern. I sill want to print the other... (4 Replies)
Can someone help me with a sed command:
There will be multiple occurences in a file that look like this:
MyFunction(12c34r5)
and I need to replace that with just the 12c34r5 for every occurrence. The text between the parentheses will be different on each occurrence, so I can't search for that.... (4 Replies)
I've got a file like so:
...lots of lines, etc.
push "route 10.8.0.0 255.255.255.0"
push "route 192.168.1.123 255.255.255.0"
...lots of lines, etc.
I want to sed find/replace the IP address in the second line, whatever it is, with a new IP address, but I don't want to touch the first line.... (5 Replies)
I have a sample text format as given below
<Text Text_ID="10155645315851111_10155645333076543" From="460350337461111" Created="2011-03-16T17:05:37+0000" use_count="123">This is the first text</Text>
<Text Text_ID="10155645315851111_10155645317023456" From="1626711840902323"... (3 Replies)
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
Hi,
i want to replace the following lines in such a way that if the word merge exists in first column it must replace the 3rd column as M and if parse exists in first column then the last column must P, if neither it must mark it as X. I have tried the solution using awk, but it is saying... (6 Replies)
Discussion started by: charlie87
6 Replies
LEARN ABOUT DEBIAN
exfalso
exfalso(1) General Commands Manual exfalso(1)NAME
exfalso - audio tag editor
SYNOPSIS
exfalso [ directory ]
DESCRIPTION
Ex Falso displays and edits audio metadata tags. Supported formats include MP3, Ogg Vorbis, FLAC, Musepack (MPC), WavPack, and MOD/XM/IT.
This manual page is only a short reference for Ex Falso. Complete documentation is available at http://code.google.com/p/quodli-
bet/wiki/Guide.
OPTIONS
Ex Falso may be given a directory to open on the command line.
TIED TAGS
Many places in Ex Falso allow you to use "tied tags". Tied tags are two tag names joined together with a "~" like "title~version" or
"album~part". Tied tags result in "nice" displays even when one of the tags is missing; for example, "title~version" will result in
Title - Version when a version tag is present, but only Title when one isn't. You can tie any number of tags together.
RENAMING FILES
Ex Falso allows you to rename files based on their tags. In some cases you may wish to alter the filename depending on whether some tags
are present or missing, in addition to their values. A common pattern might be
<tracknumber>. <title~version>
You can use a '|' to only text when a tag is present:
<tracknumber|<tracknumber>. ><title~version>
You can also specify literal text to use if the tag is missing by adding another '|':
<album|<album>|No Album> - <title>
See http://code.google.com/p/quodlibet/wiki/Guide_Renaming.
BUGS
See http://code.google.com/p/quodlibet/issues/list for a list of all currently open bugs and feature requests.
AUTHORS
Joe Wreschnig and Michael Urman are the primary authors of Ex Falso.
SEE ALSO
http://code.google.com/p/quodlibet/wiki/Guide,
http://code.google.com/p/quodlibet/wiki/FAQ
February 20th, 2006 exfalso(1)