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


estica

estica’s Profile: http://forums.opensuse.org/member.php?userid=95225
View this thread: http://forums.opensuse.org/showthread.php?t=509565

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

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…

ab;2727214 Wrote:[color=blue]

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

[/color][/color]
Code:
--------------------[color=blue][color=green]

[/color]
sed -i -e ‘s/NAME: FILE/NAME: YYYY/’
[/color]
--------------------[color=blue][color=green]

[/color]


Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…[/color]

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”


estica

estica’s Profile: http://forums.opensuse.org/member.php?userid=95225
View this thread: http://forums.opensuse.org/showthread.php?t=509565

Help please


estica

estica’s Profile: http://forums.opensuse.org/member.php?userid=95225
View this thread: http://forums.opensuse.org/showthread.php?t=509565

estica;2727979 Wrote:[color=blue]

Help please[/color]

man sed
or read in the other Studio Forum


DocB

DocB’s Profile: http://forums.opensuse.org/member.php?userid=574
View this thread: http://forums.opensuse.org/showthread.php?t=509565