03-14-2011
reply
Hi Panyam,
We have huge files to work upon and looking for a faster and better way other than converting each character to its ascii value.Also, the record layout changes when we try your command which would give incorrect position. To mention all the files will consist of fixed length records
Is there a way where we can run grep using the ascii value of this special character directly? Is there any better way to do this?We will just need to locate this special character and find the number of occurrences,number of records its impacting and the fields impacted based on the position.Any help on this is highly appreciated.
Thanks for replying.
Last edited by devina; 03-14-2011 at 09:37 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I am trying to schedule a one time job using the at command with the help of shell script for my project. The shell script should take a parameter as a command line argument from the at command itself. Is it possible to take a command line parameter for a shell script in the command... (3 Replies)
Discussion started by: Mohanraj
3 Replies
2. HP-UX
Hi,
I'm seeing the error vmunix: file: table is full in syslog.log.
Although changing the value of the kernel parameter nfile would make this error go away, how would I identify which process/application in the server is triggering this error? The server is a HP-UX B.11.11.
Thanks in advance! (1 Reply)
Discussion started by: enchogas
1 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. Shell Programming and Scripting
Hi,
I have hundreds of files "*.out" located in one folder,
and I want to:
1. Identify the good files containing "Normal termination" (grep "Normal termination" *.out )
2. Compress the good files into a tar.gz file (tar cvfz good.tar.gz *.goog.out )
Is there a way I can automate this... (4 Replies)
Discussion started by: rockytodd
4 Replies
5. UNIX for Dummies Questions & Answers
I am trying to find lines in a text file larger than 3 Gb that start with a given string. My command looks like this:
$ look "string" "/home/patrick/filename.txt"
However, this gives me the following message:
"look: /home/patrick/filename.txt: File too large"
So, I have two... (14 Replies)
Discussion started by: shishong
14 Replies
6. Red Hat
Sometimes idle process(%98) and load average(98.32) are very high. When its happen I check with "top" command and I kill visible process. After killing machine status already same. How can I check high process using ps command.
I want to find that which processes are using more than %50 CPU or... (5 Replies)
Discussion started by: getrue
5 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
This is a script I got off the web for transferring Safari's "reading list" to the Pocket app. I ran it in terminal with the command bash exportsafarireadinglist.sh and got syntax error: unexpected end of file. Thanks for any help! The code:
#!/bin/bash
# Script to export Safari's reading... (2 Replies)
Discussion started by: kdog126
2 Replies
9. Shell Programming and Scripting
Hi,
I have a huge unsorted text file. We wanted to identify the unique field values in a line and consider those fields as a primary key for a table in upstream system.
Basically, the process or script should fetch the values from each line that are unique compared to the rest of the lines in... (13 Replies)
Discussion started by: manikandan23
13 Replies
10. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT SUNOS
dat_ep_set_watermark
dat_ep_set_watermark(3DAT) Direct Access Transport Library Functions dat_ep_set_watermark(3DAT)
NAME
dat_ep_set_watermark - set high watermark on Endpoint
SYNOPSIS
cc [ flag... ] file... -ldat [ library... ]
#include <dat/udat.h>
DAT_RETURN
dat_ep_set_watermark (
IN DAT_EP_HANDLE ep_handle,
IN DAT_COUNT soft_high_watermark,
IN DAT_COUNT hard_high_watermark
)
PARAMETERS
ep_handle The handle for an instance of an Endpoint.
soft_high_watermark The soft high watermark for the number of Recv buffers consumed by the Endpoint.
hard_high_watermark The hard high watermark for the number of Recv buffers consumed by the Endpoint.
DESCRIPTION
The dat_ep_set_watermark() function sets the soft and hard high watermark values for EP and arms EP for generating asynchronous events for
high watermarks. An asynchronous event will be generated for IA async_evd when the number of Recv buffers at EP exceeds the soft high
watermark for the first time. A connection broken event will be generated for EP connect_evd when the number of Recv buffers at EP exceeds
the hard high watermark. These can occur during this call or when EP takes a buffer from the SRQ or EP RQ. The soft and hard high watermark
asynchronous event generation and setting are independent of each other.
The asynchronous event for a soft high watermark is generated only once per setting. Once an event is generated, no new asynchronous events
for the soft high watermark is generated until the EP is again set for the soft high watermark. If the Consumer is once again interested in
the event, the Consumer should again set the soft high watermark.
If the Consumer is not interested in a soft or hard high watermark, the value of DAT_WATERMARK_INFINITE can be specified for the case that
is the default value. This value specifies that a non-asynchronous event will be generated for a high watermark EP attribute for which this
value is set. It does not prevent generation of a connection broken event for EP when no Recv buffer is available for a message arrived on
the EP connection.
The operation is supported for all states of Endpoint.
RETURN VALUES
DAT_SUCCESS
The operation was successful.
DAT_INVALID_HANDLE
The ep_handle argument is an invalid DAT handle.
DAT_INVALID_PARAMETER
One of the parameters is invalid.
DAT_MODEL_NOT_SUPPORTED
The requested Model was not supported by the Provider. The Provider does not support EP Soft or Hard High Watermarks.
USAGE
For a hard high watermark, the Provider is ready to generate a connection broken event as soon as the connection is established.
If the asynchronous event for a soft or hard high watermark has not yet been generated, this call simply modifies the values for these
attributes. The Provider remains armed for generation of these asynchronous events.
Regardless of whether an asynchronous event for the soft and hard high watermark has been generated, this operation will set the generation
of an asynchronous event with the Consumer-provided high watermark values. If the new high watermark values are below the current number of
Receive DTOs at EP, an asynchronous event will be generated immediately. Otherwise the old soft or hard (or both) high watermark values are
simply replaced with the new ones.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard: uDAPL, 1.2 |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
dat_ep_create(3DAT), dat_ep_recv_query(3DAT), dat_srq_create(3DAT), dat_srq_free(3DAT), dat_srq_post_recv(3DAT), dat_srq_query(3DAT),
dat_srq_resize(3DAT), dat_srq_set_lw(3DAT), libdat(3LIB), attributes(5)
SunOS 5.10 16 Jul 2004 dat_ep_set_watermark(3DAT)