The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to change a specific character in a file
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
How to change a specific character in a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-21-2008
bobbygsk
Registered User
Join Date: Oct 2007
Posts: 90
File
==
a|b|c|d|3|f1|f2|f3
a|b|c|d|5|f1|f2|f3|f4|f5
Quote:
sed -e "s/|f/;f/g" -e "s/;f1/|f1/g" file
bobbygsk
View Public Profile
Find all posts by bobbygsk