shell script programming....

Discussion in 'Linux - General discussion' started by numnut16, Oct 30, 2006.

  1. numnut16

    numnut16 Member

    Joined:
    Dec 30, 2005
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    16
    Hey everyone, Im really new in Linux and I need some help on same basic programming in shell scripts. First, Im trying to take a text file name as an argument then display the name of the file, how many lines it has, and how many characters it has. Im a little familiar with the wc and cut commands and I was told to use them but I cant seem to get them to work. Can anyone here help me or at least direct me in the right direction? Thanks a lot!
     
  2. The_Fiend

    The_Fiend Guest

    Google linux shell scripting, and look at the 14,800,000 results it brings up.
     
  3. numnut16

    numnut16 Member

    Joined:
    Dec 30, 2005
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    16
    Thats kinda the problem, there is so much information im having trouble narrowing it down to the specific information I need. But thanks anyways!
     
  4. creaky

    creaky Moderator Staff Member

    Joined:
    Jan 14, 2005
    Messages:
    27,900
    Likes Received:
    1
    Trophy Points:
    96
    shell scripting can be done a gazillion ways; in conjunction with google use the 'man' pages ie 'man cut', 'man wc' etc. scripting can be as easy or as difficult as you choose to make it, if i can do it, anyone can :p
     
  5. tobi2yul

    tobi2yul Regular member

    Joined:
    Dec 3, 2004
    Messages:
    314
    Likes Received:
    0
    Trophy Points:
    26
    what is shell scripting?
     
  6. creaky

    creaky Moderator Staff Member

    Joined:
    Jan 14, 2005
    Messages:
    27,900
    Likes Received:
    1
    Trophy Points:
    96
    you use Linux and you don't know ?. that is odd...

    ps your signature pic is too tall, An image-only signature should be less than 50kb in size, and be at most 500 pixels wide and 200 pixels tall.
     

Share This Page