Results 1 to 4 of 4

Thread: Less can read .gz compressed files ? (solved)

  1. #1
    Join Date
    Jun 2012
    Beans
    310

    Less can read .gz compressed files ? (solved)

    Just a dumb question,I've seen that less can read my older .gz logfiles just fine,no need to use zless - is this normal ?
    Last edited by cogset; April 19th, 2013 at 04:52 PM.

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Less can read .gz compressed files ?

    double-post, deleted
    Last edited by schragge; April 15th, 2013 at 05:07 PM.

  3. #3
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: Less can read .gz compressed files ?

    See lessfile(1). BTW, this is my ~/.lessfilter
    Code:
    #!/bin/sh
    case "$1" in
    *.ttf)
      ftdump -n "$1";;
    *.cpio)
      cpio -itv < "$1";;
    *.odt)
      odt2txt "$1";;
    *.ps)
      pstotext "$1";;
    *.md)
      markdown --html4tags "$1" | html2text;;
    *)
      exit 1;;
    esac
    exit 0

  4. #4
    Join Date
    Jun 2012
    Beans
    310

    Re: Less can read .gz compressed files ?

    Many thanks.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •