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)
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)
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)
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)
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)
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)
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)
#!/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)
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)
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
LEARN ABOUT FREEBSD
catman
CATMAN(1) BSD General Commands Manual CATMAN(1)NAME
catman -- preformat man pages
SYNOPSIS
catman [-fLnrv] [directories ...]
DESCRIPTION
The catman utility preformats all the man pages in directories using the nroff -man command. Directories may be separated by colons instead
of spaces. If no directories are specified, the contents of the MANPATH environment variable is used, or if that is not set, the default
directory /usr/share/man is processed.
The options are as follows:
-f Force all man pages to be reformatted even if the corresponding cat page is newer.
-L Process only localized subdirectories corresponding to the locale specified in the standard environment variables.
-n Print out what would be done instead of performing any formatting.
-r Scan for and remove ``junk'' files that are neither man pages nor their corresponding formatted cat pages.
-v Cause catman to be more verbose about what it is doing.
ENVIRONMENT
LC_ALL, LC_CTYPE, LANG
These variables control what subdirectories will be processed if the -L option is used.
MACHINE If set, overrides the current machine type when searching for machine specific man page subdirectories.
MACHINE_ARCH
If set, overrides the current architecture when searching for architecture specific man page subdirectories.
MANPATH Determines the set of directories to be processed if none are given on the command line.
FILES
/usr/share/man Default directory to process if the MANPATH environment variable is not set.
EXIT STATUS
The catman utility exits 0 on success, and >0 if an error occurs.
SEE ALSO makewhatis(1), man(1), nroff(1)HISTORY
A previous version of the catman command appeared in FreeBSD 2.1.
AUTHORS
John Rochester
BSD December 3, 2005 BSD