From owner-freebsd-questions@FreeBSD.ORG Sun Aug 29 20:08:13 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0D3B1065673 for ; Sun, 29 Aug 2010 20:08:13 +0000 (UTC) (envelope-from jmc-freebsd2@milibyte.co.uk) Received: from relay.pcl-ipout02.plus.net (relay.pcl-ipout02.plus.net [212.159.7.100]) by mx1.freebsd.org (Postfix) with ESMTP id 5E69A8FC15 for ; Sun, 29 Aug 2010 20:08:12 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AogFAP5aekxUXebj/2dsb2JhbACTI40mcbk2hTcE Received: from outmx01.plus.net ([84.93.230.227]) by relay.pcl-ipout02.plus.net with ESMTP; 29 Aug 2010 21:08:12 +0100 Received: from helix.plus.com ([84.92.153.232] helo=curlew.milibyte.co.uk) by outmx01.plus.net with esmtp (Exim) id 1OpoAl-0004fP-Ud for freebsd-questions@freebsd.org; Sun, 29 Aug 2010 21:08:12 +0100 Received: by curlew.milibyte.co.uk with local (Exim 4.72) (envelope-from ) id 1OpoAk-0001Qz-L7 for freebsd-questions@freebsd.org; Sun, 29 Aug 2010 21:08:10 +0100 From: Mike Clarke To: freebsd-questions@freebsd.org Date: Sun, 29 Aug 2010 21:08:10 +0100 User-Agent: KMail/1.9.10 References: <20100827170737.GA96063@thought.org> <864oedkzck.fsf@red.stonehenge.com> <20100829213459.ba11c3b8.freebsd@edvax.de> In-Reply-To: <20100829213459.ba11c3b8.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201008292108.10551.jmc-freebsd2@milibyte.co.uk> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: jmc-freebsd2@milibyte.co.uk X-SA-Exim-Scanned: No (on curlew.milibyte.co.uk); SAEximRunCond expanded to false Subject: Re: how do i scp .dotfiles?? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 20:08:13 -0000 On Sunday 29 August 2010, Polytropon wrote: > The "problem" (i. e. a convention) is that .* is not part of *, > which includes everything else, even "nothing", and the > form *.* (that looks like the DOS equivalent of "all files") > does seem to omit .*; the spaced form * .* would work as it > contains * (which does not contain .*) and .* (not in *). :-) The problem with using .* as a wildcard for hidden files is that it will include .. which is almost certainly not what you want. For example rm -r .* can be disastrous. A safer wildcard for hidden dotfiles and everything else could be .[^.]* * -- Mike Clarke