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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is arithmetic expansion?

A

It is expansion done on $( ( calculation ) ) expression also present in command parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly