removing first "0" or "63" in a text file
hi all..hope u guys can help me with this.
problem is a file containing the follwing 09195674567 09195674667 09195674767 09195674568 09195674561 09195674562 09195674563 639197896334 639197896335 639197896336 639197896337 i wanna remove the leading zeros and leading "63" using sed? pls help |
or an awk solution would be great also
|
vim file.txt
:%s/^0// :%s/^63// :wq |
Code:
sed 's/^\(0\|63\)//' filename |
Yet another way of doing that.... :)
Code:
sed -e "s/^[0,63]*//g" file.txt |
Quote:
Code:
> echo "636603661" | sed -e "s/^[0,63]*//g" |
All times are GMT -5. The time now is 07:40 AM. |