x Flashcards
(3 cards)
1
Q
What is pathname expansion?
A
If you use * in command argument,
it is expanded to all files in current directory,
similiary, x*, expands to all files starting with x
2
Q
What is arithmetic expansion?
A
It is expansion done on $( ( calculation ) ) expression also present in command parameters
3
Q
What is brace expansion?
A
Replace whole string from space to space with each element in brace separated by comma and append to output.
E.g {A,B}{1,2} produces A1 A2 B1 B1
but {A,B} {1,2} with space - produces A B 1 2