08-21-2009
capture specific listing in the ls -l
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 848492 Aug 11 15:13 0000795775.pdf
-rw-r--r-- 1 devusr devgrp 848531 Aug 11 15:14 0000795781.pdf
-rw-r--r-- 1 devusr devgrp 847842 Aug 11 15:14 0000795783.pdf
-rw-r--r-- 1 devusr devgrp 848552 Aug 11 15:14 0000795791.pdf
-rwxr-xr-x 1 devusr devgrp 88417741 Aug 21 11:42 file1.zip
-rwxr-xr-x 1 devusr devgrp 88421718 Aug 21 11:42 file2.zip
-rwxr-xr-x 1 devusr devgrp 88425125 Aug 21 11:42 file3.zip
-rw-r----- 1 devusr devgrp 1 Aug 20 13:57 samp.txt
drwxrw-rw- 2 devusr devgrp 256 Aug 1 22:02 tmp
drwxrw-rw- 2 devusr devgrp 256 Aug 17 15:44 ecs
Can I get only the lines with *.pdf to a different file
Pls advice!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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. Shell Programming and Scripting
using sed to replace a specific string on a specific line number using variables
this is where i am at
grep -v WARNING output | grep -v spawn | grep -v Passphrase | grep -v Authentication | grep -v '/sbin/tfadmin netguard -C'| grep -v 'NETWORK>' >> output.clean
grep -n Destination... (2 Replies)
Discussion started by: todd.cutting
2 Replies
3. Shell Programming and Scripting
Hi,
I have the following text file:
8 T1mapping_flip02 ok 128 108 30 1 665000-000008-000001.dcm
9 T1mapping_flip05 ok 128 108 30 1 665000-000009-000001.dcm
10 T1mapping_flip10 ok 128 108 30 1 665000-000010-000001.dcm
11 T1mapping_flip15 ok 128 108 30... (2 Replies)
Discussion started by: goodbenito
2 Replies
4. Shell Programming and Scripting
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)
Discussion started by: lhareigh890
2 Replies
5. Shell Programming and Scripting
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)
Discussion started by: super210
4 Replies
6. UNIX for Dummies Questions & Answers
I am running Ubuntu 11.10
I have the following files.
geo2503r05690585.html
geo2503r06020612.html
geo2503r06250641.html
geo2503r06490658.html
geo2503r06830686.html
geo2503r05860601.html
geo2503r06130624.html
geo2503r06420648.html
geo2503r06590682.html ... (4 Replies)
Discussion started by: kristinu
4 Replies
7. Shell Programming and Scripting
Dear Friends,
I have a file
a.txt
1|3478.12|487|4578.04|4505.5478|rhfj|rehtire|rhj
I want to get the field numbers which have decimal values
output:
Fields: 2,4,5
Plz help (6 Replies)
Discussion started by: i150371485
6 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
Could you please help to resolve my following issues:
Problem Description:
Suppose my user name is "MI90".
i.e. $USER = MI90
when i run below command, i get all the processes running on the system containing name MQ.
ps -ef | grep MQ
But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies
9. AIX
// AIX 6.1 TL8
Please advise on how to capture whoami log or the user and time info into a log file (i.e. /tmp/cmdcapture.log) whenever users are executing a certain command(s) so that I can keep the single log history (for all users) of who did what. The command(s) I need to monitor are a... (3 Replies)
Discussion started by: Daniel Gate
3 Replies
10. Shell Programming and Scripting
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)
Discussion started by: Showdown
5 Replies
LEARN ABOUT DEBIAN
image::exiftool::m2ts
Image::ExifTool::M2TS(3pm) User Contributed Perl Documentation Image::ExifTool::M2TS(3pm)
NAME
Image::ExifTool::M2TS - Read M2TS (AVCHD) meta information
SYNOPSIS
This module is used by Image::ExifTool
DESCRIPTION
This module contains routines required by Image::ExifTool to extract information from MPEG-2 transport streams, such as those used by AVCHD
video.
AUTHOR
Copyright 2003-2011, Phil Harvey (phil at owl.phy.queensu.ca)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
REFERENCES
http://neuron2.net/library/mpeg2/iso13818-1.pdf <http://neuron2.net/library/mpeg2/iso13818-1.pdf>
http://www.blu-raydisc.com/Assets/Downloadablefile/BD-RE_Part3_V2.1_WhitePaper_080406-15271.pdf <http://www.blu-
raydisc.com/Assets/Downloadablefile/BD-RE_Part3_V2.1_WhitePaper_080406-15271.pdf>
http://www.videohelp.com/forum/archive/reading-avchd-playlist-files-bdmv-playlist-mpl-t358888.html
<http://www.videohelp.com/forum/archive/reading-avchd-playlist-files-bdmv-playlist-mpl-t358888.html>
<http://en.wikipedia.org/wiki/MPEG_transport_stream>
<http://www.dunod.com/documents/9782100493463/49346_DVB.pdf>
<http://trac.handbrake.fr/browser/trunk/libhb/stream.c>
<http://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=04560141>
<http://www.w6rz.net/xport.zip>
SEE ALSO
"M2TS Tags" in Image::ExifTool::TagNames, Image::ExifTool(3pm)
perl v5.12.4 2011-05-31 Image::ExifTool::M2TS(3pm)