SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Mehr von rtodd63

Mehr von 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
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

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