I'd like to be able to run multiple commands on the same file in a single line. The way I currently do this is:
commandA file && commandB file && perl -ne '...' file
My gut instinct tells me that there should be a way to provide the filename argument only once and pipe it to both commands simultaneously through
xargs or something similar:
find file | xargs commandA && xargs commandB && xargs perl -ne '...'
When I try this, only the first command runs. How can I achieve what I want to do?