Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

conamor

macrumors 6502
Original poster
Jun 27, 2013
365
21
Hi,

So I have been using "script" to record a list of command line I used during the day. At the end, I have a file with all my commands. The issue is that when I take them away from the Linux machine and try to read it using Notepad++ or Sublime Text, the format is all messed up.

I understand the encoding might be different but I was wondering if there was any way to read it properly with the colours that I can see when I read the file using a Linux machine?

Thanks!
 
You may want to run/process the file with unix2dos for opening on a windows machine, for the colours you would need a bash prompt on that machine setting the dircolors variable I think it is that controls that.
 
Alternatively change the preference of the program to read only newlines as end of line characters.

Some programs also format with color based on the script type. Look for a language setting or menu and set it to Bash.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.