08-16-2012
please provide the output desired
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies
2. Shell Programming and Scripting
Hi All,
I have a sql output file has below. I want to get the values 200000040 and 1055.49 .Can anyone help me to write a shell script to get this.
ACCOUNT_NO
------------------------------------------------------------
BILL_NO ... (8 Replies)
Discussion started by: girish.raos
8 Replies
3. Shell Programming and Scripting
Hi,
I have to search a word in a text file and then I have to delete lines above from the word searched . For eg suppose the file is like this:
Records
P1
10,23423432
,77:1
,234:2
P2
10,9089004
,77:1
,234:2
,87:123
,9898:2
P3
456456
P1
:123,456456546
P2
abc:324234 (2 Replies)
Discussion started by: vsachan
2 Replies
4. UNIX for Dummies Questions & Answers
Hi, i am new to unix shell scripting and i need a script which would search for a particular word in all the files present in a directory. The output should have the word and file path name. For example: "word" "path name".
Thanks for the reply in adv,:) (3 Replies)
Discussion started by: virtual_45
3 Replies
5. UNIX for Dummies Questions & Answers
I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL.
I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies
6. Shell Programming and Scripting
I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word "description" excluding weird characters like $&lmp and without html tags in the new file output.txt. Help me. Thanx in advance. I have attached the input... (4 Replies)
Discussion started by: sachit adhikari
4 Replies
7. Shell Programming and Scripting
Hi,
I am trying to search for a word and print the next word. For example:
My text is "<TRANSFORMATION TYPE ="Lookup Procedure">"
I am searching for "TYPE" and trying to print ="Lookup Procedure"
I have written a code like following:
echo $line | nawk... (4 Replies)
Discussion started by: sampoorna
4 Replies
8. Shell Programming and Scripting
Hi All,
I have a XML file which is looks like as below. <<please see the attachment >>
<?xml version="1.0" encoding="UTF-8"?>
<esites>
<esite>
<name>XXX.com</name>
<storeId>10001</storeId>
<module>
... (4 Replies)
Discussion started by: Rajeev_hbk
4 Replies
9. Shell Programming and Scripting
Hi,
I have a sample file as shown below, I am looking for sed or any command which prints the complete word only from the input file.
Ex:
$ cat "sample.log"
I am searching for a word which is present in this file
We can do a pattern search using grep but I need to cut only the word which... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies
10. UNIX for Beginners Questions & Answers
I have a multicolumn text file with header in the first row like this
The headers are stored in an array called . which contains I want to search for each elements of this array from that multicolumn text file. And I am using this awk approach
for ii in ${hdr}
do
gawk -vcol="$ii" -F... (1 Reply)
Discussion started by: Atta
1 Replies
creat64(2) System Calls Manual creat64(2)
NAME
creat64(), fstat64(), fstatvfs64(), getrlimit64(), lockf64(), lseek64(), lstat64(), mmap64(), open64(), pread64(), prealloc64(),
pwrite64(), setrlimit64(), stat64(), statvfs64(), truncate64(), ftruncate64(), O_LARGEFILE - non-POSIX standard API interfaces to support
large files
SYNOPSIS
DESCRIPTION
New API's to support large files in 32-bit applications. These API interfaces are not a part of the POSIX standard and may be removed in
the future.
The function returns a file descriptor which can be used to grow the file past 2 GB if desired. All other functional
behaviors, returns, and errors are identical to
The function is identical to except that returns file status in a instead of a All other functional behaviors,
returns, and errors are identical.
The function is indentical to except that returns file status in a struct instead of a struct
The function is identical to except that passes a as its second parameter instead of a All other functional behaviors,
returns, and errors are identical.
The function is identical to except that accepts an for the size parameter instead of All other functional behaviors,
returns, and errors are identical.
The function is identical to except that accepts an type as the desired offset and has a return value of All other
functional behaviors, returns, and errors are identical.
The function is identical to except that returns file status in a instead of All other functional behaviors, returns,
and errors are identical.
The function is identical to except that accepts the file offset as an
The function opens files of any size. It returns a file descriptor which can be used to grow the file past 2 GB if
desired. All other functional behaviors, returns, and errors are identical to
The function is identical to except that accepts the file offset as an All other functional behaviors, returns, and
errors are identical to
The function is identical to except that accepts the file offset as an All other functional behaviors, returns, and
errors are identical to
The function is identical to except that accepts the file offset as an All other functional behaviors, returns, and
errors are identical to
The function is identical to except that passes a as its second parameter instead of a All other functional behaviors,
returns, and errors are identical.
The function is identical to except that returns file status in a instead of a
Refer to
The function is identical to except that accepts the length parameter as an instead of All other functional behaviors,
returns, and errors are identical to
The function is identical to except that accepts the length parameter as an instead of All other functional behaviors,
returns, and errors are identical to
Setting in a call to or is equivalent to calling or both of which set in the file status flags. This bit is automatically
set by and if is set to 64. The bit may be queried by (or which can also turn the bit on or off if desired.
APPLICATION USAGE
The standard POSIX interfaces may be used by 32-bit applications to create and access large files if compiled with set to 64.
The interfaces described here are alternatives to the standard ones, and are enabled by defining
For 64-bit applications, access to large files is automatic, as long as the underlying file system is enabled for large files. The inter-
faces on this man page are available to 64-bit applications, for convenience in porting, but provide no additional capabilities. The
exception is which is not visible to 64-bit applications.
SEE ALSO
creat(2), thread_safety(5).
creat64(2)