Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We want to use sed to locate all dates of the form ##/##/2023 and replace them with ##/##/23. That is, when we have a date
We want to use sed to locate all dates of the form ##/##/2023 and replace them with ##/##/23. That is, when we have a date whose year is 2023, we want to change it to the same date but without the "20". Why is the following sed command incorrect? Briefly explain how you would have to write a sed command to work correctly (do not provide the command, just explain how it would work).
sed 's/2023/23/g' somefile
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started