20250418 Flashcards
What is Process Substitution
?
Is a way to force a command like diff
to read from standard input
masquerade
meaning
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 to compare a directory to ensure that each pdf
file in the folder has the corresponding tif
file diff
and process substitition?
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 to compare two texts with diff
command?
diff <(echo "some texts") <(echo "some othet texts")