-
-
Save kyab/984613 to your computer and use it in GitHub Desktop.
cot : let's pipe to CotEditor, like mate for TextMate.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#pipe to cotEditor | |
#example: | |
# ls -alF | cot.sh | |
# man mount | col -b | cot.sh | |
file=`mktemp -t cot` | |
rm -f $file | |
cat - >> $file | |
open -a CotEditor $file | |
#echo "stdout is redirected to CotEditor" | |
#This does not work!! | |
#while read a; do | |
# echo -e $a >> $file | |
# echo -e \ttabbed >> $file | |
# echo -e \\ttabbed >> $file | |
#done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment