The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
removing characters dr_sabz UNIX for Dummies Questions & Answers 2 01-05-2009 06:02 PM
Removing ^D and ^H characters arsheshadri HP-UX 1 06-26-2008 09:01 AM
Removing Headers and a Column DerangedNick Shell Programming and Scripting 30 02-01-2008 05:02 PM
Help with removing characters like ^M chiru_h Shell Programming and Scripting 16 02-13-2007 10:07 AM
removing a column from list jxh461 Shell Programming and Scripting 3 10-09-2002 04:20 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-23-2009
e3r1ck_ETT e3r1ck_ETT is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 6
Removing last ten characters from a column

I have a file that looks like this:

hsa-miR-517b-4373244 0 4.116
hsa-miR-886-5p-4395304 1.173 1.95
hsa-miR-551b-4380945 1.62 1.722
hsa-miR-886-3p-4395305 1.479 3.074
hsa-miR-125a-3p-4395310 1.246 2.697
hsa-miR-874-4395379 1.985 1.721

I want it too look like this:

hsa-miR-517b 0 4.116
hsa-miR-886-5p 1.173 1.95
hsa-miR-551b 1.62 1.722
hsa-miR-886-3p 1.479 3.074
hsa-miR-125a-3p 1.246 2.697
hsa-miR-874 1.985 1.721

...etc.

Any suggestions using unix and / or perl commands?
~much appreciated in advance.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:11 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0