+
1 5 5
  1. #1
    Erin Welton... Mhaith       Mhaith
    12.11.2007
    48
    ()
    0
    : 0 (: 0).

     bash

    , - , - - ...
    ed f2 <<!

    "f2", . , "<<" (. . "!"). , "!".
    , ed`o - - . , (man ed) , - .
    ' , , - :

    cat f1 | grep -h result | sort | cat -b > f2

    "f1" ("cat") , "result" ("grep"), ("sort") , ("cat -b") "f2".
    -, , - ">".
    .
    "cmd", :

    date; pwd; ls

    shell (!), "sh", "cmd", , ..

    $ sh cmd $ sh <cmd

    , , .

    - , .. , . .

    ,

    chmod 711 cmd

    "rwx__x__x".

    cmd

    .
    - - .
    http://www.linuxcenter.ru/lib/books/shell/gl3.phtml ().

    . ( ), . Xorg?

    This is my fate - the things I hate (Lodger - Fickle)

  2. #2
    MupoTBopeu       MupoTBopeu
    06.10.2007
    127.0.0.1
    2,881
    ()
    0
    : 2 (: 2).

    Mhaith
    ?

    Mhaith
    Xorg
    startx

    4

    Mhaith
    - ">".
    'result'.
    Mhaith
    .
    ? date, pwd, ls, sh ?

    24

    Mhaith
    sh cmd $ sh <cmd
    :sh ./cmd $ sh < ./cmd

    ./ , cmd

  3. #3
    Erin Welton... Mhaith       Mhaith
    12.11.2007
    48
    ()
    0
    : 0 (: 0).

    MupoTBopeu
    ?


    :
    :
    [mhaith@localhost Desktop]$ sh <./cmd
      26 13:53:08 MSK 2008
    /home/mhaith/Desktop
    cmd  device.desktop  Home.desktop  trash.desktop  Welcome.desktop
    [mhaith@localhost Desktop]$ cmd
    bash: cmd: command not found
    cmd , .

    This is my fate - the things I hate (Lodger - Fickle)

  4. #4
    s0rg       s0rg
    07.04.2007
    6
    ()
    0
    : 0 (: 0).

    , $PATH, "." .
    shell' - echo $SHELL, bash
    ( zsh). - cd ~,
    .bash_profile ( bash), PATH=
    ":.". ! ,
    /.

    , -
    http://tldp.org/LDP/abs/html/

    !

  5. #5
    MupoTBopeu       MupoTBopeu
    06.10.2007
    127.0.0.1
    2,881
    ()
    0
    : 2 (: 2).

    Mhaith, : chmod u+x cmd