What is a constructor in bash where you can take the shell of a command that outputs to stdout, so that the output itself is treated as a stream? In case I am not describing it so well, perhaps the example will work best, and this is what I usually use for it: using diff to output which does not come from the file, but from other commands, where
cmd
certified as
<(cmd)
By wrapping the command this way, in the example below, I determine that there is a difference between the two commands that I run, and then I can determine that there is one exact difference. What is the design / method of wrapping a command like <(cmd)? Thanks
[ builder@george v6.5 html]$ git status | egrep modified | awk '{print $3}' | wc -l 51 [ builder@george v6.5 html]$ git status | egrep modified | awk '{print $3}' | xargs grep -l 'Ext\.define' | wc -l 50 [ builder@george v6.5 html]$ diff <(git status | egrep modified | awk '{print $3}') <(git status | egrep modified | awk '{print $3}' | xargs grep -l 'Ext\.define') 39d38 < javascript/reports/report_initiator.js
ADDITION A revised command that uses advice for using the git ls file should be as follows (unverified):
diff <(git ls-files -m) <(git ls-files -m | xargs grep -l 'Ext\.define')
source share