SlideShare une entreprise Scribd logo
1  sur  2
UNIX/Linux
Devise wild-card patterns to match the following filenames: (i) foo1, foo2, and Foo5, (ii) quit.c,
quit.o, and quit.h, (iii) watch.htm, watch.HTML, and Watch.html, (iv) all filenames that begin
with a dot and end with .swp.
Solution
i) foo1, foo2, and Foo5
[f,F]oo[1,2,5]
[f,F] means first character could be f or F then oo then last could be 1 2 5
ii) quit.c, quit.o, and quit.h,
quit.?
?:any single charater after quit
iii) watch.htm, watch.HTML, and Watch.html
-i watch.htm[?, ]
-i ignore case
? any single character character ot empty
4.all filenames that begin with a dot and end with .swp.
^.swp$
^ denotes begining
$ denotes endingof line
UNIX-Linux Devise wild-card patterns to match the following filenames-.docx

Contenu connexe

Plus de rtodd63

Plus de rtodd63 (6)

ty ty +x +X SolutionLet- mass of each rod - m - M length of each rod -.docx
ty ty +x +X SolutionLet- mass of each rod - m - M length of each rod -.docxty ty +x +X SolutionLet- mass of each rod - m - M length of each rod -.docx
ty ty +x +X SolutionLet- mass of each rod - m - M length of each rod -.docx
 
True-False (a) Ganymede is the only known satellite to have an intrins.docx
True-False (a) Ganymede is the only known satellite to have an intrins.docxTrue-False (a) Ganymede is the only known satellite to have an intrins.docx
True-False (a) Ganymede is the only known satellite to have an intrins.docx
 
True or false- If true or false state your reason- 2 lanes are subspa.docx
True or false- If true or false state your reason-  2 lanes are subspa.docxTrue or false- If true or false state your reason-  2 lanes are subspa.docx
True or false- If true or false state your reason- 2 lanes are subspa.docx
 
true or false The Doppler effect is a change in frequency due to the r.docx
true or false The Doppler effect is a change in frequency due to the r.docxtrue or false The Doppler effect is a change in frequency due to the r.docx
true or false The Doppler effect is a change in frequency due to the r.docx
 
tte - -----rrof- tot i aoTA- South L has an anday ebretro chon Hrd dio.docx
tte - -----rrof- tot i aoTA- South L has an anday ebretro chon Hrd dio.docxtte - -----rrof- tot i aoTA- South L has an anday ebretro chon Hrd dio.docx
tte - -----rrof- tot i aoTA- South L has an anday ebretro chon Hrd dio.docx
 
True or False 1- One good feature about memory-memory instruction set.docx
True or False 1- One good feature about memory-memory instruction set.docxTrue or False 1- One good feature about memory-memory instruction set.docx
True or False 1- One good feature about memory-memory instruction set.docx
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 

UNIX-Linux Devise wild-card patterns to match the following filenames-.docx

  • 1. UNIX/Linux Devise wild-card patterns to match the following filenames: (i) foo1, foo2, and Foo5, (ii) quit.c, quit.o, and quit.h, (iii) watch.htm, watch.HTML, and Watch.html, (iv) all filenames that begin with a dot and end with .swp. Solution i) foo1, foo2, and Foo5 [f,F]oo[1,2,5] [f,F] means first character could be f or F then oo then last could be 1 2 5 ii) quit.c, quit.o, and quit.h, quit.? ?:any single charater after quit iii) watch.htm, watch.HTML, and Watch.html -i watch.htm[?, ] -i ignore case ? any single character character ot empty 4.all filenames that begin with a dot and end with .swp. ^.swp$ ^ denotes begining $ denotes endingof line