The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Need help in splitting a line into fields in shell scripting punithavel Shell Programming and Scripting 2 06-25-2008 05:01 PM
How do i iterate thru each line of a file in shell scripting? Ravi Varma Shell Programming and Scripting 2 09-06-2007 12:28 AM
End of Line in Shell Scripting 33junaid Shell Programming and Scripting 2 08-12-2007 12:03 PM
Delete Portion of a file sameersbn High Level Programming 2 01-20-2007 12:16 AM
who to deal with whole line in shell scripting KSA Shell Programming and Scripting 2 08-02-2006 09:12 AM

 
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 08-25-2008
Loy81 Loy81 is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
Delete a portion of a line using shell scripting

Hi all,
I am new to awk programs.I have a file like this

1234567@2345|[HELLO]|adcbdefhij: asgdfdasdfhhfd-asdfasd-dsfasdf |0.678|0.0|0.213
1234567@2345|[HELLO]|adcbdefhij: ashhfd-asdfasd-dsfasdf |0.129|0.0|0.411
1234567@2345|[HELLO]|adcbdefhij: asd-aasd-dasdf |0.223|0.0|0.276

I want to delete the text which occurs between @ and :
And also is it possible to remove the theses numbers which occur at the end of every line |0.223|0.0|0.276
This is urgent...Any help would be appreciated....

Thanks 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 12:16 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