09-30-2013
Thanks Krish
1st option may not be possible because if i rename the file, I will receive the same file again from sourece as they do ftp for 15 days of files.
2nd Option: i don't understand how do we identify processed and not processed files(code difficulty as i am not very good at Unix).
I've got one approach:
First i create file(FILE.ALL) with all the files
Second i find the difference between FILE.ALL and FILE.BACKUP and write into FILE.LIST
After processing all the files in FILE.LIST, i will append the list from FILE.LIST into FILE.BACKUP file.
seems so far so good, Now i need to remove the filenames from FILE.BACKUP which are older than 15 days.
Filename has date in it Eg:Filename_093013_xxxx.csv.
Could some one advise is this the good approach? and how do we remove the file name from FILE.BACKUP file by comparing dates?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
Does anyone know how to mark messages as unread either in Pine or from a Terminal or some such ?
Thanks,
James (1 Reply)
Discussion started by: Rylann
1 Replies
2. Shell Programming and Scripting
I need to find files that have the ending of .out and that are older than 20 days. However, I cannot use find as I do not want to search in the directories that are underneath the directory that I am searching in.
How can this be done?? Find returns files that I do not want. (2 Replies)
Discussion started by: halo98
2 Replies
3. Shell Programming and Scripting
Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same.
Thanks in advance.
Regards
Jatin Jain (10 Replies)
Discussion started by: jatin.jain
10 Replies
4. Shell Programming and Scripting
Hi all,
I use Conky monitor (Conky - Home) for my laptop and I needed a script to see the count of new messages on gmail/IMAP, then I made this small perl script
(I hope they can be useful to someone :))
gimap.pl
#!/usr/bin/perl
# gimap.pl by gxmsgx
# description: get the count of unread... (0 Replies)
Discussion started by: gxmsgx
0 Replies
5. Shell Programming and Scripting
what is the find to command to find the files created last 30 days (5 Replies)
Discussion started by: rajkumar_g
5 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have been having problem with pine for the past few weeks. I use email clinet Thunderbird to view my emails. Every time I open the thunderbird, all my emails were marked as unread. So, I logged into our email server to see what's wrong. even when I opened pine, all messages are labeled as... (0 Replies)
Discussion started by: veepine
0 Replies
7. UNIX for Dummies Questions & Answers
Does anyone have any idea how to see only unread (new) e-mails in the Alpine client when using IMAP?
I finally have a fast IMAP client, but don't want to go over all the e-mails I've already read through other clients...
Thanks in advance for any hints.
---------- Post updated at 01:21 PM... (0 Replies)
Discussion started by: JamesR404
0 Replies
8. UNIX for Dummies Questions & Answers
Hello all,
this is my first and probably not my last question around here. I do hope you can help or at least point me in the right direction.
My question is as follows, I need to find files and possible folders which are not owner = AAA group = BBB with a said location and all sub folders ... (7 Replies)
Discussion started by: kilobyter
7 Replies
9. Shell Programming and Scripting
I need to find a word '% Retail by State' in the folder /usr/sas/reports/RetailSalesTaxallocation.
When I tried like below,
-bash-4.1$ cd /usr/sas/reports/RetailSalesTaxallocation
-bash-4.1$ find ./ -name % Retail by State
find: paths must precede expression: Retail
Usage: find ... (10 Replies)
Discussion started by: Ram Kumar_BE
10 Replies
10. Shell Programming and Scripting
The problem is this one. I tar and gzip files on remote server
find . -ctime -1 | tar -cvf transfer_dmz_start_daily.tar *${Today}*.*;
Command
find . -ctime -1
Doesn't find files without extension
.csv .txt
I have to collect all files for current day, when the program... (1 Reply)
Discussion started by: digioleg54
1 Replies
LEARN ABOUT DEBIAN
nncheck
NNCHECK(1) General Commands Manual NNCHECK(1)
NAME
nncheck - check for unread articles
SYNOPSIS
nncheck [ -Q -r -t ] [ -f format ]
DESCRIPTION
nncheck will report if there are some articles on the system which you have not read.
Without options, nncheck will simply print a message reporting the number of unread articles with the following format:
There are 327 unread articles in 25 groups
and when there are no unread articles, the following message will be printed:
No News (is good news)
nncheck will exit with a value of 0 if there are unread articles, and 99 if there is no news (see the exception for the -r option.)
It is important to notice that even though unread articles have been reported by nncheck, the actual number of unread articles may be much
lower (or even zero) when nn is invoked to read the articles. This is because the calculation of the number of unread articles is only
based on recorded article number intervals. Invoking nn to read the articles may reveal that the articles have previously been read in
another news group, have been expired, or are killed using the auto-kill facility.
The following options are used to modify the amount and format of the output from nncheck:
-Q Quiet operation. No output is produced, only the exit status indicate whether there is unread news.
-t Print the name of each group with unread articles, and how many unread articles there are (not counting split digests!).
-r Output a single integer value specifying the number of unread articles, and exit with a 0 status (somebody told me this would be
useful).
-f format
Output the number of unread articles using the specified format. The format is a text that may contain the following %-escapes:
%-code resulting output
%u "uuu unread articles"
%g "ggg groups"
%i "is" if 1 unread article, else "are"
%U "uuu"
%G "ggg"
where uuu is the number of unread articles, and ggg is the number of groups with unread articles.
For example, the default output format is
"There %i %u in %g"
which I prefer to the following less perfect format:
"There are %U unread article(s) in %G group(s)"
FILES
~/.newsrc The record of read articles
$db/MASTER The database master index
SEE ALSO
nn(1), nngoback(1), nngrab(1), nngrep(1), nnpost(1), nntidy(1)
nnadmin(1M), nnusage(1M), nnmaster(1M)
AUTHOR
Kim F. Storm, Texas Instruments A/S, Denmark
E-mail: storm@texas.dk
4th Berkeley Distribution Release 6.6 NNCHECK(1)