Hi,
I am trying to compare epoch time in a huge log file (2 million lines) with todays date. I have to create two files one which has lines older than 10 days and another file with less than 10 days. I am using while do but it takes forever to complete the script. It would be helpful if you can help me convert this into awk format to make it faster.
Input file field 2 has epoch time up to nano seconds.
INPUT
Current code
Please advise if there is any way to make this faster and better.
I want to delete any file in unix file system which is older then a week.
Those files should not be unix system file..means it should be user created file.
Any clue to this ??
ASAP.
Thanks. (2 Replies)
Hi, All,
I'd like to delete files older than 1 day.
I thought the following command
find /your_directory -mtime +1-exec rm -f {} \;
will do the work, but not so, it seems like it won't delete files unless it is 2 days old or older. the files between 1 day and 2 days old does not... (7 Replies)
I am using SFTP to transmit files from the Mainframe to an UNIX server. I am looking for some kind of script that runs with SFTP to delete tranmitted files older than 3 days.
Can this be done in a SFTP transmission batch job? (5 Replies)
Hi,
I have a file which contains entries in this format.
my-bin.000140
my-bin.000141
my-bin.000142
my-bin.000143
my-bin.000144
my-bin.000145
my-bin.000146
my-bin.000147
my-bin.000148
my-bin.000149
my-bin.000150
my-bin.000151
my-bin.000152
my-bin.000153
my-bin.000154... (2 Replies)
I have crontab job a tar file to a directory ( tar -cvf /tmp/backup/or.`date +%m%d%y`. /ora/db/* ) , it will do it every day . Now I don't want to keep too much files , I just want to keep the file for 90 days , can advise if I want to remove the backup file which are elder than 90 days , can... (1 Reply)
To delete log files content older than 30 days and append the lastest date log file date in the respective logs
I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs
This is my script
cd... (2 Replies)
Hi All,
Problem Statement:Find all log files under all file systems older than 2 days and zip them. Find all zip files older than 3days and remove them. Also this has to be set under cron.
I have a concerns here
find . -mtime +2 -iname "*.log" -exec gzip {}
Not sure if this will work as... (4 Replies)
Hi Experts/Gurus,
Is there a way to remove lines in a file that are older than x days (i.e. 30 days) based on the date stamp in the first column?
Example.
$ date
Sat Jan 11 14:12:06 EDT 2014
$cat sample.txt
10-10-2013 09:00:01 AM|Line test 1234567
16-10-2013 08:30:00 AM|Line test... (6 Replies)
Hi,
I am writing the script for tomcat logs clean up ending with *.txt and *.log.
cleanup should be applied to logs older than 7 days logs same will be scheduled in cron.
after googling found below but it only help partially.
find . -type f -name '*.log' -exec truncate --size 0 "{}" \;
I... (6 Replies)
Discussion started by: Riverstone
6 Replies
LEARN ABOUT DEBIAN
vcd2fst
VCD2FST(1) Filetype Conversion VCD2FST(1)NAME
vcd2fst - Converts VCD files to FST files
SYNTAX
vcd2fst [option]... [VCDFILE] [FSTFILE]
DESCRIPTION
Converts VCD files to FST files.
OPTIONS -v,--vcdname <filename>
Specify VCD input filename.
-f,--fstname <filename>
Specify FST output filename.
-F,--fastpack
Indicates that fastlz should be used instead of gzip for block data.
-c,--compress
Indicates that the entire file should be run through gzip on close. This results in much smaller files at the expense of a one-time
decompression penalty on file open during reads.
-p,--parallel
Indicates that parallel mode should be enabled. This spawns a worker thread to continue with FST block processing while conversion
continues on the main thread for new FST block data.
-h,--help
Show help screen.
EXAMPLES
Note that you should specify dumpfile.vcd directly or use "-" for stdin.
vcd2fst dumpfile.vcd dumpfile.fst --compress
This indicates that the FST file should be post-compressed on close.
AUTHORS
Anthony Bybell <bybell@rocketmail.com>
SEE ALSO fst2vcd(1)vcd2lxt(1)vcd2lxt2(1)lxt2vcd(1)vcd2vzt(1)vzt2vcd(1)gtkwave(1)Anthony Bybell 3.3.35 VCD2FST(1)