20250418 Flashcards

1
Q

What is Process Substitution?

A

Is a way to force a command like diff to read from standard input

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

masquerade meaning

A

a way of behaving or speaking that hides your true thoughts or feelings
She didn’t really love him, but she kept up the masquerade for the children’s sake.

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

How to compare a directory to ensure that each pdf file in the folder has the corresponding tif file diff and process substitition?

A

diff <(ls /net/satvol001/innovation/USERS/Farzin/data/tmp/process_sub/*.pdf | cut -d. -f1) <(ls /net/satvol001/innovation/USERS/Farzin/data/tmp/process_sub/*.tif | cut -d. -f1)

Because diff command accepts only files as the input, we need to use process substitution

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

How to compare two texts with diff command?

A

diff <(echo "some texts") <(echo "some othet texts")

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