Sponsored Content
Full Discussion: ls -lR
Top Forums Shell Programming and Scripting ls -lR Post 302156105 by DNAx86 on Monday 7th of January 2008 08:35:51 AM
Old 01-07-2008
Question ls -lR

I have to create a script, in this script I have to list the files of a directory and of their subdirectories and then do other things...

So I thought to use:
ls -lR

But How can i remove the rows that I don't use?

For exemple:
/home/mirko/SetUpLinux3:
total 8
-rw-r--r-- 1 mirko mirko 1266 2007-12-25 18:59 C
-rw-r--r-- 1 mirko mirko 18 2007-12-16 00:03 Programmi Linux


I don't want:
/home/mirko/SetUpLinux3:
total 8
 
RESTORE-TRASH(1)					      General Commands Manual						  RESTORE-TRASH(1)

NAME
restore-trash - Restore for Command line trash utility. SYNOPSIS
restore-trash DESCRIPTION
Use for restore a trashed file or directory, in the original path. This command is a part of trash-cli package that provides a command line interface trashcan utility compliant with the FreeDesktop.org Trash Specification. It remembers the name, original path, deletion date, and permissions of each trashed file. EXAMPLES
$ restore-trash 0 2007-08-30 12:36:00 /home/andrea/foo 1 2007-08-30 12:39:41 /home/andrea/bar 2 2007-08-30 12:39:41 /home/andrea/bar2 3 2007-08-30 12:39:41 /home/andrea/foo2 4 2007-08-30 12:39:41 /home/andrea/foo What file to restore [0..4]: 4 $ ls foo foo BUGS
Report bugs to http://code.google.com/p/trash-cli/issues AUTHORS
Trash was written by Andrea Francia <andreafrancia@users.sourceforge.net> and Einar Orn Olason <eoo@hi.is>. This manual page was written by Steve Stalcup <vorian@ubuntu.com>. Changes made by Massimo Cavalleri <submax@tiscalinet.it>. SEE ALSO
trash-put(1), trash-list(1), trash-empty(1), and the FreeDesktop.org Trash Specification at http://www.ramendik.ru/docs/trashspec.html. Both are released under the GNU General Public License, version 2 or later. RESTORE-TRASH(1)
All times are GMT -4. The time now is 12:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy