Thanks CarloM this is working fine ...will it work at my OS always ...irrespective of if there exists 2009 , 2008 files at dir ...thanks again ,..can u please explain cut -c5-10`.*:" part
Quote:
Originally Posted by CarloM
Works for me on a SunOS 5.9 system
---------- Post updated at 06:16 AM ---------- Previous update was at 06:09 AM ----------
CarloM,
One more help required ..if there is no file found for today then I would like to display
"No files for today" ...how to check that condition...
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)
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)
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)
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)
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)
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)
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)
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 BSD
calendar
CALENDAR(1) General Commands Manual CALENDAR(1)NAME
calendar - reminder service
SYNOPSIS
calendar [ - ]
DESCRIPTION
Calendar consults the file `calendar' in the current directory and prints out lines that contain today's or tomorrow's date anywhere in the
line. Most reasonable month-day dates such as `Dec. 7,' `december 7,' `12/7,' etc., are recognized, but not `7 December' or `7/12'. If
you give the month as ``*'' with a date, i.e. ``* 1'', that day in any month will do. On weekends `tomorrow' extends through Monday.
When an argument is present, calendar does its job for every user who has a file `calendar' in his login directory and sends him any posi-
tive results by mail(1). Normally this is done daily in the wee hours under control of cron(8).
The file `calendar' is first run through the ``C'' preprocessor, /lib/cpp, to include any other calendar files specified with the usual
``#include'' syntax. Included calendars will usually be shared by all users, maintained and documented by the local administration.
FILES
calendar
/usr/libexec/calendar to figure out today's and tomorrow's dates
/etc/passwd
/tmp/cal*
/lib/cpp, egrep, sed, mail as subprocesses
SEE ALSO at(1), cron(8), mail(1)BUGS
Calendar's extended idea of `tomorrow' doesn't account for holidays.
7th Edition October 21, 1996 CALENDAR(1)