"script" linux command question

Discussion in 'Windows, Linux & Others on the Mac' started by conamor, Aug 11, 2017.

  1. conamor macrumors 6502


    Jun 27, 2013

    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?

  2. MacUser2525 macrumors 68000


    Mar 17, 2007
    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.
  3. belvdr macrumors 603

    Aug 15, 2005
    No longer logging into MR
    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.

Share This Page