User Tools

Site Tools


software:cli:bash:files
  1. If dos2unix fails with
    Binary symbol 0x08 found

    you can still do the same job using the following command

    tr -cd '\11\12\40-\176' < windwowsformatted.txt >> outputfile 
  2. Using Less instead of tail
    less +F /your/file

    Reference/examples: http://www.brianstorti.com/stop-using-tail/

  3. Replacing cr/lf by coma
    tr '\n' ',' < input.txt > output.txt

    Reference: http://stackoverflow.com/questions/4594319/shell-replace-cr-lf-by-comma

software/cli/bash/files.txt · Last modified: 2021/12/29 21:09 by warnaud