Displaying 20 results from an estimated 40000 matches similar to: "sed a particular line in file"
2010 Nov 27
1
sed with several lines, how?
hyphen's [ - ] are just for marking the start/end of a pattern, but
there are _not in_ the pattern!
"OUTPUT" is what i want after "seding" the PATTERN#X's
so i for e.g.: need the first, and second "magic"
sed "FIRSTMAGIC" PATTERN#1
sed "SECONDMAGIC" PATTERN#2
PATTERN#1:
-----------------------------------
SOMETEXT#1
2012 May 31
0
[LLVMdev] [PATCH] Build llvm-config on Windows/MSVC if sed is present
Justin Holewinski <jholewinski at nvidia.com> writes:
> The attached patch modifies the CMake/LLVMBuild scripts to build
> llvm-config on Windows if sed is found on the user's PATH. It also
> teaches LLVMBuild about MSVC library naming so llvm-config will
> produce the proper lists of library names.
>
> Any comments? Okay to commit?
The presence of sed does not mean
2017 Nov 07
2
Problem with 'sed' on one Windows bot?
As Davide suggests, most likely it's a bot software installation snafu.
But the simpler sed script works perfectly, and I'll do that for now.
I had understood that LLVM expected people to install GnuWin32, but
maybe it's not sufficiently well specified about versions and whatnot.
--paulr
> -----Original Message-----
> From: davide.italiano at gmail.com [mailto:davide.italiano
2012 May 31
2
[LLVMdev] [PATCH] Build llvm-config on Windows/MSVC if sed is present
The attached patch modifies the CMake/LLVMBuild scripts to build llvm-config on Windows if sed is found on the user's PATH. It also teaches LLVMBuild about MSVC library naming so llvm-config will produce the proper lists of library names.
Any comments? Okay to commit?
-----------------------------------------------------------------------------------
This email message is for the sole use
2004 Sep 10
2
libtool "missing sed" bug
I am putting the finishing touches on the next release. I got
everything mostly working with the latest autotools, but I've
noticed that the generated libtool after configure does not
have $SED defined. searching around it seems to be a common problem.
I thought as a simple workaround that I would just distribute a
libtool script that sets $SED to 'sed' (expecting it to be in the
2017 Nov 09
2
Problem with 'sed' on one Windows bot?
Thanks, Galina. It doesn't explain why the test worked on some bots but not this one, but Justin's workaround is okay with me.
--paulr
From: Galina Kistanova [mailto:gkistanova at gmail.com]
Sent: Thursday, November 09, 2017 10:09 AM
To: Robinson, Paul
Cc: Davide Italiano; llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Problem with 'sed' on one Windows bot?
There is nothing
2015 Aug 25
1
sed question
On 08/25/2015 11:02 AM, Gordon Messmer wrote:
>
> Additionally, you can avoid using "cat" to make the script more
> efficient. You'll start fewer processes, and complete more quickly. cat
> is almost never needed unless you actually need to con"cat"enate
> multiple files.
I sometimes like to use cat purely for stylistic reasons :
cat file.txt |\
sed
2008 Nov 26
1
How to create a string containing '\/' to be used with SED?
Hi guys,
I've been struggling to find a solution to the following issue:
I need to change strings in .ini files that are given in input to a program
whose output is processed by R. The strings to be changed looks like:
"instance = /home/TSPFiles/TSPLIB/berlin52.tsp"
I normally use Sed for this kind of things. So, inside R I'd like to write
something like:
command <-
2015 Aug 25
5
sed question
I am trying to use sed to change a value in a pipe.
------------------- This is the two line script
CHANGE="1234"
cat my_file.txt | sed 's/CANCELID/$CHANGE/' > cancel.txt
-------------------
and the my_file.txt has:
<v1:notificationId>CANCELID</v1:notificationId>
it gets changed to $CHANGE instead of the actual value 1234 .
I tried putting a \ in front
2017 Nov 07
4
Problem with 'sed' on one Windows bot?
A test I added in r317607 is passing almost everywhere, except for
llvm-clang-x86_64-expensive-checks-win. Other Windows bots are happy.
http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/6013
The test runs 'sed' on a file to generate variations of the input
assembler source for Linux and Darwin. I have to say it looks like
'sed' is being the
2009 Jun 10
3
grep/sed help
I am rsyncing and remotely doing some work based on a logfile from
a windows box from a centos backup server. I get the output from a
vss snapshot that has a section like this:
* SNAPSHOT ID = {639ef5df-c933-4496-878a-ed57b9d52876} ...
- Shadow copy Set: {427ac5db-21be-4c53-8ca4-24e7bac86a1d}
- Original count of shadow copies = 2
- Original Volume name:
2009 Aug 19
1
sed append question
Hey guys,
I am trying to make sed append every line containing a string with another line.
problem is the appended line needs to start with a tab:
# sed -i '/string/a \tstuff\t\t\tmorestuff' file
Obviously \t or \x09 etc doesn't get interpreted unless there are other characters
before it? How can I get this to begin with a <tab>?
Thanks!
jlc
2010 Mar 09
1
sed help
Hi
Can I know how to use sed to substitue 2 instead of 1 at the same time?
eg:
sed 's/pchloe.com/abc.com/ ; /192.92.123.5/10.10.0.3/g' orgfile >> newfile
thank you
__________________________________________________________________
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and
2009 Nov 20
1
[PATCH libguestfs] build: correct sed transformation to work also on .git-module-status
My patch was wrong.
I kept the sed transformation the same in the two places,
but it wasn't strict enough to also work on the file contents.
Sorry about that. This fixes it.
>From 93927cc7b9f63c414e5bfeb7eba393fde3295601 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Fri, 20 Nov 2009 16:23:17 +0100
Subject: [PATCH libguestfs] build: correct sed
2010 Jan 01
3
which program/command (perl, vi, or sed) is better
Hi
I have apache log file around 7.6G and record half year
Which program/command (perl, vi, or sed) is better to extract the data by date? and finally I can remove that big file and still keep the record.
I have problem when using vi and it uses up the server memory
Thank you for your help
__________________________________________________________________
Get a sneak peak at messages
2008 May 23
2
sed
Not specific to CentOS but I know you guys would be really helpful
anyhow. Basically, I have a file which has been editted in the past
very similarly to the hosts file only now I want to use it as a hosts
file and need to run some fancy sed to massage the data into shape.
Currently, the data in the file is in the form of <ip address> <tab>
<short hostname> <space>
2009 Sep 21
2
sed (or other) magic to get RPM base names ?
Hey folks,
Once upon a time I saw some sed magic to take the output of "rpm -qa"
and strip away all the version info to give just the RPM base names.
And of course I forgot to note it :-/ And have not been able to
replicate it myself.
e.g. from this :
avahi-0.6.16-1.el5
avahi-glib-0.6.16-1.el5
produce this :
avahi
avahi-glib
thanks,
-Alan
--
?Don't eat anything you've
2010 Aug 26
1
pigeonhole needs to ship doc/man/{reporting-bugs.inc, sed.sh}
A tarball created from current pigeonhole hg using "make dist" doesn't
include the files doc/man/{reporting-bugs.inc,sed.sh} and fails to build
as a result. Attached patch works for me.
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-2.0-pigeonhole-manpages.patch
Type: text/x-patch
Size: 397 bytes
Desc: not available
URL:
2019 Sep 24
0
[PATCH nbdkit 2/4] common/protocol: Remove protostrings.sed, use bash+sed instead.
Use a simple bash script to generate the protostrings.c functions.
Remove the extern decls from the nbd-protocol.h file which were used
previously in the generation of this file. They have been moved to a
new internal header called "protostrings.h".
---
common/protocol/Makefile.am | 8 ++-
...tostrings.sed => generate-protostrings.sh} | 56 +++++++++++--------
2015 Aug 25
0
sed question
On 08/25/2015 10:50 AM, Jerry Geis wrote:
> cat my_file.txt | sed 's/CANCELID/$CHANGE/' > cancel.txt
sed doesn't perform environment variable expansion. That is to say that
when you instruct sed to substitute "$CHANGE" for "CANCELID", "$CHANGE"
is a literal string that will be substituted.
bash, on the other hand, does perform environment