3 ms·Alternatively and less wastefully: echo foo | grep bar || trueby nerdponx 9y agoAlternatively and less wastefully: echo foo | grep bar || trueteddyh 9y agoAlternatively and shorter: echo foo | grep bar || :