Hello UNIX experts,
I have 124 text files in a directory. I want to extract the 45678th line of all the files sequentialy by file names. The extracted lines should be printed in the output file on seperate lines.
e.g. The input Files are one.txt, two.txt, three.txt, four.txt
The cat of four... (1 Reply)
Hi
I have requirement to find nth occurrence in a file and capture data from with in lines (between lines)
Data in File.
<QUOTE>
<SESSION>
<ATTRIBUTE NAME='Parameter Filename' VALUE='file1.parm'/>
<ATTRIBUTE NAME='Service Name' VALUE='None'/>
</SESSION>
<SESSION>
<ATTRIBUTE... (6 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)
Hi All,
I am using UNix Sun OS sun4u sparc SUNW,SPARC-Enterprise
My intention is to insert a line of text after 13th line of every file inside a particular directory.
While trying to do it for a single file , i am using sed
sed '3 i this is the 4th line' filename
sed: command garbled: 3... (5 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 HPUX
gettune
gettune(2) System Calls Manual gettune(2)NAME
gettune - get the value of a kernel tunable parameter
SYNOPSIS DESCRIPTION
This function retrieves the current value of the kernel tunable parameter named tunable. The value is passed back through the supplied
value pointer. The value returned is the value for the tunable that is being used by the currently running kernel.
RETURN VALUE
This function returns zero for success, or -1 for an error.
ERRORS
If this function returns -1 to indicate an error, the global variable will be set to one of the following values, to indicate the error
that occurred:
The specified tunable parameter does not exist.
The Kernel Registry Service was unavailable or encountered an error.
tunable or value specifies an address that is inaccessible.
WARNINGS
Some tunables have signed integer values. For these tunables, the caller must cast the returned value to an type before using it. To find
out which tunables have signed integer values, use the tuneinfo2(2) system call, or consult the tunable parameter man pages.
AUTHOR
was developed by Hewlett-Packard Company.
SEE ALSO settune(2), tuneinfo2(2), and the individual tunable parameter man pages in section 5.
gettune(2)