Sponsored Content
Top Forums Shell Programming and Scripting How to backup latest date files? Post 302459505 by Chubler_XL on Monday 4th of October 2010 09:59:03 PM
Old 10-04-2010
for files in dir but not in listfile use:
Code:
 ( cd dir ; ls ) | fgrep -vf listfile

For files in listfile but not in dir use:
Code:
 fgrep -v "$( cd dir; ls )" listfile

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copying files with the latest date

Hi All, I have a situation where I need to copy the files having the latest date. For example I have a file by name bas100e1_jun05. I need to copy it to bas100e1. But when a file by name bas100e1_jul05 is put in the same directory the script should copy the file having the latest month which... (34 Replies)
Discussion started by: shashi_kiran_v
34 Replies

2. Shell Programming and Scripting

Loop through files in dir, omit file with latest date

I want to loop through files in a directory but omit the file with the latest date in my list of files. How would I accomplish this? Thanks (2 Replies)
Discussion started by: stringzz
2 Replies

3. Shell Programming and Scripting

Backup files per Date String

Guys, I've got a quick logic question. I'm pretty savvy when it comes to shell scripting, however, I'm at a loss when it comes to writing a simple shell script to backup only certain files out of the month. I have a directory, for example, /data/backups/websites/domain. In each "domain"... (5 Replies)
Discussion started by: drewrockshard
5 Replies

4. Shell Programming and Scripting

backup of files for a specific date

I want to write script for backing up archive logs files for specific date. please give me idea for that. (2 Replies)
Discussion started by: akm9999
2 Replies

5. Shell Programming and Scripting

shell script to find latest date and time of the files

Hi everyone, Please help:) I have a list of 1000 different files which comes daily to the directory.Some of the files are not coming to the directory now. I need to write a shell script to find the latest date and time of the files they came to the directory. The files should be unique.... (1 Reply)
Discussion started by: karthicss
1 Replies

6. Filesystems, Disks and Memory

backup of files for a specific date

In Linux Advance server I want to write one script for backing up files for a specific date like 24/07/2008. (3 Replies)
Discussion started by: akm9999
3 Replies

7. UNIX for Dummies Questions & Answers

get the latest file by reading the date in the filename.

Hi, I grep for a pattern in a list of files. "grep -i -l $pattern *.datx*" it may give me n number of files. say for eg, it gives me 2 files. lock_eicu_20071228_00000000.dat_20071228_05343100 lock_eicu_20080501_00000000.dat_20080501_05343900 out of these 2 files I need to get the... (7 Replies)
Discussion started by: prsshini
7 Replies

8. Shell Programming and Scripting

grep latest file based on date.

hi all, not sure if this has been posted b4 but i try to search but not valid. this is my question: when i do a ls -ltr there will be a list generated as follows: -rw-r--r-- 1 root sys 923260 Jan 10 04:38 FilePolling.41025.083TL021.xml -rw-r--r-- 1 root sys 1761337 Jan 10 04:40... (12 Replies)
Discussion started by: lweegp
12 Replies

9. UNIX for Dummies Questions & Answers

Selecting the file of latest Date

Hi Folks, I have one query that there is a folder in which daily several logs files are getting created , I reached to that location through putty but what I observer that 10 files of different date are been created with same name , what I need to see is the latest file ...let say the location is ... (5 Replies)
Discussion started by: KAREENA18
5 Replies

10. Shell Programming and Scripting

Find latest date in folder

HI I have folder in home dir. /home/kpp/07222013 /home/kpp/07212013 /home/kpp/07202013 Output :-- /home/kpp/07222013 Just find latest date (5 Replies)
Discussion started by: pareshkp
5 Replies
avra(1) 							Atmel AVR Assembler							   avra(1)

NAME
avra - Assembler for the Atmel AVR microcontroller family SYNOPSIS
avra [-f] [O|M|I|G] output file type [-o outfile] output file name [-l listfile] generate list file [-m mapfile] generate map file [--define symbol[=value]] [--includedir dir] [-listmac] [--max_errors number] [--devices] [--version] [-h] [--help] general help infile DESCRIPTION
AVRA is an assembler for Atmel AVR microcontrollers, and it is almost compatible with Atmel's own assembler AVRASM32. The differences between the two are: Support for some extra preprocessor directives. includes: .define, .undef, .ifdef, .ifndef, .if, .else, .endif, .elif, .warning Not all command line options are supported. Specifying an eeprom file (-e) is not supported. All eeprom data is put out into a file called program.eep.hex and always Intel hex format. Other hex file formats than Intel are currently not supported. Forward references are not supported. Like in C, you have to define everything before you are using it, excepting labels. This makes sure, that directives like .ifdef and .undef are working properly. If you are familiar with the C programming language, you should get easily into AVRA. See chapter "Pro- gramming techniques" for more information about how to write proper code. Enhanced macro support. AVRA has some new features for writing flexible macros. This should increase the ability to reuse code e.g. build your own library. Debugging support. AVRA creates a coff file everytime the assembly was sucessful. This file allows AVR Studio or any coff compatible debugger to simu- late or emulate the program. Meta tags for assembly time. This helps you tracking versions of your software and can also be used to generate customer specific serial numbers. OPTIONS
Several option can be given after one '-', but if an option requires an argument; the argument must be given after that option. --listfile, -l Create list file --mapfile, -m Create map file --define, -D Define symbol. --includedir, -I Additional include dirs. --listmac List macro expansion in listfile. --max_errors Maximum number of errors before exit (default: 10) --devices List out supported devices. --version Version information. --help, -h Show summary of options. SEE ALSO
avrp(1) AUTHOR
The initial version of AVRA was written by John Anders Haugum. He released all versions until v0.7. All later versions were released by Tobias Weber. Atmel AVR Assembler Jan 23, 2006 avra(1)
All times are GMT -4. The time now is 07:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy