Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Listing all files in all subdirectories Post 302163582 by kuciauskas on Friday 1st of February 2008 01:29:05 PM
Old 02-01-2008
Bug Listing all files in all subdirectories

From the main directory, I have multiple layers of subdirectories and imbedded files (jpg's) that I would like to have a quiklook. Is there a way of listing out the contents of all of the subdirectories and files with a one-line command?

Thx...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Recursive directory listing without listing files

Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories. The following command also shows the files but I only want to see the directories. ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies

2. UNIX for Dummies Questions & Answers

Searching files within subdirectories

I need to concatenate files that are inside a directory and subdirectories. Those files end with .c Can anyone help me I am using comand 9find) and (cat) but they don't work together.:confused: (1 Reply)
Discussion started by: jalvarez
1 Replies

3. Shell Programming and Scripting

Listing subdirectories and files

hi, i want to display all subdirectory files with directory name. I am using ls -Rl this will gives only filenames with long listing. But i want the filename padded with directory name. example : -rw-r--r-- 1 sidfor sigbd 1713 May 24 09:33... (1 Reply)
Discussion started by: senthil_is
1 Replies

4. Shell Programming and Scripting

Listing directories and subdirectories

How can list the directories and the subdirectories in a folder. It is possible with a single UNIX command. For example i have a folder named "archive" and another folder named "0808" and then multiple folders are there ... Can i list all the directories and subdirectories in the folder... (6 Replies)
Discussion started by: karansachdeva
6 Replies

5. UNIX for Dummies Questions & Answers

read files from subdirectories

hello there the problem i got: i need to list .rrd files in each sub-directory from the parent directory, then create .xml files for each rrd files, the xml file should be in the same subdirectoryas rrd file. i have tried ls |awk '{print... (3 Replies)
Discussion started by: binbintriangel
3 Replies

6. UNIX for Dummies Questions & Answers

list the files but exclude the files in subdirectories

If I execute the command "ls -l /export/home/abcde/dev/proj/code/* | awk -F' ' '{print $9}' | cut -d'/' -f6-8" it will list all the files in /export/home/abcde/dev/proj/code/ directory as well as the files in subdirectories also proj/code/test.sh proj/code/test1.c proj/code/unix... (8 Replies)
Discussion started by: shyjuezy
8 Replies

7. UNIX for Dummies Questions & Answers

search for files in subdirectories

Hi! I want to find files located in subdirectories. I have tried ls -R | grep myfile but this won't tell me where the file is, only that it is there. Any one have a better idea? Thanks, --Euclid (3 Replies)
Discussion started by: euclid3628800
3 Replies

8. Shell Programming and Scripting

Bash script deleting my files, and editing files in subdirectories question

#!/bin/bash # name=$1 type=$2 number=1 for file in ./** do if then filenumber=00$number elif then filenumber=0$number fi tempname="$name""$filenumber"."$type" if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies

9. Shell Programming and Scripting

Unzip all the files with subdirectories present and append a part of string from the main .zip files

Hi frnds, My requirement is I have a zip file with name say eg: test_ABC_UH_ccde2a_awdeaea_20150422.zip within that there are subdirectories on each directory we again have .zip files and in that we have files like mama20150422.gz and so on. Iam in need of a bash script so that it unzips... (0 Replies)
Discussion started by: Ravi Kishore
0 Replies

10. Shell Programming and Scripting

Append string to all the files inside a directory excluding subdirectories and .zip files

Hii, Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories. Eg. file1: test1.log file2: test2.log file3 test.zip After running the script file1: string_test1.log file2: string_test2.log file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
MADISON-LITE(1)                                           Debian General Commands Manual                                           MADISON-LITE(1)

NAME
madison-lite -- display versions of Debian packages in an archive SYNOPSIS
madison-lite [--config-file file] [--mirror directory] [--nocache] [--update] [-S] [-r] [-a architecture[,...]] [-c component[,...]] [-s suite[,...]] package [...] DESCRIPTION
madison-lite inspects a local Debian package archive and displays the versions of the given packages found in each suite (for example, stable, testing, or unstable) in a brief but easily human-readable form. It aims to be a drop-in replacement for the madison utility (since renamed to dak ls), from the dak archive management suite that runs on the central Debian archive systems, but one which can run without access to the archive's SQL database. The following options are available: --config-file file Read configuration from file, and ignore the system configuration file (see CONFIGURATION below). --mirror directory Quick configuration: use directory as the top level of the Debian mirror. --nocache Normally, parts of the Packages and Sources files in the archive are cached in ~/.madison-lite/cache for speed. This option disables that behaviour. --update Force caches of Packages and Sources files to be updated. -S, --source-and-binary Interpret package as a source package name, and display versions of any associated binary packages as well as of the source package. -r, --regex Interpret package as a Perl regular expression anchored at the start of the package name rather than as an exact name. Make sure to quote any shell metacharacters such as '*' or '?' if necessary. -a, --architecture architecture[,...] Display only entries for packages built for these architectures. Separate multiple architectures with commas or spaces. -c, --component component[,...] Display only entries in the given components. Separate multiple components with commas or spaces. -s, --suite suite[,...] Display only entries in the given suites. Separate multiple suites with commas or spaces. CONFIGURATION
madison-lite reads configuration information from the file named by --config-file, or, if that is not supplied, from the first of ~/.madison-lite/config and /etc/madison-lite/config that exists. The following configuration directives are recognized: mirror directory Set the top-level directory of the local Debian mirror. Relative directories in the suite directive are interpreted relative to this directory. Defaults to the current directory. suite name directory [component [...]] Defines the suite name based at directory, containing the specified components (defaulting to all subdirectories of directory). Output is displayed following the order of suite directives in the configuration file. If no suite directives are present, then every subdi- rectory of the dists directory under mirror is treated as a suite, with all of their subdirectories as components. The Debian archive is structured such that the subdirectories of each suite directory identify components (such as main). Each of those in turn has subdirectories for each architecture (binary-i386, and so on), each of which contains any or all of Packages, Packages.gz, and Packages.bz2 files listing binary packages; it also has a subdirectory called source which contains any or all of Sources, Sources.gz, and Sources.bz2 files listing source packages. The configuration file may contain comment lines, which start with a '#' character. EXAMPLES
Show versions of the coreutils package: $ madison-lite coreutils Show versions of all binary packages on powerpc produced by the glibc source package: $ madison-lite -S -a powerpc glibc Show versions of all packages in the unstable suite whose names begin with 'man': $ madison-lite -s unstable -r 'man.*' An example configuration file for a simple local mirror: mirror /mirror/debian suite unstable dists/unstable main suite unstable-non-US non-US/dists/unstable non-US/main SEE ALSO
dpkg-scanpackages(8), dpkg-scansources(8), apt-ftparchive(1) AUTHORS
madison-lite was written by Colin Watson <cjwatson@debian.org>. The interface mirrors that of madison (since renamed to dak ls), written by James Troup. Debian August 1, 2007 Debian
All times are GMT -4. The time now is 04:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy