08-08-2006
What if
$ grep -l ^HL\^[0-9]*\^[0-9]*\^9
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I have a list of files in a directory and filename format is as follows:
PQ223390
PQ876912
PQ768901
PQ398140 and so on
I want to grep the first four digits of all the files after PQ, into a file.
Ex:
2233
8769
6890
3981 and so on
Can anyone tell me the command?
thankx jazz (11 Replies)
Discussion started by: jazz
11 Replies
2. Programming
When printing a large file, segment occured. but part of it can be printed normally. There seems no mistake in usage.
How to solve the problem. Actually, the file is not very very large. Only 300-400 A4 pages.
Thanks (1 Reply)
Discussion started by: cdbug
1 Replies
3. Shell Programming and Scripting
Hi All,
I have a file (Names.txt) and the contents of the file is give below.
$ cat Names.txt
FF313207008.txt
FF223207007.txt
FF143207006.txt
FF372150600.txt
FF063407005.txt
FF063307005.txt
$
From these given file names I want to find the files which has the 6th index value as 2. So... (5 Replies)
Discussion started by: krish_indus
5 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have a log file that outputs the data below. I would like to grep and display the data where column is equal '148.'
I've searched the forum, and couldn't find any answers.
I've tried all the grep switches and I get the same result as the log.
I'm thinking I might have to use an... (4 Replies)
Discussion started by: ravzter
4 Replies
5. UNIX for Dummies Questions & Answers
Hi
I would like to know how to search through a directory and pull out files that has a specific pattern in the filename. For example if the filename has "bsc" in it, then that file must be moved to another directory where I will perform some operations on it. I know grep can be used, but I'm... (17 Replies)
Discussion started by: ladyAnne
17 Replies
6. Shell Programming and Scripting
Greeting to all.
I have big text file that I would like to segment into many smaller files. Each file should be maximum 10 000 lines.
The file is called time.txt. after the execution of the file I would like to have.
time_01.txt, time_02, txt, ...,time_n.txt
Can anybody help.
Br. (2 Replies)
Discussion started by: flash80
2 Replies
7. Programming
Hi,
Whether the following piece of code is placed in the read-only memory of code (text) segment or data segment?
char *a = "Hello";
I am getting two different answers while searching in google :( that's why the confusion is (7 Replies)
Discussion started by: royalibrahim
7 Replies
8. Shell Programming and Scripting
Hi
I have output of a command saved in a file..
# cat /file.txt
System: cu=4 ent=0.1 mode=on
cu min u s w i
0 500 0.1 0.3 0.5 0.1
1 200 0.5 0.2 0.3 0.0
By using ksh, what I need to do is, I need to grep the u,s,w and i... (5 Replies)
Discussion started by: Priya Amaresh
5 Replies
9. Shell Programming and Scripting
Hi
I have a file like
# vi require.txt
1,BANK,Read blocks that cycle.
yellow
Read blocks.
2,ACCOUNT,Finished
Red
Finished .
3,LOAN, pipe
white
pipe
4,PROFIT,Resolve.
black
Resolve
Am using like
cat require.txt | grep -w ACCOUNTThe output I get is (8 Replies)
Discussion started by: Priya Amaresh
8 Replies
10. Shell Programming and Scripting
Hi All,
I have to pick particular segments from a file and I have prepared below shell script.But its not working and I am not able to find out whats the issue.could you guys pls help?
Sample file:
TS3*1451575*12*20151231*4*482.44
NM1*QC*1*CUTLER*BETTY
DTM*472*20150808... (4 Replies)
Discussion started by: Venkata Prasad
4 Replies
LEARN ABOUT POSIX
ddi_dma_nextseg
ddi_dma_nextseg(9F) Kernel Functions for Drivers ddi_dma_nextseg(9F)
NAME
ddi_dma_nextseg - get next DMA segment
SYNOPSIS
#include <sys/ddi.h>
#include <sys/sunddi.h>
int ddi_dma_nextseg(ddi_dma_win_t win, ddi_dma_seg_t seg, ddi_dma_seg_t *nseg);
INTERFACE LEVEL
This interface is obsolete. ddi_dma_nextcookie(9F) should be used instead.
PARAMETERS
win A DMA window.
seg The current DMA segment or NULL.
nseg A pointer to the next DMA segment to be filled in. If seg is NULL, a pointer to the first segment within the specified win-
dow is returned.
DESCRIPTION
ddi_dma_nextseg() gets the next DMA segment within the specified window win. If the current segment is NULL, the first DMA segment within
the window is returned.
A DMA segment is always required for a DMA window. A DMA segment is a contiguous portion of a DMA window (see ddi_dma_nextwin(9F)) which
is entirely addressable by the device for a data transfer operation.
An example where multiple DMA segments are allocated is where the system does not contain DVMA capabilities and the object may be non-con-
tiguous. In this example the object will be broken into smaller contiguous DMA segments. Another example is where the device has an upper
limit on its transfer size (for example an 8-bit address register) and has expressed this in the DMA limit structure (see
ddi_dma_lim_sparc(9S) or ddi_dma_lim_x86(9S)). In this example the object will be broken into smaller addressable DMA segments.
RETURN VALUES
ddi_dma_nextseg() returns:
DDI_SUCCESS Successfully filled in the next segment pointer.
DDI_DMA_DONE There is no next segment. The current segment is the final segment within the specified window.
DDI_DMA_STALE win does not refer to the currently active window.
CONTEXT
ddi_dma_nextseg() can be called from user or interrupt context.
EXAMPLES
For an example, see ddi_dma_segtocookie(9F).
ATTRIBUTES
See attributes(5) for a description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Stability Level |Obsolete |
+-----------------------------+-----------------------------+
SEE ALSO
attributes(5), ddi_dma_addr_setup(9F), ddi_dma_buf_setup(9F), ddi_dma_nextcookie(9F), ddi_dma_nextwin(9F), ddi_dma_segtocookie(9F),
ddi_dma_sync(9F), ddi_dma_lim_sparc(9S), ddi_dma_lim_x86(9S), ddi_dma_req(9S)
Writing Device Drivers
SunOS 5.10 27 Sep 2002 ddi_dma_nextseg(9F)