Question: Write sed commands to convert chapter - level headers from AsciiDoc to Markdown format from Markdown to Org - Mode from Org - Mode to
Write sed commands to convert chapterlevel headers
from AsciiDoc to Markdown format from Markdown to OrgMode
from OrgMode to AsciiDoc
The input is taken from a file containing one link per line, no other text. Thus, if a file f contains the following links
Chapter header
Not a chapter header
Chapter with a in the middle
Chapter with s at the end
## Chapter header
##
## Not a chapter header
## Chapter with a # in the middle ##
## Chapter with no #s at the end #####
Chapter header
Not a chapter header
Chapter with stars at the end
Not a chapter header
then the outputs should be
MYSTERY SEARCHANDREPLACE COMMAND AsciiDoc to Markdown f
header
$ sed E MAGICAL ## Chapter header Not a chapter ## Chapter with a
in the middle ## Chapter with s at the end
## Chapter header ##
## Not a chapter header
## Chapter with a # in the middle ## ## Chapter with no #s at the end ##### Chapter header
Not a chapter header
Chapter with stars at the end Not a chapter header
MYSTERY SEARCHANDREPLACE COMMAND Markdown to OrgMode f
header
$ sed E MAGICAL Chapter header Not a chapter Chapter with a
in the middle Chapter with s at the end
Chapter header
## Not a chapter header
Chapter with a # in the middle
Chapter with no #s at the end
Chapter header
Not a chapter header
Chapter with stars at the end Not a chapter header
MYSTERY SEARCHANDREPLACE COMMAND OrgMode to AsciiDoc f
header
$ sed E MAGICAL Chapter header Not a chapter Chapter with a
in the middle Chapter with s at the end
## Chapter header ##
## Not a chapter header
## Chapter with a # in the middle ## ## Chapter with no #s at the end ##### Chapter header
Not a chapter header
Chapter with stars at the end Not a chapter header
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
