Reputation: 11282
How do I redirect the output of a sed command as input to a tr command?
Upvotes: 0
Views: 940
Reputation: 799130
You don't need tr
. The y
map predicate can do transliteration from within sed.
Upvotes: 2
Reputation: 3619
Looking at your comment, you say that the output of your sed
command is on multiple lines. If it truly is on multiple lines, and not a wrap around, you could use a for loop
for i in $(sed ".."); do tr "$i"; done
Upvotes: 0