Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Recreating a directory structure and indicating a files presence
Date: Thu, 20 Sep 2012 14:50:30
Message-Id: 20120920154823.5ae5f127@hactar.digimed.co.uk
In Reply to: Re: [gentoo-user] Recreating a directory structure and indicating a files presence by Alan McKinnon
1 On Thu, 20 Sep 2012 16:13:08 +0200, Alan McKinnon wrote:
2
3 > On the archive:
4 >
5 > find /root/of/dir/structure -type d > dirs.txt
6 > find /root/of/dir/structure -type f > files.txt
7
8 This will add '/root/of/dir/structure' to the start of each path. would
9 it be better to do?
10
11 cd /root/of/dir/structure
12 find -type d > ../dirs.txt
13 find -type f > ../files.txt
14
15
16 --
17 Neil Bothwick
18
19 All generalizations are false.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies