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
teem-tend(1)							   User Commands						      teem-tend(1)

NAME
teem-tend - Diffusion Image Processing and Analysis DESCRIPTION
"tend" is a command-line interface to much of the functionality in "ten", a C library for diffusion image processing. Ten is one library in the "Teem" collection of libraries. More information about Teem is at <http://teem.sourceforge.net>. Users are strongly encouraged to join the teem-users mailing list: <http://lists.sourceforge.net/lists/listinfo/teem-users>. This is the primary forum for feedback, questions, and feature requests. Like "unu", another Teem command-line binary, it is often useful to chain together invocations of tend with pipes, as in the following, which estimates tensors from DWIs, takes a slice of the tensor volume, computes the standard RGB colormap of the principal eigenvector, and then quantizes it to an 8-bit PNG: tend estim -i dwi.nhdr -B kvp -knownB0 true | tend slice -a 2 -p 30 | tend evecrgb -c 0 -a cl2 -gam 1.2 | unu quantize -b 8 -min 0 -max 1 -o z30-rgb.png If tend repeatedly proves itself useful for your research, an acknowledgment to that effect in your publication would be greatly appreciated, such as (for LaTeX): "Dataset processing performed with the { t tend} tool part of the { t Teem} toolkit available at { t $<$http://teem.sf.net$>$}" SEE ALSO
The full documentation for Teem is maintained as a Texinfo manual. If the info and teem-tend programs are properly installed at your site, the command info teem-tend should give you access to the complete manual. 1.10.0 December 10, 2008 teem-tend(1)
All times are GMT -4. The time now is 09:04 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy