01-17-2013
I'm sorry but I still cannot get it to work, would you be able to use my filenames in the example given? I am having trouble with the filename part
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
FileA
chr1 31237964 NP_001018494.1 PUM1 M340L
chr1 31237964 NP_055491.1 PUM1 M340L
chr1 33251518 NP_037543.1 AK2 H191D
chr1 33251518 NP_001616.1 AK2 H191D
chr1 57027345 NP_001004303.2 C1orf168 P270S
FileB
chr1 ... (9 Replies)
Discussion started by: genehunter
9 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
Discussion started by: Liverpaul09
3 Replies
3. UNIX for Dummies Questions & Answers
I have two files in UNIX.
1st file is Entity and Second File is References. 1st File has only one column named Entity ID and 2nd file has two columns Entity ID | Person ID.
I want to produce a output file where entity id's are matching in both the files.
Entity File
624197
624252
624264... (4 Replies)
Discussion started by: PRS
4 Replies
4. Shell Programming and Scripting
I have two (or more, to make it generic) csv files. Each line contains words separated by comma. None of words have any space. The number of words per line is not fixed. Some may have one, and some may have 12... The number of lines per file is also not fixed.
What I need is to find common words... (1 Reply)
Discussion started by: nick2011
1 Replies
5. Shell Programming and Scripting
Hi Friends,
I am new to Shell Scripting and need your help in the below situation.
- I have two files (File 1 and File 2) and the contents of the files are mentioned below.
- "Application handle" is the common field in both the files.
(NOTE :- PLEASE REFER TO THE ATTACHMENT "Compare files... (2 Replies)
Discussion started by: Santoshbn
2 Replies
6. Shell Programming and Scripting
Hi
I have two sample files attached here
one file contain entries in one column and second file contains entries in many columns
I have to match entries of first file with entries in secon d file form secon column onwards and if matches write "match" in front of it.
I tried several... (11 Replies)
Discussion started by: manigrover
11 Replies
7. UNIX for Dummies Questions & Answers
I am trying to extract common list of Organisms from different files
For example I took 3 files and showed expected result. In real I have more than 1000 files. I am aware about the useful use of awk and grep but unaware in depth so need guidance regarding it.
I want to use awk/ grep/ cut/... (7 Replies)
Discussion started by: macmath
7 Replies
8. Shell Programming and Scripting
Good morning all,
I have a problem that is one step beyond a standard awk compare.
I would like to compare three files which have several thousand records against a fourth file. All of them have a value in each row that is identical, and one value in each of those rows which may be duplicated... (1 Reply)
Discussion started by: nashton
1 Replies
9. UNIX for Beginners Questions & Answers
Im having an issue when trying to replace the first column with a new set of values in multiple files. The results from the following code only replaces the files with the last set of values in val.txt. I want to replace all the files with all the values.
for date in {1..31}
do
for val in... (1 Reply)
Discussion started by: ncwxpanther
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
i have below two files.
FILE:
NAME="/dev/sda" TYPE="disk" SIZE="60G" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="" MOUNTPOINT=""
NAME="/dev/sda1" TYPE="part" SIZE="500M" OWNER="root" GROUP="disk" MODE="brw-rw----" PKNAME="/dev/sda" MOUNTPOINT="/boot"
NAME="/dev/sda2"... (3 Replies)
Discussion started by: balu1234
3 Replies
LEARN ABOUT DEBIAN
nomarch
nomarch(1) Archive Extraction nomarch(1)
NAME
nomarch - extract `.arc' archives
SYNOPSIS
nomarch [-hlptUv] [archive.arc] [match1 [match2 ... ]]
DESCRIPTION
nomarch lists, extracts, or tests `.arc' archives. (An alternate extension sometimes used was `.ark'; these work too.) This is a very out-
dated file format which should certainly not be used for anything new, but you may still need an extraction utility, and here it is. :-)
The default action is to extract all files in the specified archive; see OPTIONS below for how to do other things instead.
OPTIONS
-h give terse usage help.
-l list files in archive. If verbose listings are enabled, it shows the filename, compression method, compressed/uncompressed size,
date/time, and CRC; but by default, it just shows the filename, uncompressed size, and date/time.
-p extract to standard output, rather than to separate files.
-t test files in archive (more precisely, check file CRCs).
-U use uppercase filenames; more precisely, preserve original case from archive.
-v give verbose output (when used with `-l').
archive.arc
the archive to operate on.
match1 etc.
optionally specify which archive members to list/extract/test. Those which match any of these filenames/wildcards are processed.
Wildcard operators supported are shell-like `*' and `?', but don't forget to quote arguments which use these (e.g. `nomarch foo.arc
'*.bar'').
EXTRACTING MULTIPLE ARCHIVES
nomarch follows the `unzip'-like practice of working on only one archive per run, with further `filenames' given on the command-line actu-
ally specifying files to extract (or whatever). The easiest way to work on multiple files with nomarch is simply to run it multiple times
using for; for example:
for i in *.arc; do nomarch $i; done
The above would extract all archives in the current directory.
USING THE PROGRAM FROM EMACS
Emacs's arc-mode facility lets you work with various kinds of archive file directly from the editor. Making it use nomarch for extracting
`.arc' files isn't too hard. Just add the following to your ~/.emacs file:
(setq archive-arc-extract '("nomarch" "-U"))
BUGS
The CRC used by the format is only 16-bit, so `-t' is a less-than-perfect test.
One compression method, obsolete even by `.arc' standards :-), isn't supported yet. This is partly because I've yet to find a single file
which uses it, despite testing an awful lot of files.
Subdirectories in Spark archives are extracted as the `.arc'-format files they really are, which may not be terribly convenient.
SEE ALSO
tar(1), gzip(1), bzip2(1), lbrate(1)
AUTHOR
Russell Marks (rus@svgalib.org).
Version 1.4 18th June, 2006 nomarch(1)