06-27-2011
It is easy to try, if the sample results are posted.. Any way, have u tried with "grep" command???
In my PC, time zone is "Jun 27 2011"
ls -lrt | grep -i "Jun 27 2011"
Lists todays files....
This User Gave Thanks to divya bandipotu For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all:
I am new to this board and UNIX programming so please forgive if I don't explain something correctly.
I am trying to write a script to keep track of our links, we link one program written for Client A to Client B's directory.
What we want to do is to keep track of our linked programs... (1 Reply)
Discussion started by: Smurtzy
1 Replies
2. Shell Programming and Scripting
i want to delete files that are one day old
condition is files should be of current month only ie if iam running script on 1 march it should not delete files of 28 feb(29 if leap year :-)}
any modifications to
find $DIR -type f -atime +1 -exec rm -f{}\; (4 Replies)
Discussion started by: maverick
4 Replies
3. UNIX for Dummies Questions & Answers
I can't manage to list all files that are not directories from current directory. (2 Replies)
Discussion started by: beni22sof
2 Replies
4. Shell Programming and Scripting
i am trying to write a program, that will list .txt files and .png files.
it will ask the user what type of files do they want to list! so if the user inputs txt files.. how would you list all the .txt files in the current directory (the directory the program is running)!!
thanks (1 Reply)
Discussion started by: bshell_1214
1 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I have to work on a korn shell script to pick up only the current day files dropped on the remote server (using ftp).
The file do not have daytimestamp on it. It has to be based on server time (AIX)
The file naming convention is "test_file.txt"
When I log in into the ftp account... (15 Replies)
Discussion started by: pavan_test
15 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day.
i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
Discussion started by: dsfreddie
2 Replies
7. UNIX for Dummies Questions & Answers
I am using KSH.
d=date | nawk '{ print $2,$3-1}'
ls -lrt SystemOut* | nawk '/d/{print $NF}'
I am trying to list the files of previous day but it doesn't seem to be working and i am also not getting an error.
result is blank.Need help. (11 Replies)
Discussion started by: vagar11
11 Replies
8. Shell Programming and Scripting
find list of files modified for a given day ?
if i have 10 files in my directory, i have modified only 5 ... how to display only modified files ? (1 Reply)
Discussion started by: only4satish
1 Replies
9. UNIX for Dummies Questions & Answers
i want to save current day file daily
for this is am using below command.
cp -p $(ls -lrt | grep "Apr 15" | awk '{print $9}'
in order to script this part, i am saving date output in a file using below command
date | awk '{print $2,$3}' >>t1
thru below command i want to list the file of... (7 Replies)
Discussion started by: scriptor
7 Replies
10. UNIX for Beginners Questions & Answers
What I know so far:
ls -A will list all files except those starting with a dot
ls -d will list all directories
ls -m will separate contents by commas
For getting crtimes use:
stat filename will give me the inode number
or
ls -i filename will give... (13 Replies)
Discussion started by: chstewar
13 Replies
LEARN ABOUT CENTOS
xzfgrep
XZGREP(1) XZ Utils XZGREP(1)
NAME
xzgrep - search compressed files for a regular expression
SYNOPSIS
xzgrep [grep_options] [-e] pattern file...
xzegrep ...
xzfgrep ...
lzgrep ...
lzegrep ...
lzfgrep ...
DESCRIPTION
xzgrep invokes grep(1) on files which may be either uncompressed or compressed with xz(1), lzma(1), gzip(1), bzip2(1), or lzop(1). All
options specified are passed directly to grep(1).
If no file is specified, then standard input is decompressed if necessary and fed to grep(1). When reading from standard input, gzip(1),
bzip2(1), and lzop(1) compressed files are not supported.
If xzgrep is invoked as xzegrep or xzfgrep then egrep(1) or fgrep(1) is used instead of grep(1). The same applies to names lzgrep, lze-
grep, and lzfgrep, which are provided for backward compatibility with LZMA Utils.
ENVIRONMENT
GREP If the GREP environment variable is set, xzgrep uses it instead of grep(1), egrep(1), or fgrep(1).
SEE ALSO
grep(1), xz(1), gzip(1), bzip2(1), lzop(1), zgrep(1)
Tukaani 2011-03-19 XZGREP(1)