You are right. I originally wrote it as you suggest above. But I stripped it down to the simpler version because it worked on the test input. Should have considered more realistic test input, as you did.
---------- Post updated at 07:23 AM ---------- Previous update was at 07:17 AM ----------
Quote:
Originally Posted by Scrutinizer
Because the version of sed (GNU sed?) you are using happens to accept it without the semicolon or newline, but some other seds do not ..
Yes, I do use GNU sed. I had no idea that some other versions require the semicolon between a command and the closing curly bracket. Do you happen to know a particular version with that picky behavior?
I am using grep to find header info in a file and print it to another file. The header info only shows up on line 3 and 4 so i really don't need to search the remainder of the file. the grep -m option doesn't work with my version of UNIX. Also I'm new to UNIX so could you please explain what... (4 Replies)
Hi, I've been trying to figure this one out and found a post about this on the forum here but the solution didn't seem to work for me. Basically what I have is a file that looks something like:
stuff
morestuff
0
otherthing
0
etc
I want to substitute for the 0 but what I want to... (9 Replies)
hi
i have one file where i want to substitute only first instance of
swap
with swap1
i want to replcae only first instance of swap in my script
i know we can do this with awk. but i need to do this with sed only
i tried follwoing code
sed 's/swap/swap1' filename
but here all... (15 Replies)
Hi,
Here is my piece of code used with sed in shell script:
sed -i '/<falsemodule-option>/ a\<LdapLogin>' myxmlfile
The problem that i am facing with the above is that in 'myxml' file i have mulitple instances of <falsemodule-option>
so when i execute the above sed command, it is appending... (10 Replies)
I need to reduce a file's size below 50MB by deleting chucks of text. The following sed does this.
sed '/^begpattern/,/endpattern/d' myfile
However, it's possible that the file size can get below 50MB by just deleting the first instance of the pattern. How do I code that into sed?
Or can awk... (8 Replies)
I was told a way to do this with awk earlier today but is there a way with sed to specify the last instance of a character on a line?
You will know what character you're looking for but there could be none or one hundred instances of it on a line say and you ONLY want to specify the last one for... (3 Replies)
The following text is in testFile.txt:
one 5
two 10
three 15
four 20
five 25
six 10
seven 35
eight 10
nine 45
ten 50
I'd like to use sed to print the first occurance of search pattern /10/ in a given range. This command is to be run against large log files, so to optimize efficiency,... (9 Replies)
Hi all,
I'm new to the forum and also relatively new to sed and other such wonderfully epic tools.
I'm attempting to grab a section of text between two words, but it seems to match all instances of the range instead of stopping at just the first.
This occurs when I use:
sed -n... (7 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)
Discussion started by: Klasform
9 Replies
LEARN ABOUT SUSE
load
LOAD(7) SQL Commands LOAD(7)NAME
LOAD - load a shared library file
SYNOPSIS
LOAD 'filename'
DESCRIPTION
This command loads a shared library file into the PostgreSQL server's address space. If the file has been loaded already, the command does
nothing. Shared library files that contain C functions are automatically loaded whenever one of their functions is called. Therefore, an
explicit LOAD is usually only needed to load a library that modifies the server's behavior through ``hooks'' rather than providing a set of
functions.
The file name is specified in the same way as for shared library names in CREATE FUNCTION [create_function(7)]; in particular, one can rely
on a search path and automatic addition of the system's standard shared library file name extension. See in the documentation for more
information on this topic.
Non-superusers can only apply LOAD to library files located in $libdir/plugins/ -- the specified filename must begin with exactly that
string. (It is the database administrator's responsibility to ensure that only ``safe'' libraries are installed there.)
COMPATIBILITY
LOAD is a PostgreSQL extension.
SEE ALSO
CREATE FUNCTION [create_function(7)]
SQL - Language Statements 2010-05-14 LOAD(7)