parsing data and incorporating it into another file
Hi,
I have a folder that contains many (multiple) files
1.fasta
2.fasta
3.fasta
4.fasta
5.fasta
.
.
100's of files
Each such file have data in the following format
for example:
vi 1.fasta
I would to have a output file in the following format
Pase
where the first coulmn would be the digit associated with the file name (1 for 1.fasta) and second coulmn will be the header (begins with ">") on the 6th > (here it is AB_6), but don't want ">" in the output file
I would like to know how to do it in a speedy watyusing awk or sed where it goes in all the files in the folder and gives the above shown tab delimited text file.
Please let me know
Greetings All!!
I have a very peculiar problem where I have to parse a big text file and extract useful data out of it with starting and ending block pattern matching.
e.g. I have a input file like this:
sample data
block1
sample data
start
useful data
end
sample data
block2
sample... (5 Replies)
Hi,
I have file (FILE.tmp) having contents,
FILE.tmp
========
filename=menudata
records=0000000000037
ldbname=pinsys
timestamp=2005/05/14-18:32:33
I want to parse it bring a new file which will look like,
filename records ldbname timestamp... (2 Replies)
I have a file that is large and is broken up by groups of data. I want to take certain fields and display them different to make it easier to read. Given input file below:
2008 fl01 LAC 2589 polk doal
xx 2008q1 mx
sect 25698541
Sales 08 Dept group
lead1 ... (8 Replies)
Hi all,
I wud like to get ur assistance in retrieving lines containing l1.My excel dataset contains around 8000 lines.I converted it into a text tab delimiter file and got the lines containing l1,My output is a list of lines containing l1 saved in a outfile.Some of d lines from my outfile s... (5 Replies)
Hi All
I have two files:
file 1
>AB_1
MLKKPIIIGVTGGSGGGKTSVSRAILDSFPNARIAMIQHDSYYKDQSHMSFEERVKTNYDHPLAFDTDFM
IQQLKELLAGRPVDIPIYDYKKHTRSNTTFRQDPQDVIIVEGILVLEDERLRDLMDIKLFVDTDDDIRII
RRIKRDMMERGRSLESIIDQYTSVVKPMYHQFIEPSKRYADIVIPEGVSNVVAIDVINSKIASILGEV
>AB_2... (5 Replies)
Hi All,
I need some help to effectively parse out a subset of results from a big results file.
Below is an example of the text file. Each block that I need to parse starts with "Output of GENE for sequence file 100.fasta" (next block starts with another number). I have given the portion of... (8 Replies)
I have 2 text files where I need to parse data from file 2 using the data from file 1. Below are my sample files
File 1 (tab delimited)
257 350
670 845
725 1025
767 820
...
....
....
file 2 (tab delimited)
220..450 TA AB650 ABCED
520..850 GA AB720 ABCDE
700..1100 TC AB820 ABCDE... (2 Replies)
Im really beginner in this case, maybe someone can help me find the answer:
if my input file like this:
void main(int a, int b){
int x; double y;
printf("file");
}
and i want output like this:
int a
int b
int x
double y
A awk script that can parse only data tipe, im confused.
what... (2 Replies)
Hey Guys,
I'm a novice at shell scripts and i need some help parsing file data.
Basically, I want to write a script that retrieves URLs.
Here is what I have so far.
#!/bin/bash
echo "Please enter start date (format: yyyy-mm-dd):\c"
read STARTDATE
echo "Please enter end date... (7 Replies)
Discussion started by: silverdust
7 Replies
LEARN ABOUT MOJAVE
mknod
MKNOD(8) BSD System Manager's Manual MKNOD(8)NAME
mknod -- make device special file
SYNOPSIS
mknod [-F format] name [c | b] major minor
mknod [-F format] name [c | b] major unit subunit
mknod name [c | b] number
mknod name w
DESCRIPTION
The mknod command creates device special files.
To make nodes manually, the required arguments are:
name Device name, for example ``sd'' for a SCSI disk on an HP300 or a ``pty'' for pseudo-devices.
b | c | w
Type of device. If the device is a block type device such as a tape or disk drive which needs both cooked and raw special files, the
type is b. Whiteout nodes are type w. All other devices are character type devices, such as terminal and pseudo devices, and are
type c.
major The major device number is an integer number which tells the kernel which device driver entry point to use.
minor The minor device number tells the kernel which one of several similar devices the node corresponds to; for example, it may be a spe-
cific serial port or pty.
unit and subunit
The unit and subunit numbers select a subset of a device; for example, the unit may specify a particular SCSI disk, and the subunit a
partition on that disk. (Currently this form of specification is only supported by the bsdos format, for compatibility with the
BSD/OS mknod(8).)
Device numbers for different operating systems may be packed in a different format. To create device nodes that may be used by such an oper-
ating system (e.g. in an exported file system used for netbooting), the -F option is used. The following formats are recognized: native,
386bsd, 4bsd, bsdos, freebsd, hpux, isc, linux, netbsd, osf1, sco, solaris, sunos, svr3, svr4 and ultrix.
Alternatively, a single opaque device number may be specified.
SEE ALSO mkfifo(1), mkfifo(2), mknod(2)HISTORY
A mknod command appeared in Version 6 AT&T UNIX. The -F option appeared in NetBSD 1.4.
NetBSD 1.4 September 11, 1998 NetBSD 1.4