public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] [OT] Bash scripting 2
@ 2005-11-11 17:57 Peper
  2005-11-11 18:23 ` Peter De Zutter
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Peper @ 2005-11-11 17:57 UTC (permalink / raw
  To: gentoo-user

Hello,
How can i check whether i can create or overwrite a file?

For example:
If /etc/conf.d/net cannot be overwritten or created it return false.

Overwriting test would be -w /etc/conf.d/net, but how can i check if i can 
create this file? I could check whether i can create new files 
in /etc/conf.d, but how can i get /etc/conf.d/ from /etc/conf.d/net ?

-- 
Best Regards,
Peper
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-11-12  0:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-11 17:57 [gentoo-user] [OT] Bash scripting 2 Peper
2005-11-11 18:23 ` Peter De Zutter
2005-11-11 18:25 ` Renat Golubchyk
2005-11-11 18:33   ` [gentoo-user] " Peper
2005-11-11 20:47 ` [gentoo-user] " Alexander Skwar
2005-11-12  0:48   ` [gentoo-user] " Peper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox