Can you please help me to write a sed command to remove the price from a file?
Input:
1 Printer 2 Network Swtich 1 82lb A4 Paper Rim $20
Output:
1 Printer 2 Network Swtich 1 82lb A4 Paper Rim
$20 eliminated from the output.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming your data is in /tmp/foo:
Use the pattern match to find lines that start with a dollar sign, then delete those lines from the pattern space and start the next cycle.