Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Filing And Computer Database Projects

Authors: Jeffrey Stewart

2nd Edition

007822781X, 9780078227813

More Books

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago

Question

Write a program to check an input year is leap or not.

Answered: 1 week ago