05-27-2010
want to append the data in one file to the another
Hi ,
i have two log files, i need to combine this as a one log file.
i need to do this by SED ,
test1.log
sadadadaadfsaf
test2.log
adadadadadada
i need this in a single file from test 1 to test2.log
test2.log(expected result)
adadadadadada
sadadadaadfsaf
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How to get the data from the sybase database and append the data obtained into the file.
For example,
I will get the filename 'temp' from the database. This filename is associated with the number 1.6... This number 1.6 needs to be copied into the file that matches the filename in the... (1 Reply)
Discussion started by: vinay123
1 Replies
2. Shell Programming and Scripting
Hi,
I need to append the data in to a file by using tab delimiter.
eg:
echo "Data1" >> filename.txt
echo "\t" >> filename.txt (its not working)
echo "Data2" >> filename.txt.
the result sould be like this.
Data1 Data2 (6 Replies)
Discussion started by: Sharmila_P
6 Replies
3. UNIX for Dummies Questions & Answers
One of the fortunate things about posting in a "Dummies" forum is you probably aren't expecting a lot of out me...
I'm trying to pull fields from two lines in the same file(s), and then append them together in a new file.
So...I get a nice line-by-line of the first bit of data I'm looking... (6 Replies)
Discussion started by: Milano_EH3
6 Replies
4. UNIX for Dummies Questions & Answers
i want to develop a script newdata that writes new data to a file called items
the file items has the following headings columns separated by tabs:
channel date time programe
if i type executable file newdata on the command line with parameters, it should append it to the items files
the... (1 Reply)
Discussion started by: fletcher
1 Replies
5. Shell Programming and Scripting
I have an xml file data as shown below:
<impl name="Nortel" is-enabled="true">
<package-mappings>
<const-mapping target-state="EndPoint"
target-param="cfCNDSubscribed" constant-value="true"/>
<const-mapping... (2 Replies)
Discussion started by: ravi_rn
2 Replies
6. Shell Programming and Scripting
hai..i am new to unix..and i've currently learn shell script..
i have this small problem where i would like to save every data from log file into user directory if the data is equal to the name of the user..
i manage to do that with below script..
i would like to ask if there is any solutions so... (1 Reply)
Discussion started by: meggae
1 Replies
7. Shell Programming and Scripting
I have a script which has to be scheduled to run 3 times a day.
My script picks the required fields from logfile and stores the data in a.csv file.
Sample data.
my logfile contain:
0097A,0374D,100903,1519,00000606191
0097A,C88RA,100903,0724,00000606105
So the output of first execution... (3 Replies)
Discussion started by: shrima.pratima
3 Replies
8. Shell Programming and Scripting
I have a file which has data in the below format:
7810902|6783014102| || |0| |0| |0| |0|||||T|04/13/2006||9423|7421||100|2006-04-13 16:50:28|||2006-04-13 16:50:28|n|51|-1||214
1089929|||||NewSpCreateAction request successful. Activity ID = <826528>||||100|n|2006-04-13 16:50:27|2006-04-13... (3 Replies)
Discussion started by: ankianand88
3 Replies
9. Shell Programming and Scripting
Following is the code:
------------------------------
a=100
b=200
c=300
touch testfl.txt.gz
chmod 664 testfl.txt.gz
echo $a|gzip >> "testfl.txt.gz"
echo $b|gzip >> "testfl.txt.gz"
echo $c|gzip >> "testfl.txt.gz"
------------------------------
There is a requirement as follows.
I need... (1 Reply)
Discussion started by: kmanivan82
1 Replies
10. Shell Programming and Scripting
Hi
I search for certain values in a file across many directories using the following awk code
awk '/Sl.*thickness/ {Sl=$3;Tt=$NF}END{print Sl, Tt}' DILAT.DAT
What I would like to do is write out Sl and Tt obtained from these files from many directories to a single file. So for example if... (2 Replies)
Discussion started by: lost.identity
2 Replies
LEARN ABOUT PHP
xslt_set_log
XSLT_SET_LOG(3) 1 XSLT_SET_LOG(3)
xslt_set_log - Set the log file to write log messages to
SYNOPSIS
void xslt_set_log (resource $xh, [mixed $log])
DESCRIPTION
This function allows you to set the file in which you want XSLT log messages to, XSLT log messages are different than error messages, in
that log messages are not actually error messages but rather messages related to the state of the XSLT processor. They are useful for
debugging XSLT, when something goes wrong.
By default logging is disabled, in order to enable logging you must first call xslt_set_log(3) with a boolean parameter which enables log-
ging, then if you want to set the log file to debug to, you must then pass it a string containing the filename.
PARAMETERS
o $
xh -The XSLT processor link identifier, created with xslt_create(3).
o $log
- This parameter is either a boolean value which toggles logging on and off, or a string containing the logfile in which log
errors too.
RETURN VALUES
No value is returned.
NOTES
Note
Please note that file:// is needed in front of the path when using Windows.
EXAMPLES
Example #1
Using the XSLT Logging features
<?php
$xh = xslt_create();
xslt_set_log($xh, true);
xslt_set_log($xh, getcwd() . '/myfile.log');
$result = xslt_process($xh, 'dog.xml', 'pets.xsl');
echo $result;
xslt_free($xh);
?>
PHP Documentation Group XSLT_SET_LOG(3)