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 have a directory named Project.I have a control file which contains valid list of files.I would like list the files from directory Project which contains files other than listed in the control file.
Sample control file:
TEST
SEND
SFFFILE
CONTL
The directory contains followign... (15 Replies)
I am attempting to convert rewrite rules to Nginx, and since due to the mass amount of rewrites we must convert, I've been trying to write a script to help me on a specific part, easily.
So far I have this:
rewrite ^action/static/(+)/$ staticPage.php?pg=$1&%$query_string;
What I want done... (5 Replies)
Hi,
my desired output needs only that has *.pdf
ls -l *.pdf
error: arg list too long
so I have redirected ls -l > file.txt
therefore, I get the following details in the file
-rw-r--r-- 1 devusr devgrp 848015 Aug 11 15:13 0000795769.pdf
-rw-r--r-- 1 devusr devgrp ... (3 Replies)
I need regular expression for excluding specific range.
e.g. Input Data is
10.10.10.50
67.172.15.15
10.10.10.15
78.122.105.108
I would like to extract only 67.172.15.15 & 78.122.105.108.
I tried with something like /(^10.10.10)/ but it's not working.
Please help me on this (17 Replies)
I used to work in perl but I would like to try now bash. Here's my problem
I wanted to search for specific filename (ls -ltrh) on 3 directories.. Example
ls -ltrh | grep "string"
/dir1
/dir1/dir2
/dir1/dir2/dir3
I wanted to get the result to be copied on a different directory. Sample... (2 Replies)
Hello,
I want to print a number of lines of a file after a specific expression of a line.
I have this sed command but it prints only 1 line after the expression.
How could I adapt it to print for instance 10 lines after or 15 lines after ?
sed -n '/regexp/{n;p;}'
Thx & Regs,
Rany. (5 Replies)
I'm looking for a script which outputs the list of directories and sub directories from root level consisting of specific files. For instance I want shell script to list all the directories and subdirectories containing .txt files.:wall: (4 Replies)
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
I have to list the files of particular directory using file filter like find -name abc* something and if multiple file exist I also want time of each file up to seconds.
Currently we are getting time up to minutes in AIX is there any way I can get file last modification time up to seconds. (4 Replies)