Results 1 to 5 of 5

Thread: Script

  1. #1

    Default Script

    For example if I want to exchange information of a XXXX file.

    The XXXX fcheiro contains: NAME: FILE

    I want him to switch to: NAME: YYYY

    How would the script in suse studio for the process

  2. #2

    Default Re: Script

    In the script section you could put the following line that would probably
    do the job, if I understand your request fully:

    Code:
    sed -i -e 's/NAME: FILE/NAME: YYYY/'

    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  3. #3

    Default Re: Script

    Quote Originally Posted by ab View Post
    In the script section you could put the following line that would probably
    do the job, if I understand your request fully:

    Code:
    sed -i -e 's/NAME: FILE/NAME: YYYY/'

    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...
    I'll simplify.

    I have a file in "/ usr /" ... The file name is "DOC"

    Within the file is written "LINUX" ...


    I want a script that whenever I shut down the OS will change what is written in the file to "LINUX NEW"

  4. #4

    Default Re: Script

    Help please

  5. #5
    Join Date
    Jun 2008
    Location
    Düsseldorf/Germany
    Posts
    250

    Default Re: Script

    Quote Originally Posted by estica View Post
    Help please
    man sed
    or read in the other Studio Forum

Posting Permissions

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