Gentoo Archives: gentoo-user

From: Alex Schuster <wonko@×××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Quick script request
Date: Wed, 25 Jun 2008 15:47:19
Message-Id: 200806251747.12959.wonko@wonkology.org
In Reply to: Re: [gentoo-user] Quick script request by Grant
1 Grant asks:
2
3 > Thanks guys, can you tell me how to execute this? Put it in a file
4 > and './file' I think? Should I have special stuff at the top of the
5 > file?
6
7 Yes, a '#!/bin/bash', it you want top have thsi as a script. You need to
8 make it executable, too: chmod +x file
9
10 But you can also leave the #!/bin/bash out,l and call it like this: '. file'
11 or 'source file'. This acts as if you typed the commands directly in the
12 terminal.
13
14 Which would be the easiest way to do it: Just mark the stuff in your mail
15 program, ans paste it into you terminal.
16
17 Wonko
18 --
19 gentoo-user@l.g.o mailing list