Dear all,
I have a file created in the name sample.txt in UNIX with header and footer. How to insert a required string (for example "FILE1") in the header part after the file has been created. What kind of command can i use to do the same.
Thanks in advance
Hari (3 Replies)
Hi All,
I have several txt files i need to enter specific header and footer (both are separate) to all these files how can i do this? plz help..
Regards,
Raghav (4 Replies)
Hi;
I've been searching posts to find a solution to what I'm trying to do, but I've have NOT found anything yet.
I have a file (file1) with 300K columns and 1411 rows, the columns don't have a column no. header (No header at all) and I'm trying to fetch the information from specific columns.... (3 Replies)
Hi,
For my reuirement, I have to read a file from the 2nd line till the last line<EOF>.
Say,
I have a file as test.txt, which as a header record in the first line followed by records in rest of the lines.
for i in `cat test.txt`
{
echo $i
}
While doing the above loop, I have read... (5 Replies)
Is there an awk script that can easily perform the following operation?
I have a data file that is in the format of
1944-12,5.6
1945-01,9.8
1945-02,6.7
1945-03,9.3
1945-04,5.9
1945-05,0.7
1945-06,0.0
1945-07,0.0
1945-08,0.0
1945-09,0.0
1945-10,0.2
1945-11,10.5
1945-12,22.3... (3 Replies)
Hello All,
I have following file contents
cat file
#line=aaaaaa
#line=bbbbbb
#line=cccccc
#line=dddddd
line=eeeeee
#comment=11111
#comment=22222
#comment=33333
#comment=44444
comment=55555
Testing script
Good Luck!
I would like to comment line line=eeeeee and insert a new line... (19 Replies)
Need your help in appending header(file1 contains header ) to my file2. I am using KSH AIX OS.
I know how to do with taking temporary files.
cat file1 >temp
cat file2 >>temp
mv temp file2
Is there way to append directly to a file in ksh.
I don't find Sed -i option on my... (10 Replies)
I would like to hear your directions on how to Insert theses tag </TITLE> and <TEXT> at a given position in 1000 of text files.
My Files look like as
samplefile1.txt
<DOC>
<DOCNO>3_September_2012</DOCNO>
<TITLE>
... ... ... .... ... .. .. .. ... .. .. ....
</TITLE>
<TEXT>
.... (1 Reply)
Hi,
I am trying to insert header row with a special character delimiter with Unicode u0109 into a file with ‘echo’, header looks like below
echo –e “header1\u0109header\u0109header3\u0109header4”
It just inserting as it is in the quotes but not the special character, Please suggest if am... (2 Replies)
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT SUNOS
rsm_memseg_import_init_barrier
rsm_memseg_import_init_barrier(3RSM) Remote Shared Memory Library Functions rsm_memseg_import_init_barrier(3RSM)NAME
rsm_memseg_import_init_barrier, rsm_memseg_import_destroy_barrier - create or destroy barrier for imported segment
SYNOPSIS
cc [ flag... ] file... -lrsm [ library... ]
#include <rsmapi.h>
int rsm_memseg_import_init_barrier(rsm_memseg_import_handle_t memseg, rsm_barrier_type_t type, rsmapi_barrier_t *barrier);
int rsm_memseg_import_destroy_barrier(rsmapi_barrier_t *barrier);
DESCRIPTION
The rsm_memseg_import_init_barrier() function creates a barrier for the imported segment specified by memseg. The barrier type is specified
by the type argument. Currently, only RSM_BAR_DEFAULT is supported as a barrier type. A handle to the barrier is obtained through the bar-
rier argument and is used in subsequent barrier calls.
The rsm_memseg_import_destroy_barrier() function deallocates all the resources associated with the barrier.
RETURN VALUES
Upon successful completion, these functions return 0. Otherwise, an error value is returned to indicate the error.
ERRORS
The rsm_memseg_import_init_barrier() and rsm_memseg_import_destroy_barrier() functions can return the following errors:
RSMERR_BAD_SEG_HNDL Invalid segment handle.
RSMERR_BAD_BARRIER_PTR Invalid barrier pointer.
The rsm_memseg_import_init_barrier() function can return the following errors:
RSMERR_INSUFFICIENT_MEM Insufficient memory.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO rsm_memseg_import_open_barrier(3RSM), rsm_memseg_import_set_mode(3RSM), attributes(5)SunOS 5.10 8 Jun 2001 rsm_memseg_import_init_barrier(3RSM)