S-123-P Bash Pocket Ref. 2010 Cengage Learning $55
E-P234 Python Pocket Ref. 2012 Cengage Learning $45
55-MNP Unix System Programming 2001 Sybex $230
I need to replace the numbers after the $ not including the $ with *, so the output need to be:
S-123-P Bash Pocket Ref. 2010 Cengage Learning $**
E-P234 Python Pocket Ref. 2012 Cengage Learning $**
55-MNP Unix System Programming 2001 Sybex $***
I've been able to replace the last digit or last 2, but not every digit after the $.
I've tried sed and awk gsub but nothing I try seems to work.