I've only used Perl for scripting, so I'll give you some advice for Perl.
Read rules.txt and read each line.
If the line has any of those keywords in defaultRules, then do nothing.
Else, put that line into an output file rules.out
Hi ,
I want to purge 7 days older data from a list of data sorted on date in a log file...
Can anyone provide me with the shell script for the same..
Thanks,
Jaz (1 Reply)
I am writing a shell script for Archive Purge for the table having rows < 1 year. The shell script has to extract the rows from the table and write those extracted rows to a text file. Then from the text file, each rows will be read and deleted by means of delete query one by one. The fields will... (5 Replies)
Hi,
I am writing a shell script for archive data from a table.
The design is as follows.
Step 1:
Execute the select query and extract the data into a text file.
Step 2:
The primary key for this table is TRACKING_NUM, TRACKING_NUM_SUFFIX, TIMESTAMP_UPDATED. So These three fields will be read... (1 Reply)
I'm new to shell scripting... i have been given a task.. can any one help in this regard....
1) Check hourly for files in <destination-path><destination-file-template><destination-file-suffix> for files older than <destination-file-retention> days and purge. It should then check... (1 Reply)
Thanks for giving your time and effort to answer questions and helping newbies like me understand awk.
I have a huge file, millions of lines, so perl takes quite a bit of time, I'd like to convert these perl one liners to awk.
Basically I'd like all lines with ISA sandwiched between... (9 Replies)
Hi Friends,
Very new in Unix and i got a requirement like writing a script and schedule it, so that it removes 30 days old files from all the log locations of a unix box.
Suppose i have a unix server ltbamdev1 and in this server i have a mount point opt/bam. In this mount point i have 3... (1 Reply)
Greetings fellow scripters.
I find myself editing multiple files, sometimes with the same bits of information. My bash script, a changelog, and a plist file (OS X). Once I realized this, I thought why not script part of this process (and so it begins). In any case, I've solved several of the... (1 Reply)
XRACER-TOOLS(1) General Commands Manual XRACER-TOOLS(1)NAME
xracer-mktrack -- XRacer track generator
SYNOPSIS
xracer-mktrack --steps STEPS [--outputc OUTPUTFILE] [--verbose] --tubefile TUBEFILE [INPUTFILE]
DESCRIPTION
This manual page documents briefly the xracer-mktrack command.
This manual page was written for the Debian distribution because the original program does not have a manual page.
xracer-mktrack is a perl script that takes a Blender VideoScape file INPUTFILE and a tube file generated by mktube TUBEFILE and optionally
generates a C source file OUTPUTFILE that contains code suitable to be used as a track in the game XRacer.
OPTIONS --steps STEPS
the number of vertices in each segment
--outputc OUTPUTFILE
the C file to write
--verbose verbose output
--tubefile TUBEFILE
the tube file generated by mktube prog
SEE ALSO
xracer (6), XRacer::BVRML (3pm), xracer-mktube (1)
AUTHOR
This manual page was written by Ying-Chun Liu (PaulLiu) <grandpaul@gmail.com> for the Debian system (but may be used by others). Permis-
sion is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later ver-
sion published by the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
XRACER-TOOLS(1)