Gentoo Archives: gentoo-user

From: Peper <peper@×××××.pl>
To: gentoo-user@l.g.o
Subject: [gentoo-user] [OT] Bash scripting 2
Date: Fri, 11 Nov 2005 18:07:44
1 Hello,
2 How can i check whether i can create or overwrite a file?
4 For example:
5 If /etc/conf.d/net cannot be overwritten or created it return false.
7 Overwriting test would be -w /etc/conf.d/net, but how can i check if i can
8 create this file? I could check whether i can create new files
9 in /etc/conf.d, but how can i get /etc/conf.d/ from /etc/conf.d/net ?
11 --
12 Best Regards,
13 Peper
14 --
15 gentoo-user@g.o mailing list


Subject Author
Re: [gentoo-user] [OT] Bash scripting 2 Peter De Zutter <goanookie@×××××.com>
Re: [gentoo-user] [OT] Bash scripting 2 Renat Golubchyk <ragermany@×××.net>
Re: [gentoo-user] [OT] Bash scripting 2 Alexander Skwar <listen@×××××××××××××××.name>