Thanks, and sorry for not being very clear in my initial post. The output that I am trying to get is:
Another example,
Some noisy text:
Therefore, I only aim to replace space with a '-' within this pattern "[[ ]]" and no where else in the text file. The outputs that I get from the above two suggested solutions are putting hyphens everywhere.
Hi,
I have a file with a URL text written in it within double quotes e.g.
"http://abcd.xyz.com/mno/somefile.dtd"
I want the above text to get replaced by a single space character.
I tried
cat File1.txt | sed -e 's/("http)*(dtd")/ /g' > File2.txt
But it didnt work out. Can someone... (5 Replies)
Hello All,
I have a file with thousands of records:
eg:
|000222|123456987|||||||AARONSON| JOHN P|||PRIMARY |P
|000111|567894521|||||||ATHENS| WILLIAM k|||AAAA|L
Expected:
|000222|123456987|||||||AARONSON| JOHN |P|||PRIMARY |P
|000111|567894521|||||||ATHENS| WILLIAM |k|||AAAA|L
I... (6 Replies)
I would like to replace the value of * (which might have one or more whitespace(s) before and after *) using sed command in aix.
Eg: Var='Hi I am there *
Desired output: Hi I am there* (1 Reply)
I'm trying to replace a string "99999999'" with the blank where ever is there in the file. Could you please help in unix scripting.
Thank You. (6 Replies)
I have a string and want to replace the / with a space.
For example having "SP/FS/RP" I want to get "SP FS RP"
However I am having problems using gsub
set phases = `echo $Aphases | awk '{gsub(///," ")}; {print}'` (5 Replies)
If the string is of the pattern XxxXyzAbc...
The expected out put from sed has to be Xxx Xyz Abc ...
eg: if the string is QcfEfQfs, then the expected output is Qcf Ef Efs.
If i try to substitute the pattern with space then the sed will replace the character or pattern with space,... (1 Reply)
Hi All
I am having pipe seperated inputs like
Adam|PeteR|Josh|PEter
Nick|Rave|Simon|Paul
Steve|smith|PETER|Josh
Andrew|Daniel|StAlin|peter
Rick|PETer|ADam|RAVE
i want to repleace all the occurrence of peter (in any case pattern PeteR,PEter,PETER,peter,PETer) with Peter so that output... (5 Replies)
i have little challenge, help me out.i have a file where i have a value declared and and i have to replace the value when called. for example i have the value for abc and ccc. now i have to substitute the value of
value abc and ccc in the place of them.
Input File:
go to &abc=ddd;
if... (16 Replies)
I'm attempting to replace a substring that contains a hyphen and not having much success, can anyone point out where i'm going wrong or suggest an alternative.
# echo /var/lib/libvirt/images/vm888b-clone.qcow | sed -e 's|vm888-clone|qaz|g'
/var/lib/libvirt/images/vm888b-clone.qcow (1 Reply)
hi,
I'm trying to calculate IP addresses and their respective calls to our apache Server. The standard format of the input is
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST... (2 Replies)
Discussion started by: busyboy
2 Replies
LEARN ABOUT DEBIAN
gsmarkupbrowser
GSMARKUPBROWSER.APP(1) General Commands Manual GSMARKUPBROWSER.APP(1)NAME
GSMarkupBrowser.app - GNUstep Development Framework
SYNOPSIS
GSMarkupBrowser.app [FILE]
DESCRIPTION
This manual page documents briefly the GSMarkupBrowser.app utility.
This manual page was written for the Debian distribution (based on the program's README file) because the original program does not have a
manual page.
GSMarkupBrowser.app is a GNUstep Renaissance utility that allows a developer to review the look and feel of a GUI based on its GNUstep
Renaissance Markup Language file (gsmarkup for short.) This allows the designer to develop the layout without having to actually have
working code to run the program.
Of course, the GUI is just for visual inspection -- it does not support any functional use of the application.
Renaissance was written by Nicola Pero (n.pero@mi.flashnet.it) and is part of the GNUstep project (http://www.gnustep.org).
GNUstep Renaissance home page is at http://www.gnustep.it/Renaissance.
AUTHOR
This manual page was written by Brent A. Fulgham <bfulgham@debian.org>, for the Debian project (but may be used by others).
SEE ALSO GSMarkupLocalizableStrings.app(1), Renaissance(7)GNUstep February 6, 2004 GSMARKUPBROWSER.APP(1)