Sponsored Content
Top Forums Shell Programming and Scripting sed changes go to standard out....? Post 302178841 by era on Wednesday 26th of March 2008 12:01:07 PM
Old 03-26-2008
Actually if you are always appending to netmap.cfg then you don't need the temporary file at all.

Code:
sed -e "s/bogus/$newnode/" -e "s/ipaddress/$IP/" newnode >>netmap.cfg

Sorry, I missed this detail.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

what can I get the posix standard?

I wanted study and write a unix like system. who can help me. ------------- Removed the garbled characters... not sure why they were there... (2 Replies)
Discussion started by: crashsky
2 Replies

2. HP-UX

v2 standard libraries

I am a bit confused about the use of _v2 standard libraries on HP. I am working on HP11.11 risk machine and HP 11.23 Itanium machine. I am building a C++ shared library which is linked by a JNI shared library and other non-java related libraries. Eveything is compiled with -AA flag. When I... (0 Replies)
Discussion started by: cactuar
0 Replies

3. UNIX for Advanced & Expert Users

To know the standard

Dear all, I have a need to find the standard of my system such as POSIX. How can I know that. Is there any way to find it. I am using GNU/Linux. (2 Replies)
Discussion started by: nagalenoj
2 Replies

4. Shell Programming and Scripting

Sed does not make changes in the file but to the standard output

I have an xml file. I am doing some change, say deleting line 770. File name is file.xml. I use: sed '770d' file.xml but this does not actually make changes in the *file* but shows the changes on standard output (screen) if i use $var=`sed '770d' file.xml` echo $var > file.xml this... (3 Replies)
Discussion started by: indianjassi
3 Replies

5. Shell Programming and Scripting

standard error to standard out question

Hi there how can i get the result of a command to not give me its error. For example, on certain systems the 'zfs' command below is not available, but this is fine becaues I am testing against $? so i dont want to see the message " command not found" Ive tried outputting to /dev/null 2>&1 to no... (5 Replies)
Discussion started by: hcclnoodles
5 Replies

6. Solaris

standard input

Please give me any example for standard input in Solaris. (6 Replies)
Discussion started by: karman0931
6 Replies

7. UNIX for Dummies Questions & Answers

Redirect Standard output and standard error into spreadsheet

Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway? Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Discussion started by: killaram
6 Replies

8. Shell Programming and Scripting

Standard out and standard error

I need to run a cronjob and in the cronjob I execute a script that if there is an error produces standard error so I do /RUNMYSCRIPT 2> mylogfile.log However, if it runs correctly, I don't get a standard error output, I get a standard out output. How do I redirect both standard error and... (2 Replies)
Discussion started by: guessingo
2 Replies

9. Shell Programming and Scripting

sed command works from cmd line to standard output but will not write to file

Hi all .... vexing problem here ... I am using sed to replace some special characters in a .txt file: sed -e 's/_<ED>_/_355_/g;s/_<F3>_/_363_/g;s/_<E1>_/_341_/g' filename.txt This command replaces <ED> with í , <F3> with ó and <E1> with á. When I run the command to standard output, it works... (1 Reply)
Discussion started by: crumplecrap
1 Replies

10. Shell Programming and Scripting

sed with standard input not working

I am trying use sed to replace a string in a file with input string passed, but it is not replacing the string. instead it replace as $1. Please find below the code. echo $1 sed -i.$now "s/http.*.myservice.*.war/$1/" tempfile.xml I am running above code as below myscript.sh ReplaceString... (4 Replies)
Discussion started by: sakthi.99it
4 Replies
DOMATTR(3)								 1								DOMATTR(3)

The DOMAttr class

INTRODUCTION
DOMAttr represents an attribute in the DOMElement object. CLASS SYNOPSIS
DOMAttr DOMAttrextends DOMNode Properties o publicreadonly string$name o publicreadonly DOMElement$ownerElement o publicreadonly bool$schemaTypeInfo o publicreadonly bool$specified o public string$value Methods o public DOMAttr::__construct (string $name, [string $value]) o public bool DOMAttr::isId (void ) Inherited methods o public DOMNode DOMNode::appendChild (DOMNode $newnode) o public string DOMNode::C14N ([bool $exclusive], [bool $with_comments], [array $xpath], [array $ns_prefixes]) o public int DOMNode::C14NFile (string $uri, [bool $exclusive], [bool $with_comments], [array $xpath], [array $ns_prefixes]) o public DOMNode DOMNode::cloneNode ([bool $deep]) o public int DOMNode::getLineNo (void ) o public string DOMNode::getNodePath (void ) o public bool DOMNode::hasAttributes (void ) o public bool DOMNode::hasChildNodes (void ) o public DOMNode DOMNode::insertBefore (DOMNode $newnode, [DOMNode $refnode]) o public bool DOMNode::isDefaultNamespace (string $namespaceURI) o public bool DOMNode::isSameNode (DOMNode $node) o public bool DOMNode::isSupported (string $feature, string $version) o public string DOMNode::lookupNamespaceURI (string $prefix) o public string DOMNode::lookupPrefix (string $namespaceURI) o public void DOMNode::normalize (void ) o public DOMNode DOMNode::removeChild (DOMNode $oldnode) o public DOMNode DOMNode::replaceChild (DOMNode $newnode, DOMNode $oldnode) PROPERTIES
o $name -The name of the attribute o $ownerElement -The element which contains the attribute o $schemaTypeInfo -Not implemented yet, always is NULL o $specified -Not implemented yet, always is NULL o $value -The value of the attribute SEE ALSO
oW3C specification of Attr PHP Documentation Group DOMATTR(3)
All times are GMT -4. The time now is 09:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy