Find the answer to your Linux question:
Results 1 to 4 of 4
I need to answer this questions...does anybody know the answers...please if u know send it to me as a privite message THnx "For the following and any subsequent exercises you ...
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    1

    Shell script programming

    I need to answer this questions...does anybody know the answers...please if u know send it to me as a privite message
    THnx

    "For the following and any subsequent exercises you ARE NOT permitted to use either SED or AWK".

    Script 1

    Pre-requisites
    Create a file with x amount of lines in it, the content of your choice.

    Write a script that takes two arguments. The first being a line of text, the second being your newly created file. The script should take the first argument and insert it into the very top (the first line) of the file named in your second argument.

    Note! The file must retain the original name



    Script 2

    Take a copy (backup) and amend the above script so that it now inserts the first argument into the middle of the file.

    Note! Again the original file must retain it original name

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Asking homework questions is against the forum rules.

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Posts
    5
    Quote Originally Posted by Thrillhouse View Post
    Asking homework questions is against the forum rules.


    HAH!

  4. #4
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    No homework questions as per forum rules - check the link in my signature.

    Also please consider it is poor forum etiquette to answer problems by private message, as then others cannot contribute to or share in the knowledge.

Posting Permissions

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