From: Peper <peper@aster.pl>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] [OT] Bash scripting 2
Date: Fri, 11 Nov 2005 18:57:40 +0100 [thread overview]
Message-ID: <200511111857.40664.peper@aster.pl> (raw)
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
next reply other threads:[~2005-11-11 18:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-11 17:57 Peper [this message]
2005-11-11 18:23 ` [gentoo-user] [OT] Bash scripting 2 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200511111857.40664.peper@aster.pl \
--to=peper@aster.pl \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox