Results 1 to 3 of 3

Thread: bash text/plain

  1. #1
    Join Date
    Mar 2011
    Location
    South Korea
    Beans
    289
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Unhappy bash text/plain

    ./1.sh 1234txt > test2
    (Is complicated)
    Result=
    test2


    How I want to ...
    ./1.sh 1234txt or ./1.sh *.txt

    Result=
    1234txt .. The original name for himself as


    How do I modify? ..
    I do not need to print the screen.
    Need only to convert ..

    Only text / plain I'd like to convert ..
    It is difficult
    Please help me.



    http://www.yolinux.com/TUTORIALS/Lin...ellScript.html


    1.sh


    #!/bin/bash
    CAT=/bin/cat
    COLCRT=/usr/bin/colcrt

    echo Content-type: text/plain
    echo ""

    if [[ -x $CAT && -x $COLCRT ]]
    then
    $CAT $1 | $COLCRT
    else
    echo Cannot find command on this system.
    fi

  2. #2
    Join Date
    Jan 2010
    Location
    Sydney, Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: bash text/plain

    FIRST OF ALL PLEASE PLEASE USE CODE TAGS .
    Please convey your message clearly so that we can help you out .

    If you dont want to print anything on the console then you need to redirect your scripts output to a file as you did in your first line or comment the echo lines .
    Still i am in dark about what you actually want to do .
    “Progress is made by lazy men looking for easier ways to do things”
    — Robert A. Heinlein

  3. #3
    Join Date
    Mar 2011
    Location
    South Korea
    Beans
    289
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: bash text/plain

    1.png

    to

    12345txtGlade project (application/x-glade) > 12345txttext/plain

    2.png

    I want to change file attributes.
    Automatic Properties. Is specified is inconvenient.

    how to should be changed.?

    Please explain BASH Shell Script

    Thank you.
    Last edited by oklokl; May 4th, 2012 at 04:40 PM.

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
  •