I have 3 files that contain the following information (sql output from Oracle database stored in a txt file):
File1.txt :
second file contains the following information (source same as above):
File2.txt
Third file contains the following information (source same as above):
File3.txt
I would like to combine the files together into one single file and having an output as shown below (with blank lines after every 3 lines:
hi,
I want to combine two lines in same file. If the line ends with '&' it should belongs to previous line only
Here i am writing example.
Ex1:
line 1 : return abcdefgh&
line 2 : ijklmnopqr&
line 3 : stuvw&
line 4 : xyz
output should be
line 1: return abcdefghijklmnopqrstuvwxyz
... (11 Replies)
I'm rather new to programming, and am attempting to combine lines from 2 files in a way that is way beyond my expertise - any help would be appreciated!
I need to take a file (file1) and add columns to it from another file (file2). However, a line from file2 should only be added to a given line... (3 Replies)
Hi All,
I need to find and list the last 5 days files in that exact name with "MIM" and copy to another directory.
please help me in this there is around 30000 files
Thanks
Murali (7 Replies)
Hi Gurus,
I need to list only the files with out certain extension.
For eg from the following list of files:
I need to only list:
Thanks
Shash (7 Replies)
Hi all
I am trying to loop through a directory of files using a given search pattern. some of the files will be duplicated due to the pattern, but of the duplicate files i wanted to move the older files to another location.
Is there any straightforward way of doing this ?
One of ways I... (1 Reply)
Hi All,
I need to find all files in a directory which are containing specific pattern. Thing is that file name should not consider if pattern is only in commented area.
all contents which are under /* */ are commented
all lines which are starting with -- or if -- is a part of some sentence... (13 Replies)
I have to create a new CSV file based on the value listed on the 3rd column from different CSV files. This is what I need:
1. I should substitute the first column from each file, excluding the headers, with the file name InputXX.
2. Then, I need to look for rows with 0 on the third column in... (7 Replies)
Discussion started by: Xterra
7 Replies
LEARN ABOUT OPENSOLARIS
ptree_add_row_to_table
ptree_create_table(3PICLTREE) PICL Plug-In Library Functions ptree_create_table(3PICLTREE)NAME
ptree_create_table, ptree_add_row_to_table - create a table object
SYNOPSIS
cc [ flag... ] file... -lpicltree [ library... ]
#include <picltree.h>
int ptree_create_table(picl_prophdl_t *tbl_hdl);
int ptree_add_row_to_table(picl_prophdl_t tbl_hdl, int nprops,
picl_prophdl_t *proph);
DESCRIPTION
The ptree_create_table() function creates a table object and returns the handle of the table in tbl_hdl.
The ptree_add_row_to_table() function adds a row of properties to the table specified by tbl_hdl. The handles of the properties of the row
are specified in the proph array and nprops specifies the number of handles in the array. The number of columns in the table is determined
from the first row added to the table. If extra column values are specified in subsequent rows, they are ignored. The row is appended to
the end of the table.
RETURN VALUES
Upon successful completion, 0 is returned. On failure, a non-negative integer is returned to indicate an error.
PICL_STALEHANDLE is returned if the handle is no longer valid. This occurs if the PICL tree was refreshed or reinitialized.
PICL_INVALIDHANDLE is returned if the specified handle never existed.
ERRORS
PICL_INVALIDARG Invalid argument
PICL_NOTPROP Not a property
PICL_NOTTABLE Not a table
PICL_INVALIDHANDLE Invalid handle
PICL_STALEHANDLE Stale handle
PICL_FAILURE General system failure
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO attributes(5)SunOS 5.11 28 Mar 2000 ptree_create_table(3PICLTREE)