Friday, 2 December 2016

Use of wild card characters

Wild card characters

a) * : It is used to matches 0 or more characters
b) ? : It is used to matches any single character.
c) [ ] : It is used to matches any single character in the given list.
d) [-] : It is used to matches any single character in the given range.

Ex:
i)$ls f*
ii)$ls *c
iii)$ls f?
iv)$ls f????
v)$ls [abcdef]*
vi)$ls [a-z]*

vii)$rm *
viii)$rm -i*
ix)rm a*



No comments:

Post a Comment