Hi,
My input has much more lines, but few of them are below
pin(IDF) {
direction : input;
drc_pinsigtype : signal;
pin(SELDIV6) {
direction : input;
drc_pinsigtype : ... (3 Replies)
hi working with sed in a shell script
using sed to print a range of lines from a given file
for example to print lines 12-24 from a file
sed 12,24p <filename>
however i need to print the line numbers, alongwith the actual lines
would this be possible at all?
Thanks (1 Reply)
Hi all,
on Solaris 10, I'd like to print a range of lines starting at pattern but also including the very first line before pattern.
the following doesn't print the range starting at pattern and going down to the end of file: cat <my file> | sed -n -e '/<pattern>{x;p;}/'
I need to include the... (1 Reply)
The following is part of a larger project and sed is (right now) a given. I am working on a recursive Korn shell function to "peel off" XML tags from a larger text. Just for context i will show the complete function (not working right now) here:
function pGetXML
{
typeset chTag="$1"
typeset... (5 Replies)
The following text is in testFile.txt:
one 5
two 10
three 15
four 20
five 25
six 10
seven 35
eight 10
nine 45
ten 50
I'd like to use sed to print the first occurance of search pattern /10/ in a given range. This command is to be run against large log files, so to optimize efficiency,... (9 Replies)
Hi Guru's,
I am trying to grep a range of line numbers (based on match) and then look for another match which starts with a special character '$' and print the line number. I have the below code but it is actually printing the line number counting starting from the first line of the range i am... (15 Replies)
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
Hi all,
I have been searching all over Google but I am unable to find a solution for a particular result that I am trying to achieve.
Consider the following input:
1
2
3
4
5
B4Srt1--Variable-0000
B4Srt2--Variable-1111
Srt
6
7
8
9
10
End (3 Replies)
Hi,
I have attached an output file which is some kind of database file mapping. It is basically like an allocation mapping of a tablespace and its datafile/s.
The output is generated by the SQL script that I found from 401 Authorization Required
Excerpts of the file are as below:
... (2 Replies)
Discussion started by: newbie_01
2 Replies
LEARN ABOUT HPUX
close
close(2) System Calls Manual close(2)NAME
close - close a file descriptor
SYNOPSIS DESCRIPTION
closes the file descriptor indicated by fildes. fildes is a file descriptor obtained from a or system call. All associated file segments
which have been locked by this process with the function are released (i.e., unlocked).
RETURN VALUE
Upon successful completion, returns a value of 0; otherwise, it returns -1 and sets to indicate the error.
ERRORS
fails if the any of following conditions are encountered:
[EBADF] fildes is not a valid open file descriptor.
[EINTR] An attempt to close a slow device or connection or file with pending aio requests was interrupted by a signal. The
file descriptor still points to an open device or connection or file.
[ENOSPC] Not enough space on the file system. This error can occur when closing a file on an NFS file system. [When a system
call is executed on a local file system and if a new buffer needs to be allocated to hold the data, the buffer is
mapped onto the disk at that time. A full disk is detected at this time and returns an error. When the system call
is executed on an NFS file system, the new buffer is allocated without communicating with the NFS server to see if
there is space for the buffer (to improve NFS performance). It is only when the buffer is written to the server (at
file close or the buffer is full) that the disk-full condition is detected.]
SEE ALSO creat(2), dup(2), exec(2), fcntl(2), lockf(2), open(2), pipe(2), thread_safety(5).
STANDARDS CONFORMANCE close(2)