DEV Community

Discussion on: ELI5 : Subshell in linux and its usage

Collapse
 
bijaykumarpun profile image
Bijay Kumar Pun

Accidentally bumped into the diff command, where subshell is used.
The diff command is used for comparison between two outputs:
diff -u --color <( cat one.txt ) <( cat two.txt)
-u will show unified difference
--color adds some nice colors
And the symbols < and ( should be used together!