Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to get a subset of such a file Post 302679293 by forevertl on Monday 30th of July 2012 03:40:57 PM
Old 07-30-2012
how to get a subset of such a file

Dear all,

I have a file lik below: n of row=420, n of letters in each row=100000 like below: there is no space between the letters.
what I want is: the 75000th letter to the 85000th letter in each row.
how to do that? thanks a lot!

GCTAACTTCCGGGAGGGGGCTTATAATACTAGCTACGCTTTGCACACGGGAAAGGCCTTCGGAGAAAAGTCAATCATGCGCTTCCTCAGTTCCAGGAAAA GGACCTGCGGGAACCGGAGACTTCCGGGAGGGGGCTTATAATACTAGCTACGCTTTGCACACGGGAAAGGCCTTCGGAGAAAAGTCAATCATGCGCTTCC TCAGTTCCAGGAAAAGGACCTGCGGGAACCGGAGGGCT
...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Total file size of a subset list

Hello! I'm trying to find out the total file size of a subset list in a directory. For example, I do not need to know the total file size of all the files in a directory, but I need to know what the total size is of say, "ls -l *FEB08*" in a directory. Is there any easy way of doing this? ... (3 Replies)
Discussion started by: tekster757
3 Replies

2. Shell Programming and Scripting

Helping in parsing subset of text from a big results file

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 "reading sequence file 10.codon" (next block starts with another number) and ends with **p-Value(s)**. I have given... (1 Reply)
Discussion started by: Lucky Ali
1 Replies

3. Shell Programming and Scripting

Count the number of words in some subset of file and disregard others

Hi All, I have some 6000 text files in a directory. My files are named like 1.txt, 2.txt 3.txt and so on until 6000.txt. I want to count the "number of words" in only first 3000 of them. Any suggestions? I know wc -w can count the number of words in a text file. I am using Red Hat Linux. (3 Replies)
Discussion started by: shoaibjameel123
3 Replies

4. UNIX for Dummies Questions & Answers

Swapping the columns of a text file for a subset of rows

Hi, I'd like to swap the columns 1 and 2 of a space-delimited text file but only for the first 1000 rows. How do I go about doing that? Thanks! (1 Reply)
Discussion started by: evelibertine
1 Replies

5. UNIX for Dummies Questions & Answers

Random selection of subset of sample from file

Hello Could you please help me to find a code that can randomly select 1224 lines from a file of 12240 and make tn output with 1224 line each. my input is txt file with 12240 lines like : 13474 999003507 0 0 2 -9 13475 999003508 0 0 2 -9 13476 999003509 0 0 1 -9 13477 999003510 0 0 1 -9 ... (7 Replies)
Discussion started by: biopsy
7 Replies

6. UNIX for Dummies Questions & Answers

How to subset data?

Hi. I have a large data file. the first column has unique identifiers. I have approximately 5 of these files and they have varying number of columns in their rows. I need to extract ~300 of the rows in to a separate file. I'm not looking for something that would do all 5 files at once, but... (7 Replies)
Discussion started by: kadm
7 Replies

7. Shell Programming and Scripting

Creating subset of a file based on specific columns

Hello Unix experts, I need a help to create a subset file. I know with cut comand, its very easy to select many different columns, or threshold. But here I have a bit problem as in my data file is big. And I don't want to identify the column numbers or names manually. I am trying to find any... (7 Replies)
Discussion started by: smitra
7 Replies

8. UNIX for Advanced & Expert Users

How to extract subset file from dataset?

Hello I have a data set which looks like this : progeny sire dam gender 12 1 3 M 13 2 4 F 14 2 5 F 15 6 5 ... (13 Replies)
Discussion started by: sajmar
13 Replies

9. Shell Programming and Scripting

How to read file line by line and compare subset of 1st line with 2nd?

Hi all, I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like: <date1>|<data1>|<url1>|<result1> <date2>|<data2>|<url2>|<result2> <date3>|<data3>|<url3>|<result3> <date4>|<data4>|<url4>|<result4> What I... (3 Replies)
Discussion started by: pat_pramod
3 Replies

10. Shell Programming and Scripting

awk to filter file using another working on smaller subset

In the below awk if I use the attached file as the input, I get no results for TCF4. However, if I just copy that line from the attached file and use that as input I get results for TCF4. Basically the gene file is a 1 column list that is used to filter $8 of the attached file. When there is a... (9 Replies)
Discussion started by: cmccabe
9 Replies
yodlletter(7)						    Your Own Document Language						     yodlletter(7)

NAME
yodlletter - Yodl's `letter' document type SYNOPSIS
letter(language)(date)(subject)(opening)(salutation)(author) The letter document type was implemented to write LaTeX letters. DESCRIPTION
The letter document type was specifically implemented to write LaTeX letters, using LaTeX's brief.cls document class. It is available only for the LaTeX (yodl2latex(1)) converter. This manual page briefly describes Yodl's letter document type. This document type is specific enough that it warrants a separate man- page. letter documents do not allow you to use the `standard' sectioning commands (e.g., sect() and subsect()). You can, however, use macros that are normally used within such sections, such as description(), itemization(), bf() or em(). Several specific macros, to be used in the preamble, are available for the letter document type. They are: o AfourEnlarged(): Enlarges the usable height of A4 paper by 2 cm.: the top margin is reduced by 2 cm. o letteraddenda(type)(value): Adds an addendum at the end of a letter. type should be bijlagen (i.e., appendices), cc or ps. Use nl() within the value section if multiple addenda of a certain type are used. o letteradmin(yourdate)(yourref): Puts yourletterfrom and yourreference elements in the letter. If left empty, two dashes are inserted. o letterfootitem(name)(value): Puts a footer at the bottom of letter-pages. Up to three will usually fit. For example, o letterreplyto(name)(address)(zip city): Defines the `reply to' address. o letterto(element): Adds element as an additional line to the address of the addressee. Use one element for each line of the addressee's address. Up to five lines will usually fit. A sixth line may be squeezed in, if necessary. The letter) macro itself requires the following arguments: o language: select english, dutch, or another language supported by the babel.sty style; o date: the letter's date. Use your own date-convention. The text specified here will be used as the letter's date; o subject: a short indication as to why you wrote the letter o opening: the letter's opening, e.g., Dear Linus,; o salutation: the letter's closing phrase, e.g., Kind regards,; o author: the name of the letter's author. nl() macros can be used here, but the brief class will also restrict the width of the author-lines by itself. SEE ALSO
latex(1), yodlstriproff(1), yodl(1), yodlbuiltins(7), yodlconverters(1), yodlletter(7), yodlmacros(7), yodlmanpage(7), yodlpost(1), yodlverbinsert(1). BUGS
- AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl), yodl_3.00.0.tar.gz 1996-2010 yodlletter(7)
All times are GMT -4. The time now is 07:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy