len(3) Library Functions Manual len(3)NAME
len - return length of Fortran string
SYNOPSIS
character*B ch
integer i
i = len(ch)
DESCRIPTION
len returns the length of string ch. delim off
len(3)
Check Out this Related Man Page
adjmsg(9F) Kernel Functions for Drivers adjmsg(9F)NAME
adjmsg - trim bytes from a message
SYNOPSIS
#include <sys/stream.h>
int adjmsg(mblk_t *mp, ssize_t len);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
mp Pointer to the message to be trimmed.
len The number of bytes to be removed.
DESCRIPTION
The adjmsg() function removes bytes from a message. |len| (the absolute value of len) specifies the number of bytes to be removed. The
adjmsg() function only trims bytes across message blocks of the same type.
The adjmsg() function finds the maximal leading sequence of message blocks of the same type as that of mp and starts removing bytes either
from the head of that sequence or from the tail of that sequence. If len is greater than 0, adjmsg() removes bytes from the start of the
first message block in that sequence. If len is less than 0, it removes bytes from the end of the last message block in that sequence.
The adjmsg() function fails if |len| is greater than the number of bytes in the maximal leading sequence it finds.
The adjmsg() function may remove any except the first zero-length message block created during adjusting. It may also remove any zero-
length message blocks that occur within the scope of |len|.
RETURN VALUES
The adjmsg() function returns:
1 Successful completion.
0 An error occurred.
CONTEXT
The adjmsg() function can be called from user, interrupt, or kernel context.
SEE ALSO
STREAMS Programming Guide
SunOS 5.11 16 Jan 2006 adjmsg(9F)
I have a tab delimited HUGE file (13 million records) with Detail, Metadata and Summary records.
Sample File looks like this
M BESTWESTERN 4 ACTIVITY_CNT_L12 A 3
M AIRTRAN 4 ACTIVITY_CNT_L12 A 3
D BESTWESTERN FIRSTNAME LASTNAME 209 N SANBORN AVE
D BESTWESTERN FIRSTNAME LASTNAME 6997... (25 Replies)
hey guys. i'm new to shell scripting but not new to programming. i want to write a script that will take all the files in the current directory that end with a particular filetype and change all their names to a number in order. so, it would take all the jpg files and sort them in alphabetical... (30 Replies)
Hi,
I need to write a perl script that should do a search recursively in all the '*.txt' files for the string "ALL -Tcb" and should print only the file names that do not contain this string. (21 Replies)
hi
find /home -type f -atime +5
shows me files like :
home/test/aaa.txt
home/test/bbb.html
How can I get the file name
I mean only aaa.txt and bbb.html (19 Replies)
Lets start a list of programming challenges, and include a difficulty level for each program(easy, medium, or hard). Basiclly, you need to say what the program needs to do, any special features, whatever. Please post your files as an attachment, or host it and put a link to it, so to not spoil the... (28 Replies)
Hi,
I rather have a very complicated awk problem here, at least to me. I have two files.
File 1:
607 687 174 0 0 chr1 3000001 3000156 -194195276 - L1_Mur2 LINE L1 -4310 1567 1413 1
607 917 214 114 45 chr1 3000237 ... (19 Replies)
Using lsof command I was able to query all Regular Files opened for write.
A specific processID related output shows some FileDescriptors(FD 45 in second output 45w) pointing to real file. But most of the FDs(1, 2, 5 in first output and 31,29,10 in second output) are pointing to root of the disk... (19 Replies)
I have a group of files in different directories with characters such as " ? : in the file names. How do I find these files and remove these characters on mass?
Thanks (19 Replies)
Hi Guys,
I have been trying to resolve a printing problem but nothing works out .
I have an Epson LQ 680 (dot matrix printer) . I need to print a file . The paper length should be 34 .Left margin should be 5. I have tried the following things after researching from the man pages.
pr -t... (24 Replies)
Issue: I am able to split source file in multiple files of 10 rows each but unable to get the required outputfile name. please advise.
Details:
input = A.txt having 44 rows
required output = A_001.txt , A_002.txt and so on. Can below awk be modified to give required result
current... (19 Replies)
Hi,
using awk command I want to print filenames and the last line of each file, in a single command line statement.
I want to use 'awk', because I want to add more functionality to this logic later.
I tried the following on *.sh files in the current directory
find . -type f -name "*.sh"... (26 Replies)
Hi All,
I am using HP-UX 11i v1(B11.11) servers for my work and its memory (RAM) utilization is consistenly 80% for the last one year. Though I am not facing any issues with this high memory utilization I just want to know the below queries:
1) Is it the default behavior of HP-UX systems?
2)... (20 Replies)
I also posted this on macrumors forum, then i realized that this is a more suitable forum for matters like this. I apologize for the username, I was looking at a bag of doritos when it asked me for a username. lol
I need a program (see below for what I've tried) and I think a shell program will... (23 Replies)
I'm new to this forum and also to UNIX scripting.
I need a command to extract the filename from the path and write to .txt file.
Thanks in advance for your guidance. (23 Replies)
Hello everybody
I have been trying to extract the domain name from the bind query log with different options, however always get stuck with domains that end with link .co.uk or .co.nz.
I tried the following, however only provides the first level:
awk -F"." '{print $(NF-1)"."$NF}' list.txt >... (30 Replies)