Quote:
Originally Posted by Iz3k34l
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
|
Code:
sed -e "s/\(903.*\)B$/\1/g" user.txt