09-24-2011
Hi ahamed101....thanks a lot....your solution works fine....but,if I want to return only the missing field for e.g. DDD in above case, how to modify this command? I have redirected the output to a file and then applied sort/unique commands alternatively. If it is possible to add that logic in your command, please let me know.....thanks again
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have two files. One contains names and another file (66 MB, ASCII format) contains details of persons. How do I compare the names in the first file with the second file and write the matches to a third file. I would prefer this to be solved in UNIX or VB.
Thanks. (2 Replies)
Discussion started by: augustinep
2 Replies
2. Shell Programming and Scripting
Hi Guys,
I'm tying to split a line similar to this:YO6-2000-30.htm: (3 properties found).......into separate columns, so effectively I need to check for a -, ., :, a tab and a space in the statement.
Any help would be appreciated
Thanks! (7 Replies)
Discussion started by: Tonka52
7 Replies
3. Shell Programming and Scripting
I saw a couple of posts here referencing how to handle more than one input field separator in awk. I figured I would share how I (just!) figured out how to turn this line in a logfile:
90000000000000000000010001 name... (4 Replies)
Discussion started by: kinksville
4 Replies
4. Shell Programming and Scripting
Hi All,
I've two .csv files as below
file1.csv
abc, tdf, 223, tpx
jgsd, tex, 342, rpy
a, jdjdsd, 423, djfkld
Where as file2.csv is the new version of file1.csv with some added fields in the end of each line and some additional lines.
lfj, eru, 98, jkldj, 39, jdkj9
abc, tdf, 223, tpx,... (3 Replies)
Discussion started by: ganapati
3 Replies
5. Shell Programming and Scripting
Guys
trying to compare field in two files.
For Ex:
demo.txt
23.33.4.2 hostname
3.2.4.2 hostname12
demo1.txt
3.3.3.3 hostname23
45.23.23.23 hostname 323
I would like to compare the ips b/w these two files.any... (2 Replies)
Discussion started by: coolkid
2 Replies
6. Shell Programming and Scripting
hi,
i have 1 files a.csv temp.out
a.cvs looks like
add,16390,180,674X,HALIFAX_COMMONS_X,902,497,902-209
add,16390,180,674X,HALIFAX_COMMONS_X,902,497,902-219
add,16390,180,674X,HALIFAX_COMMONS_X,902,497,902-220
add,16390,180,674X,HALIFAX_COMMONS_X,902,497,902-221
and temp.out looks... (1 Reply)
Discussion started by: raghavendra.cse
1 Replies
7. UNIX Desktop Questions & Answers
Hi Guys,
I have small dilemma which I could do with a little help solving . I currently have text HDD S.M.A.R.T report which I have pasted below:
smartctl 5.39 2008-10-24 22:33 (openSUSE RPM)
Copyright (C) 2002-8 by Bruce Allen, http://smartmontools.sourceforge.net
Device: COMPAQ... (2 Replies)
Discussion started by: bikerben
2 Replies
8. UNIX for Dummies Questions & Answers
I have files such as
n02-z30-dsr65-terr0.25-dc0.008-16x12drw-run1.cmd
I am wondering if it is possible to define two field separators "-" and "."
for these strings so that $7 is run1. (5 Replies)
Discussion started by: kristinu
5 Replies
9. Shell Programming and Scripting
Hi all,
I have two files, chap.txt and complex.txt.
chap.txt looks like this:
a
d
l
m
r
k
complex.txt looks like this:
a c d e l m n j
a d l p q r
c p r m
......... (7 Replies)
Discussion started by: AshwaniSharma09
7 Replies
10. Shell Programming and Scripting
I have two files : file1 and file2
file1 format:
7026-H70 7026-1017685
7026-H70 7026-1017687
7026-B80 7026-108D65A
7026-B80 7026-108D67A
7046-B50 7026-1034B4A
File2 format :
mt01cp01 7026-B80 01108D69A
mt01cp02 7026-B80 01108D68A
mt01sv01 7046-B50... (7 Replies)
Discussion started by: amir07
7 Replies
DDD(1L) DDD(1L)
NAME
ddd - double-speed data dumper
SYNOPSIS
ddd [option=value] ...
DESCRIPTION
Ddd works almost the same way as dd(1), but it has a much better throughput, especially when used with slow i/o-devices, such as tape
drives. The improvement is achieved mainly by dividing the copying process into two processes, one of which reads while the other one
writes and vice versa. Also all code conversion capabilities are omitted. There is no additional overhead copying data between various
conversion buffers.
Ddd was inspired by the vast difference in speed between BSD4.2 and BSD4.3 dumps - in BSD4.3 dump(8) uses alternating processes to write to
raw magnetic tape, thus keeping the tape continuously in motion. I wanted to get the same improvement to remote dumps, so this filter was
needed. Directing all physical I/O through ddd usually increases the throughput of any pipeline of unix commands (if you have enough MIPS
and RAM to handle two extra processes).
OPTIONS
Ddd uses options if, of, ibs and obs exactly as dd(1). Option bs can also be used to specify ibs and obs at once. One option differs
slightly in meaning: cbs can be used to specify the size of the internal buffer. Input and output processes will swap duties when cbs
bytes have been transferred. Default values for all sizes are 512 bytes. As with dd(1), letters k (kilobyte), b (block) or w (word) can
be appended to size values. Other options are not provided.
HINTS
For best performance, block sizes should be rather large. For magnetic tape, I use obs=100b and cbs=500b or so. Large block sizes (~100b)
are also effective for network connections. However, cbs should be small enough for all the data to fit in core, since page faults add
overhead.
AUTHOR
Tapani Lindgren <nispa@cs.hut.fi>
Laboratory of Information Processing Science
Helsinki University of Technology
Finland
SEE ALSO
dd(1), tar(1), dump(8)
BUGS
Should you find one, let me know!
WARNING
(Applies to U.S. residents & citizens only)
Do not use this program! Get rid of it as soon as you can! It will probably corrupt all your data, break down your computer and cause
severe injury to the operators. Even reading the source code may give you a headache. I warned you! I will take no responsibility what-
soever!
DDD(1L)