The Mother Board

Motherboards.org forums. Free tech support, motherboard ID, and more.
It is currently Sun Oct 21, 2018 1:22 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Linux Bash Programming
PostPosted: Sat Mar 04, 2006 1:30 pm 
Offline
Initiate
Initiate

Joined: Fri Jan 23, 2004 11:13 pm
Posts: 79
Hi

I was wondering if anyone knows how to replace in a file all the single quotations by a space

I was trying the tr command but with no luck

tr -s "'"" " < filename.txt

Thanks


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Mar 04, 2006 1:55 pm 
Offline
Initiate
Initiate

Joined: Fri Jan 23, 2004 11:13 pm
Posts: 79
its ok i found the answer

sed -e s/\'/\ /g < filename.txt


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Mar 04, 2006 2:02 pm 
Offline
Initiate
Initiate

Joined: Fri Jan 23, 2004 11:13 pm
Posts: 79
another thing i was wondeing is how could i take the all the 17th cloumn in a file and then move it to the first?

Thanks


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group