03-14-2011
Works great!
I modified it a little bit cause some lines where not being handle correctly but now it works like a charm.
I will remember this trick!
Thanks!!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i need to be able to handel if multiple commands are passed into my script.
(ie) -f -r -i .
does anyone know a simple solution to handeling this. Thanks (2 Replies)
Discussion started by: virus_stinger
2 Replies
2. UNIX for Dummies Questions & Answers
Below an example of what I mean. The first attempt does what I want; the second doesn't, because bash assumes a line break means the end of an individual "command unix". Is there some way that I can convince bash to parse out, eg, to the closing parenthesis?
I'm thinking this would allow for... (1 Reply)
Discussion started by: tphyahoo
1 Replies
3. Programming
I want to spawn n child processes but have two different classes..with the foremost one forking/spawning the child process and the latter performing a function w/ the spawned processes.
I can do this in one class with an if statement and the simple
if((pid=fork())==0) //child process
{
... (1 Reply)
Discussion started by: StrengthThaDon
1 Replies
4. Shell Programming and Scripting
I have several huge files wich contains oracle table creation scripts as follows:
I would need to remove the pattern colored in red above. Any sed/awk/pearl code will be of much help.
Thanks (2 Replies)
Discussion started by: sabyasm
2 Replies
5. Shell Programming and Scripting
Hi,
I have to look for the full string below in a large file(>5GB) , but that string may be spread in two lines.
string :-- "f8f8 f5f0 f0f0 f1f7 f4f7 f7c1"
By grep "f8f8 f5f0 f0f0 f1f7 f4f7 f7c1" file | tail -1
, I am getting incorrect result because there is a line after this also which... (1 Reply)
Discussion started by: finder255
1 Replies
6. UNIX for Dummies Questions & Answers
In open office spreadsheet, i would like to fill a cell with the name of the spread sheet.
That is if the file name of spread sheet is, team.ods, then i have to fill a specific cell with that name 'team'. How to do that ?
I have more spread sheets to be created, so i want it to be done... (0 Replies)
Discussion started by: thegeek
0 Replies
7. Shell Programming and Scripting
Thanks everyone for the wonderful and helping environment..
And the problem I asked.. forget it... 4 days wait for a decent reply was such a moral booster.. (3 Replies)
Discussion started by: ReignOfChaos
3 Replies
8. Shell Programming and Scripting
Hi,
Input
7488 7389 chr1.fa chr1.fa
3546 9887 chr5.fa chr9.fa
7387 7898 chrX.fa chr3.fa
7488 7389 chr21.fa chr3.fa
7488 7389 chr1.fa chr1.fa
3546 9887 chr9.fa chr5.fa
7898 7387 chrX.fa chr3.fa
Desired Output
7488 7389 chr1.fa chr1.fa 2
3546 9887 chr5.fa chr9.fa 2... (2 Replies)
Discussion started by: jacobs.smith
2 Replies
9. Shell Programming and Scripting
Hello all,
I have a large csv file where there are four types of rows I need to merge into one row per person, where there is a column for each possible code / type of row, even if that code/row isn't there for that person.
In the csv, a person may be listed from one to four times... (9 Replies)
Discussion started by: RalphNY
9 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I came across one issue recently where output from one of the columns of the table from where i am creating input file has newline characters hence, record in the file is spread over multiple lines. Fields in the file are separated by pipe (|) delimiter. As header will never have newline... (4 Replies)
Discussion started by: Prathmesh
4 Replies
dhb(4) Kernel Interfaces Manual dhb(4)
Name
dhb - DHB32 communications multiplexer
Syntax
device dmb0 at vaxbi? node? flags 0x????
vector dmbsint dmbaint dmblint
Description
A DHB32 device provides 16 asynchronous communication lines with full modem control. The DHB32 and the DMB32 share a common software
device driver. For this reason, the configuration line is the same for both the DHB32 and DMB32.
Each line attached to a DHB32 serial line port behaves as described in Input and output for each line can independently be set to run at
any of 16 speeds. See for the encoding.
Bit i of flags may be specified for a to say that a line should be treated as a hardwired connection with carrier always present. If bit i
of flags is not set, the line will operate under full modem control. Modem lines will operate in accordance to the CD (carrier detect),
DSR (data set ready) and CTS (clear to send) leads. Thus, specifying ``flags 0x0004'' in the specification of would cause line 2 on the
DHB32 to be treated as hardwired with carrier always present. In this example, the remainder of the lines will be modem control lines.
Diagnostics
dmbinit: async lines unavailable
This message is produced at system boot time if the DHB32 fails its internal self test indicating that the asynchronous lines have failed
to configure.
dmb%d: fifo overflow
The character input fifo overflowed before it could be serviced. This can happen if the CPU is running with elevated priority for too long
a period of time. Overflow errors may indicate that configuration constraints have been reached.
dmb%d: DMA Error. tbuf = 0x%x
A DMA output transfer failed. This problem can result from a memory error or an invalid pte (page table entry). For a description of the
error code in the ``tbuf'' register. See the DHB32 documentation.
dmb%d: DMB Hardware Error. TX.DMA.START failed
The failed to clear the start bit. Normally, this is cleared to signal that a DMA transfer has completed.
dmb%d: Modem Error. tbuf = 0x%x
Indicates a problem with a modem or its cable. For a description of the error code in the ``tbuf'' register. See the DHB32 documentation.
dmb%d: Internal Error. tbuf = 0x%x
Indicates that the DHB32 detected an internal error. For a description of the error code in the ``tbuf'' register. See the DHB32 User
Guide.
Files
(modem lines only)
See Also
tty(4), MAKEDEV(8), dmbsp(4)
dhb(4)