Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: tlug: ls command
- To: tlug@example.com
- Subject: Re: tlug: ls command
- From: Michael Casinghino <michael@example.com>
- Date: Mon, 7 Dec 1998 13:58:59 +0900 (JST)
- Content-Type: TEXT/PLAIN; charset=US-ASCII
- In-Reply-To: <Pine.LNX.3.96LJ1.1b7.981207131439.4868D-100000@example.com>
- Reply-To: tlug@example.com
- Sender: owner-tlug@example.com
On Mon, 7 Dec 1998, Scott Stone wrote: > On Mon, 7 Dec 1998, Michael Casinghino wrote: > > > On Mon, 7 Dec 1998, Scott Stone wrote: > > > > > On Sun, 6 Dec 1998, Michael Casinghino wrote: > > > > > > > I want to get a recursive listing of a directory that with output like > > > > this: > > > > > > > > dir/ > > > > dir/sub1/ > > > > dir/sub1/file1.1 > > > > dir/sub1/file2.1 > > > > dir/sub2/ > > > > dir/sub2/file1.2 > > > > dir/sub2/file2.2 > > > > > > > > Basically, I want it to look like the output from a 'tar -u' command. I > > > > read the manpage for ls, but it doesn't look like it can do this. > > > > > > try: > > > > > > find dir/ > > > > The output differs in the subdirectory listing > > > > $ find dir/ > > ... > > dir/sub1 > > ... > > > > $ tar -tf dir.tar > > ... > > dir/sub1/ > > ... > > > > > > That extra slash is giving me grief. Should I try some other tar option? > > hmm, how about: > > for i in `find dir/`; do echo "$i/"; done; > > ?? Yes, that will put a slash at the end of all files, but I can do 2 searches, (-type d and -not -type d), to get the required result! Thanks! ------------------------------------------------------------------ Next Technical Meeting: 12 December, 12:30 at Temple Univ. Japan *NEW LOCATION* a map is available at http://www.tuj.ac.jp/maps.html Next Nomikai: 15 January 1999, 19:30 Tengu TokyoEkiMae 03-3275-3691 ------------------------------------------------------------------ more info: http://tlug.linux.or.jp Sponsor: PHT
- References:
- Re: tlug: ls command
- From: Scott Stone <sstone@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: tlug: ls command
- Next by Date: tlug: checking archive (was: ls command)
- Prev by thread: Re: tlug: ls command
- Next by thread: tlug: checking archive (was: ls command)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links