I'm having some trouble with output redirection. I'm running a pdf search program called pdfgrep (it's amazing, highly recommended) and am trying to save my results to a file. I've aliased a long pdfgrep command to fpdf in my .bashrc so I don't mistype it. When I try and do:
Code: Select all
fpdf foo >> ~/output.txt
The code above exits normally, no errors. Output.txt is visible in nemo and using the ls command. However, when I try opening it with gedit, the file will not open -- gedit errors about not detecting the character encoding. However, opening in libre word works just fine.
What's up with gedit? The file is obviously there and written correctly, so why can't it read it?