The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Trying to remove single character from a line
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Trying to remove single character from a line
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
1
(
permalink
)
07-03-2007
Iz3k34l
Registered User
Join Date: Jul 2007
Location: Texas
Posts: 3
Trying to remove single character from a line
Here is a sample code
grep '903' -i user.txt | tail -2 | awk '{print $2}' |
sed
's/B//g'
the input file has data as such
903-xxx-xxxxB
903-xxx-xxxxB
It is a dialer file i want to remove the "B"
any help thanks
Iz3k34l
View Public Profile
Find all posts by Iz3k34l
Find Iz3k34l's past nominations received
Find Iz3k34l's present nominations given