Sponsored Content
Full Discussion: Manipulation of a list
Top Forums UNIX for Dummies Questions & Answers Manipulation of a list Post 302586950 by methyl on Tuesday 3rd of January 2012 06:38:53 PM
Old 01-03-2012
Howabout using the unix "cut" command.

Code:
cat filename.txt | cut -f1-4,6- -d-

n02-z30-dsr65-terr0.50-8x6drw-csq.msf
n02-z30-dsr65-terr0.50-8x6drw-csq.msf
n02-z30-dsr65-terr0.50-8x6drw-csq.msf
n02-z30-dsr65-terr0.50-8x6drw-csq.msf
n02-z30-dsr65-terr0.50-8x6drw-csq.msf

I might have missed something here but I can't see the point of a sort because all the results are the same. Maybe you mean sort then uniq.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File Manipulation

Hi, I am trying to manipulate a file that looks something like below: ! 7788 |778855 |SCOTT | ! 7782 |778223 |CLARK | ! 7902 |790245 |FORD | ! 7698 |7698455 |BLAKE | ! 7934 |79345767 |MILLER | ! 7844 |784 |TURNER |... (1 Reply)
Discussion started by: rkumar28
1 Replies

2. UNIX for Dummies Questions & Answers

manipulation

hi, i have got a table with n number of rows and 2 columns..how can i get get 1 row at a time using any unix command without copying to any file? Thanks and Regards vivek.s (13 Replies)
Discussion started by: vivekshankar
13 Replies

3. Shell Programming and Scripting

Subtract 100 from first field in long list? Simple manipulation?

It sounds so easy to do. I have a file thats laid out like this.. number text text text text (etc about 15 times with various text fields) I want to take the first field, "number", subtract 100 from it, and then put it back in the file. a simple little manipulation of the first field in... (4 Replies)
Discussion started by: LordJezo
4 Replies

4. Shell Programming and Scripting

Date Manipulation

I need to achieve the following.....I seached the forum but could not find it... This is I have in a file... "CH","TIA","10/27/2006",000590 I need the date in the third field to be attached to fileas 20061027_test.txt How do I do it. (6 Replies)
Discussion started by: mgirinath
6 Replies

5. UNIX for Dummies Questions & Answers

text manipulation

I am tryin to figure out how to extract interested text from file example.txt blah blah blah a: child1 blah a: child2 blah b: parent1 blah blah blah .... blah a: child21 blah a: child22 blah a: child23 blah b: parent2 this kinda text repeats .. number of children is... (6 Replies)
Discussion started by: rajkishore
6 Replies

6. Shell Programming and Scripting

Splitting a list @list by space delimiter so i can access it by using $list[0 ..1..2]

EDIT : This is for perl @data2 = grep(/$data/, @list_now); This gives me @data2 as Printing data2 11 testzone1 running /zones/testzone1 ***-*****-****-*****-***** native shared But I really cant access data2 by its individual elements. $data2 is the entire list, while $data,2,3...... (1 Reply)
Discussion started by: shriyer
1 Replies

7. UNIX for Dummies Questions & Answers

Data Manipulation

Hello I am currently having problems in mapulating a certain file which contains vaious data. Belos is a sample content Event=<3190> Client IP=<151.111.11.143> DNS=<abc.sbc.com> TransCount=<139> Client IP=<150.222.133.163> DNS=<xyz.yuu.com> TransCount=<3734> Event=<3120> Client... (11 Replies)
Discussion started by: khestoi
11 Replies

8. UNIX for Dummies Questions & Answers

Help with file manipulation

Dear All, I have a question. So for the following sample file I would like to collect information about entries in $F, $F & $F so as to acheive the following output as shown below SK1.chr01 854 levure5 A G 225 . ... (7 Replies)
Discussion started by: pawannoel
7 Replies

9. Shell Programming and Scripting

File manipulation

Hi, My requirement is that ,i need to generate data file consisting of very high number of transactions. I need to take the header for the file containing pipe delimited columns from a different file(Header.txt containing headers for different formats).Please help me in this regard. Also for... (5 Replies)
Discussion started by: krashraj
5 Replies

10. Shell Programming and Scripting

String manipulation.

If a have a variable with a first and last name. and say the variable looks like this... FIRST LAST how could process the variable to look like First .L bash 3.2 (osx) (3 Replies)
Discussion started by: briandanielz
3 Replies
GLAM2FORMAT(1)							   glam2 Manual 						    GLAM2FORMAT(1)

NAME
glam2format - converts GLAM2 motifs to FASTA or MSF format SYNOPSIS
glam2format [options] my_format my_motif.glam2 Formats: fasta, msf. DESCRIPTION
glam2format reads in a motif found by glam2, and writes it in a standard alignment format (FASTA-with-gaps or MSF). This enables the alignment to be passed to third-party software, including graphical visualization tools such as Kalignvu, Boxshade, and WebLogo. On the other hand, not all the motif information is preserved: in particular, the key positions are lost. Only the top motif in glam2 output is converted. OPTIONS (DEFAULT SETTINGS) -o Output file (stdout). -c Make a compact alignment. By default, residues that are inserted between key positions are written as unaligned with each other. This best reflects glam2's intention, but it can make the alignment large and full of gaps. With -c, inserted residues are written as arbitrarily aligned with each other, just as they appear in the glam2 output. -f Sequence file to make a "global" alignment by adding flanking sequences from the original FASTA-format sequence file. The flanking sequences will be written as either unaligned with each other or arbitrarily aligned, depending on the -c option. The sequences should have unique names and their order should be unchanged. SEE ALSO
boxshade(1), glam2(1), glam2mask(1), glam2-purge(1), glam2scan(1) The full Hypertext documentation of GLAM2 is available online at http://bioinformatics.org.au/glam2/ or on this computer in /usr/share/doc/glam2/. REFERENCE
If you use GLAM2, please cite: MC Frith, NFW Saunders, B Kobe, TL Bailey (2008) Discovering sequence motifs with arbitrary insertions and deletions, PLoS Computational Biology (in press). AUTHORS
Martin Frith Author of GLAM2. Timothy Bailey Author of GLAM2. Charles Plessy <plessy@debian.org> Formatted this manpage in DocBook XML for the Debian distribution. COPYRIGHT
The source code and the documentation of GLAM2 are released in the public domain. GLAM2 1056 05/19/2008 GLAM2FORMAT(1)
All times are GMT -4. The time now is 08:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy