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 > 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
Removing special characters in file srivsn Shell Programming and Scripting 6 01-03-2008 06:10 AM
Help with removing characters like ^M chiru_h Shell Programming and Scripting 16 02-13-2007 10:07 AM
Identifying and removing control characters in a file. oracle8 High Level Programming 0 04-13-2004 06:08 PM
Removing carriage return characters from file b1saini UNIX for Dummies Questions & Answers 3 09-10-2003 09:41 AM
removing characters from end of string el_toro Shell Programming and Scripting 4 07-14-2002 08:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-25-2008
bombcan bombcan is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 16
Removing certain characters in a file

Hi

I have a file that has semicolons in it ( is there a way to just remove these in the file. Example

name: Joe Smith; group: Group1;
name: Mary White; group: Group2;
  #2 (permalink)  
Old 04-25-2008
in2nix4life's Avatar
in2nix4life in2nix4life is offline
Registered User
  
 

Join Date: Oct 2007
Location: East Coast
Posts: 58
You can use 'sed' to remove all the ';' from the file:

sed -i.bkup -e 's/;//g' file.txt

Hope this helps.
  #3 (permalink)  
Old 04-25-2008
bombcan bombcan is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 16
Thanks I forgot all about sed!
Sponsored Links
Closed Thread

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 03:20 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
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