02-20-2006
listing files that does not belong to current date
How do we list all the file names in a directory that does not belong to current date.
Last edited by esh.mohan; 02-20-2006 at 10:42 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I would like to a long list of files up to a given date. I've tried:
ls -al > filelist
but this command gives me all the files. I've also have tried the find command:
find . -mtime -10 -type f -print > filelist
This gives me information on active file within the past 10 days and... (2 Replies)
Discussion started by: rlh
2 Replies
2. UNIX for Dummies Questions & Answers
Hai,
i have one directory contains 100 files .each file name like xvb_dateformat.i want find which file names are xvb_lessthan or equal to currentdate.
any one give the solution.
regards (4 Replies)
Discussion started by: mallikarjuna
4 Replies
3. Shell Programming and Scripting
How do we list all the file names in a directory that does not belong to current date. (1 Reply)
Discussion started by: esh.mohan
1 Replies
4. Shell Programming and Scripting
Hi,
I have a fixed 4 files in each different directory. The total 17 directories are there each one having 4 files inside it. I need rename all of them with current date. The files formates will be as below:
Folder1:
abc_NOR_xyz_ddmmyyyy.txt
abc_NOR_ghij_ddmmyyyy.txt
Folder2:... (5 Replies)
Discussion started by: rjanardhan83
5 Replies
5. Shell Programming and Scripting
I'm trying to list files, first by size and I'm using something like this
ls -l|awk '{print $5,$6,$7,$8,$9|"sort -nr"}'|more
Now I'd like to just do the same listing but only for files with the year 2009 in the $8 field or even anything less than 2011. (5 Replies)
Discussion started by: NycUnxer
5 Replies
6. Shell Programming and Scripting
i have directory /abcd and i want to copy all today date files in /xyz directory.
i am able to see the files by using below command but not able to understand copy.
find . -mtime -1 -type f -exec ls -l {} \; (2 Replies)
Discussion started by: learnbash
2 Replies
7. Debian
hi all,
i need to find same files in my directory that looks like this format
20121017145949639.xml (YYYYMMDD*.xml)
thanks for help (3 Replies)
Discussion started by: merouan
3 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. UNIX for Beginners Questions & Answers
I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and
I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server
$ cat temp.txt
RTG*888*TD8*20180201~... (1 Reply)
Discussion started by: Shankar455
1 Replies
10. UNIX for Beginners Questions & Answers
Hello All,
we what we call a parameter file (.txt) where my application read dynamic values when the job is triggered, one of such values are below:
abc.txt
------------------
line1
line2
line3
$$EDWS_DATE_INSERT=08-27-2019
line4
$$EDWS_PREV_DATE_INSERT=08-26-2019
I am trying to... (1 Reply)
Discussion started by: pradeepp
1 Replies
NEWS(1) USER COMMANDS NEWS(1)
NAME
news - display system news
SYNOPSIS
news [-adDeflnpvxs] [[article1] [article2] ..]
DESCRIPTION
The news command keeps you informed of news concerning the system. Each news item is contained in a separate file in the /var/lib/sysnews
directory. Anyone having write permission to this directory can create a news file.
If you run the news command without any flags, it displays every unread file in the /var/lib/sysnews directory.
Each file is preceded by an appropriate header. To avoid reporting old news, the news command stores a currency time. The news command con-
siders your currency time to be the date the $HOME/.news_time file was last modified. Each time you read the news, the modification time of
this file changes to that of the reading. Only news item files posted after this time are considered unread.
OPTIONS
-a, --all
Display all news, also the already read news.
-d, --datestamp
Add a date stamp to each article name printed. this can only be used with the -nl flags.
-D, --datefmt <fmt>
Specify a date format, see the strftime(3) man page for more details. the default format is (%b %d %Y)
-f, --newsdir <dir>
Read news from an alternate newsdir.
-l, --oneperline
One article name per line.
-n, --names
Only show the names of news articles.
-p, --page
Pipe articles through $PAGER or more(1) if the $PAGER environment variable is not set.
-s, --articles
Reports the number of news articles.
MAINTAINER OPTIONS
-e, --expire #
Expire news older than # days.
-x, --exclude a,b,c
A comma separated list of articles which may not be expired. if a file named .noexpire exists in the /var/lib/sysnews direcory,
filenames are read from it also. names in this file may be comma separated, and/or one per line.
AUTHOR
Charles, <int@link.xs4all.nl>
Linux 18 January 1995 NEWS(1)