Hi Everyone,
I want to delete some files in a path based on the time stamp of the file that is i want to delete the file once in a month.
Can any one help me on this?
Thanks in advance (2 Replies)
Hi All,
I know the timestamp of a file. Now i would like to list all the files in the with the same time stamp in the same file.
Any help would be appreciated.
Thanks.
sunny (1 Reply)
I have a Unix directory, let's call it /home/id for example purposes. It contains the following files: oldfile.txt.20091101, oldfile.txt.20091102, oldfile.txt.20091103, etc.
I am trying to create a Korn Shell script that will go to /home/id and delete any oldfile.txt that has a datetime stamp... (1 Reply)
Hi
My pipe delimited .txt file contains rows with 10 columns.
Can anyone advise how I output to file only those rows with the letters ‘ci'
as the first 2 characters in the 3rd column ?
Many thanks (4 Replies)
In a table, date is stored in a column as "2011-01-4".
If I write query to get the dates > "2011-01-06" , then the date "2011-01-4" is also listed. The date stored in the column is a varchar datatype. So how can I make a query to not display the date "2011-01-4" ? Is there any solution ? Thank... (4 Replies)
Hi,
I have a file with the following columns:
361459 447394 CHL1
290282 290282 CHL1
361459 447394 CHL1
361459 447394 CHL1
178352861 178363529 AGA
178352861 178363529 AGA
178363657 178363657 AGA
Essentially, using CHL1 as an example. For any line that has CHL1 in... (2 Replies)
I have two files containing hundreds of different sequences with the same Identifiers (ID-001, ID-002, etc.,), something like this:
Infile1:
ID-001 ATGGGAGCGGGGGCGTCTGCCTTGAGGGGAGAGAAGCTAGATACA
ID-002 ATGGGAGCGGGGGCGTCTGTTTTGAGGGGAGAGAAGCTAGATACA
ID-003... (18 Replies)
Help with Perl script :
I have a web.xml file with a line
<display-name>some_text_here</display-name>
Need to append the current date and time stamp to the string and save the XML file
Something like
<display-name>some_text_here._01_23_2014_03_56_33</display-name>
-->Finally want... (5 Replies)
Discussion started by: gaurav99
5 Replies
LEARN ABOUT DEBIAN
prophet::clicontext
Prophet::CLIContext(3pm) User Contributed Perl Documentation Prophet::CLIContext(3pm)
mutate_attributes ( args => $hashref, props => $hashref, type => 'str' )
A hook for running a second command from within a command without having to use the commandline argument parsing.
If "type", "uuid", or "primary_commands" are not passed in, the values from the previous command run are used.
cmp_regex
The regex to use for matching property key/value separators.
$ID_REGEX
The regex to use for matching the id argument (luid / uuid).
setup_from_args
Sets up this context object's arguments and key/value pairs from an array that looks like an @ARGV.
parse_args @args
This routine pulls arguments (specified by --key=value or --key value or -k value) and properties (specified by --props key=value or --
key=value) as passed on the command line out of ARGV (or something else emulating ARGV) and sticks them in "args" or "props" and "prop_set"
as necessary. Argument keys have leading "--" or "-" stripped.
If a key is not given a value on the command line, its value is set to undef.
More complicated separators such as =~ (for regexes) are also handled (see "cmp_regex" for details).
set_type_and_uuid
When working with individual records, it is often the case that we'll be expecting a --type argument and then a mess of other key-value
pairs.
This routine figures out and sets "type" and "uuid" from the arguments given on the command-line, if possible. Being unable to figure out a
uuid is fatal.
perl v5.10.1 2009-08-20 Prophet::CLIContext(3pm)