12-02-2011
I want to search for all the files for today ...
ls -l | perl -ne '/Dec\s+2 [0-9]{2}:[0-9]{2}/ && print $_'
works but I can not hard code Dec\s+2 everyday ...ideally it should take the date dynamically and show me files only for today.
---------- Post updated at 05:54 AM ---------- Previous update was at 05:52 AM ----------
FYI i am using SunOS
uname -v
Generic_122300-60
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to list names of only today's files OR say, files which are not older than 1 hour and copy them in 'list.txt' file. I know,
:ls > list.txt will list all the files. But, how to list today's files? Any help will be appriciated. (4 Replies)
Discussion started by: berlin_germany
4 Replies
2. UNIX for Dummies Questions & Answers
How to list all the files which are not generated today, and move all the above files to backup dir. (2 Replies)
Discussion started by: redlotus72
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Can any one tell the command to list all the files that are created as of today from all the directories?
The Command "ls -ltR" is listing all the files.
But I want the list of files that has been created as of today along with the directory path:)
Thank you in advance.:)
Regards,... (4 Replies)
Discussion started by: meetusha.b
4 Replies
4. Shell Programming and Scripting
Hello,
fjalkdsjfkldsajflkajdskl (3 Replies)
Discussion started by: pmeesara
3 Replies
5. Shell Programming and Scripting
Is there a tool that can diff a directory and generate a change list of files in that directory based on a previous snapshot on the directory?
For example
/etc/a.txt:changed
/etc/b.txt:removed
/etc/c.txt:added
Thanks! (1 Reply)
Discussion started by: overmindxp
1 Replies
6. Shell Programming and Scripting
Hi
I am looking for the correct syntax to find all files in the current directory without listing sub-directoris. I was using the following command, but it still returns subdirectoris and files inside them:
$ ls -laR | grep -v ^./
Any idea? Thanks
PS I am in ksh88 (4 Replies)
Discussion started by: aoussenko
4 Replies
7. UNIX for Dummies Questions & Answers
I am very new to unix as well as shell scripting.
I have to write a script for the following requirement. In have to list all the files in directory and its sub directories along with file path and size of the file
Please help me in this regard and many thanks in advance. (3 Replies)
Discussion started by: nmakkena
3 Replies
8. Shell Programming and Scripting
Hi all,
I'd very grateful for some help with the following:
I have a directory with several subdirectories with files in them. All files are named different, even between different subdirectories. I also have a list with some of those file names in a txt file (without the path, just the file... (5 Replies)
Discussion started by: foracoffee
5 Replies
9. Linux
Hi, ALL
thanks in advance,
i listed all files using this command
ls -ltr $(date +%Y%m%d)*.xmlbut i would like to exclude the last one created ;
Best regard
MEROUAN
Use code tags, thanks. (4 Replies)
Discussion started by: merouan
4 Replies
10. Shell Programming and Scripting
bash or c-shell On Solaris 10
I need a command that will list the files of a directory, and grep each of those filenames out of a static text file, and then only echo field 2 of the static text file.
Something like this:
#> ls -1 /home/dir/ | each filename grep $filename static.txt |awk... (4 Replies)
Discussion started by: ajp7701
4 Replies
LEARN ABOUT CENTOS
unsquashfs
UNSQUASHFS(1) uncompress squashfs filesystems UNSQUASHFS(1)
NAME
mksquashfs - tool to uncompress squashfs filesystems
SYNOPSIS
unsquashfs [OPTIONS] FILESYSTEM [directories or files to extract]
DESCRIPTION
Squashfs is a highly compressed read-only filesystem for Linux. It uses zlib compression to compress both files, inodes and directories.
Inodes in the system are very small and all blocks are packed to minimize data overhead. Block sizes greater than 4K are supported up to a
maximum of 64K.
Squashfs is intended for general read-only filesystem use, for archival use (i.e. in cases where a .tar.gz file may be used), and in con-
strained block device/memory systems (e.g. embedded systems) where low overhead is needed.
OPTIONS
-v, -version
print version, licence and copyright information.
-d PATHNAME, -dest PATHNAME
unsquash to PATHNAME, default "squashfs-root".
-n, -no-progress
don't display the progress bar.
-no, -no-xattrs
don't extract xattrs in file system.
-x, -xattrs
extract xattrs in file system (default).
-p NUMBER, -processors NUMBER
use NUMBER processors. By default will use number of processors available.
-i, -info
print files as they are unsquashed.
-li, -linfo
print files as they are unsquashed with file attributes (like ls -l output).
-l, -ls
list filesystem, but don't unsquash.
-ll, -lls
list filesystem with file attributes (like ls -l output), but don't unsquash.
-f, -force
if file already exists then overwrite.
-s, -stat
display filesystem superblock information.
-e EXTRACT_FILE, -ef EXTRACT_FILE
list of directories or files to extract. One per line.
-da SIZE, -data-queue SIZE
Set data queue to SIZE Mbytes. Default 256 Mbytes.
-fr SIZE, -frag-queue SIZE
Set fragment queue to SIZE Mbytes. Default 256 Mbytes.
-r, -regex
treat extract names as POSIX regular expressions rather than use the default shell wildcard expansion (globbing).
Decompressors available
gzip
lzo
xz
SEE ALSO
mksquashfs(1)
HOMEPAGE
More information about unsquashfs and the squashfs filesystem can be found at <http://squashfs.sourceforge.net/>.
AUTHOR
squashfs was written by Phillip Lougher <plougher@users.sourceforge.net>.
This manual page was written by Daniel Baumann <daniel.baumann@progress-technologies.net>.
4.2 2012-06-30 UNSQUASHFS(1)