SlideShare a Scribd company logo
Write a command to change all and in file foo.html to and , respectively in unix.
Solution
sed -i 's###g; s###g' foo.html
sed is used for search and replace in unix.
-i option is for replacing inplace
g option is for replacing globally all the occurences in the file instead of only first occurence
's#findstring#replacestring#g' means seach for 'findstring' string and replace it with
"replacestring" string globally

More Related Content

PDF
most extra cellular environments contain a high concentration of sod.pdf
PDF
Let X be the prive of a meal at a local diner( X = $8,$10,and $12) a.pdf
PDF
LinearPerson.javaPlease help me the JAVA programPlease provide t.pdf
PDF
is acute or chronic exposure to heptachlor more of a danger to human.pdf
PDF
In “Intellectual Property and the Information Age,” Richard T. De Ge.pdf
PDF
How does horizontal transfer affect the evolution of anti-biotic res.pdf
PDF
Flag this QuestionQuestion 12 1 ptsPolytene chromosomes arise fr.pdf
PDF
Genetic drift tends to genetic variation wITHIN small populations, an.pdf
most extra cellular environments contain a high concentration of sod.pdf
Let X be the prive of a meal at a local diner( X = $8,$10,and $12) a.pdf
LinearPerson.javaPlease help me the JAVA programPlease provide t.pdf
is acute or chronic exposure to heptachlor more of a danger to human.pdf
In “Intellectual Property and the Information Age,” Richard T. De Ge.pdf
How does horizontal transfer affect the evolution of anti-biotic res.pdf
Flag this QuestionQuestion 12 1 ptsPolytene chromosomes arise fr.pdf
Genetic drift tends to genetic variation wITHIN small populations, an.pdf

More from alokkesh (20)

PDF
For our discussion question, we focus on recent trends in security t.pdf
PDF
Fill in the blanksMicronutrients this refers to a sub-category o.pdf
PDF
ecourses.pvamu.edu Help English United States en us) Question4 Ma.pdf
PDF
Explain why several versions of nMOS transistor models and pMOS trans.pdf
PDF
Explain How Culture influences the way mangers perform their four ma.pdf
PDF
Describeillustrate the construction used by the ancient Indians to s.pdf
PDF
Describe the factors that contribute to a membrane potential. What i.pdf
PDF
DiARTHROIDAL joints can be classified based on their characteristics.pdf
PDF
Define and explain chemical equilibrium Include the defenition o.pdf
PDF
Cite the distinction between graphite and carbon. Carbon and graphit.pdf
PDF
C Language ProblemPlease Explain If int n1 = 5, and int d1 = 2, wh.pdf
PDF
According to Cisco design theory for a fully switched network, hosts.pdf
PDF
A saturated sample has a mass 0.69 kilograms when wet and 0.5 kg whe.pdf
PDF
Changes in the neutral or tan color of Christensen Urea agar broth to.pdf
PDF
A a randomly-chosen voter is a registered Democrat B they are regis.pdf
PDF
1.    Could the bailout by the Federal Reserve in 1998 and subsequen.pdf
PDF
14. (TCO 1-6) Please select the statement which CORRECTLY links a fo.pdf
PDF
Which of the following statements about Stanley Miller’s experiment .pdf
PDF
1. Describe in a simplied way, the components and variables of the p.pdf
PDF
What is the role of agar in a nutrient medium Itprovides nutrients.pdf
For our discussion question, we focus on recent trends in security t.pdf
Fill in the blanksMicronutrients this refers to a sub-category o.pdf
ecourses.pvamu.edu Help English United States en us) Question4 Ma.pdf
Explain why several versions of nMOS transistor models and pMOS trans.pdf
Explain How Culture influences the way mangers perform their four ma.pdf
Describeillustrate the construction used by the ancient Indians to s.pdf
Describe the factors that contribute to a membrane potential. What i.pdf
DiARTHROIDAL joints can be classified based on their characteristics.pdf
Define and explain chemical equilibrium Include the defenition o.pdf
Cite the distinction between graphite and carbon. Carbon and graphit.pdf
C Language ProblemPlease Explain If int n1 = 5, and int d1 = 2, wh.pdf
According to Cisco design theory for a fully switched network, hosts.pdf
A saturated sample has a mass 0.69 kilograms when wet and 0.5 kg whe.pdf
Changes in the neutral or tan color of Christensen Urea agar broth to.pdf
A a randomly-chosen voter is a registered Democrat B they are regis.pdf
1.    Could the bailout by the Federal Reserve in 1998 and subsequen.pdf
14. (TCO 1-6) Please select the statement which CORRECTLY links a fo.pdf
Which of the following statements about Stanley Miller’s experiment .pdf
1. Describe in a simplied way, the components and variables of the p.pdf
What is the role of agar in a nutrient medium Itprovides nutrients.pdf
Ad

Recently uploaded (20)

PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Complications of Minimal Access Surgery at WLH
PDF
RMMM.pdf make it easy to upload and study
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Classroom Observation Tools for Teachers
PPTX
master seminar digital applications in india
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
Supply Chain Operations Speaking Notes -ICLT Program
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
TR - Agricultural Crops Production NC III.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
human mycosis Human fungal infections are called human mycosis..pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
Complications of Minimal Access Surgery at WLH
RMMM.pdf make it easy to upload and study
O7-L3 Supply Chain Operations - ICLT Program
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Renaissance Architecture: A Journey from Faith to Humanism
102 student loan defaulters named and shamed – Is someone you know on the list?
Classroom Observation Tools for Teachers
master seminar digital applications in india
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
Ad

Write a command to change all B and B in file foo.html to STRO.pdf

  • 1. Write a command to change all and in file foo.html to and , respectively in unix. Solution sed -i 's###g; s###g' foo.html sed is used for search and replace in unix. -i option is for replacing inplace g option is for replacing globally all the occurences in the file instead of only first occurence 's#findstring#replacestring#g' means seach for 'findstring' string and replace it with "replacestring" string globally