Hi,
I have 7 big flat files, each contains 24 million records which have been sorted by the first field delimitered by Ctrl B (002).
I want to join them together side by side, eg.
File A:
1^Ba^Bb
2^Bx^By
....
File B:
1^Bc^Bd
2^Bm^Bn
....
After merged, it should look like :... (7 Replies)
I need a perl script which will create an output file after comparing two diff file in a directory path:
/export/home/abc/file1
/export/home/abc/file2
File Format: <IP>TAB<DeviceName><TAB>DESCRIPTIONS
file1:
10.1.2.1.3<tab>abc123def<tab>xyz.mm1.ppp.... (2 Replies)
Hi,
I have two text files.The first and the 2nd file have data in the same format
For e.g. The first file has
table_name1 column1 sum(column1) max(column1) min(column1)
table_name1 column2 sum(column2) max(column2) min(column2)
table_name1 coulmn3 sum(column3) max(column3) min(column3)
... (13 Replies)
Hi,
I have been thinking of how to script this but i have no clue at all..
Could someone please help me out or give me some idea on this?
I would like to group those lines with the same first variable in each line, joining the 2nd variables with commas.
Let's say i have the following input.
... (3 Replies)
Hi all.
This is my first post on this forum. I've previously found great help in the huge knowledgebase that is here, but this time I have not been able to find a solution to my problem.
I have a large text file that looks like this:
typedef struct ABC_struct_nbr1_ {
char attr1; /*... (0 Replies)
I am trying to Join all the lines matching similar pattern.
Example ;
I wanted to join all the lines which has sam to a single line.
In next line, i wanted to have all the lines with jones to a single line....etc
> cat sample.txt
sam 2012/11/23
sam 2012/12/5
sam 2012/12/5
jones... (2 Replies)
Hi , I want to compare first 3 columns of File A and File B and create a new file File C which will have all rows from File B and will include rows that are present in File A and not in File B based on First 3 column comparison.
Thanks in advance for your help.
File A
A,B,C,45,46... (2 Replies)
Dear folks
Hello
I have a one file called (file1) which the structure looks like this
1 gi|358484521|ref|NW_003764373.1|
1 gi|358484520|ref|NW_003764374.1|
1 gi|358484519|ref|NW_003764375.1|
.
.
.
30 gi|368484519|ref|NW_00449375.1|
In addition, I have around 300... (19 Replies)
I have two directories called English and Hindi. Each directory contains the same number of files with the only difference being that in the case of the English Directory the tag is
.english
and in the Hindi one the tag is
.Hindi
The file may contain either a single text or more than one text... (7 Replies)
Hi,
I want to compare same column in two files, if values match then display the column or display "NA".
Ex :
File 1 :
123
abc
xyz
pqr
File 2:
122
aab
fdf
pqr
fff
qqq
rrr (1 Reply)
Discussion started by: hkoshekay
1 Replies
LEARN ABOUT BSD
shar
SHAR(1net) Wang Institute SHAR(1net)NAME
shar - create file storage archive for extraction by /bin/sh
SYNOPSIS
shar [-abcmsuv] [-p prefix] [-d delim] files > archive
DESCRIPTION
shar prints its input files with special command lines around them to be used by the shell, /bin/sh , to extract the files later. The out-
put can be filtered through the shell to recreate copies of the original files.
shar allows directories to be named, and shar prints the necessary commands (mkdir & cd) to create new directories and fill them. shar
will not allow existing files to be over-written; such files must be removed by the user extracting the files.
OPTIONS -a All the options. The options: -v -c -b -p <tab>X are implied.
-b Extract files into basenames so that files with absolute path names are put into the current directory. This option has strange
effects when directories are archived.
-c Check file size on extraction by counting characters. An error message is reported to the person doing the extraction if the sizes
don't match. One reason why the sizes may not match is that shar will append a newline to complete incomplete last lines; shar
prints a message that mentions added newlines. Another reason why the sizes may not match is that some network mail programs remove
non-whitespace control characters. shar prints a message that mentions control characters to the extractor.
-d Use this as the ``end of file'' delimiter instead of the default. The only reason to change it is if you suspect a file contains
the default delimiter: SHAR_EOF.
-m Reset the exact protection modes of files when they are extracted (using the chmod program). By default, the extractor's default
file modes are used, and executable files (e.g., shell scripts) are made executable.
-p Use this as the prefix to each line of the archived files. This is to make sure that special characters at the start of lines are
not eaten up by programs like mailers. If this option is used, the files will be extracted with the stream editor sed rather than
cat so it is more efficient and portable to avoid setting the prefix, though perhaps less safe if you don't know what is in the
files.
-s Silent running. All checking and extra output is inhibited.
-u Archive the input files with the uuencode format for later extraction with uudecode. This will allow you to send files with control
characters in them, but will slow down the extracting. You must be sure that the receiving party has access to uudecode.
-v Print verbose feedback messages about what shar is doing to be printed during extraction. Sizes of plain files are echoed to allow
a simple validity check.
SEE ALSO sh(1), tar(1), cpio(1), tp(1), uuencode(1), uudecode(1)fpack(1) is a plain-file packer useful for UNIX and MSDOS
AUTHOR
Gary Perlman (based on a shell version by James Gosling, with additions motivated by many people on the UNIX network: Derek Zahn, Michael
Thompson, H. Morrow Long, Fred Avolio, Gran Uddeborg, Chuck Wegrzyn, nucleus!randy@TORONTO, & Bill McKeeman)
LIMITATIONS
shar does not know anything about links between files.
UNIX User's Manual March 4, 1986 SHAR(1net)