Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to copy set of files with date appended to their name Post 302212468 by radoulov on Monday 7th of July 2008 04:37:52 PM
Old 07-07-2008
What are the parametrs that you want to pass? Destination directory and filenames?
 

10 More Discussions You Might Find Interesting

1. HP-UX

copy files with date

Hi, I have a coupel of files in /tmp which I have to copy to /var. But I want their name to be same as the source with date suffix. But the problem is I don;t know the prefix of the file, I only know the suffix of file. AAA.997 ABC.997 ADC.997 The later part 997 is constant but the... (1 Reply)
Discussion started by: isingh786
1 Replies

2. UNIX for Advanced & Expert Users

How can i copy files by date last modifed range?

When I do a ls -lt I get a list of files by date modified from newest to oldest. I would like to be able to copy some files to another directory using a date last modified range (i.e. Apr 30 - May 13) How could I do this? Thanks, Joe (4 Replies)
Discussion started by: geauxsaints
4 Replies

3. Shell Programming and Scripting

How to sort a set of files by date in a directory?

hi there, I have a directory which contents I can parse dynamically. I end up with a file list. I then want to display those files sorted by date, oldest files first. I have very very little PERL experience...Would anyone know how to do that ? Thanks in advance. (8 Replies)
Discussion started by: alexf
8 Replies

4. Shell Programming and Scripting

Copy files based on date

Hi all i am having so many files in my directory.Is there any option to copy files based on date. example i am having file this -rw-rw-r-- 1 ram user 1 Feb 2 17:12 abc -rw-rw-r-- 1 ram user 1 Feb 2 17:12 bnw -rwxrwxr-x 1 ram user 21122 Feb 4... (3 Replies)
Discussion started by: suryanarayana
3 Replies

5. UNIX for Dummies Questions & Answers

shell scripts - create a filename with the date appended

I am looking to do something where if I created a file named backup,or whatever it would print a name like “backup_Apr_11_2011”. Thanks citizencro (1 Reply)
Discussion started by: citizencro
1 Replies

6. Shell Programming and Scripting

Move txt file to with current date appended to filename

I have multiple txt files which begin with the word "orders" in folder C:\source. I need to move the files to folder C:\dest and rename them to "process_<date>_<count>" So for example , if there are 3 files ordersa.txt , ordersb.txt and ordersc.txt in C:\source , after running the script I want... (1 Reply)
Discussion started by: johannd
1 Replies

7. UNIX for Dummies Questions & Answers

Move txt file to with current date appended to filename

I have multiple txt files which begin with the word "orders" in folder C:\source. I need to move the files to folder C:\dest and rename them to "process_<date>_<count>" So for example , if there are 3 files ordersa.txt , ordersb.txt and ordersc.txt in C:\source , after running the script I want... (7 Replies)
Discussion started by: johannd
7 Replies

8. UNIX for Dummies Questions & Answers

Script to copy files from a certain date

I need to copy files from a directory that has a lot of files in it. However I only want to copy them from a certain date. My thoughts so far are to use ls -l and to pipe this into awk and print out tokens 6 (month)and 7 (day). $ ls -l -rw-r--r-- 1 prodqual tst 681883 Jun 12... (2 Replies)
Discussion started by: millsy5
2 Replies

9. Shell Programming and Scripting

how to copy current date files to another dir

i have directory /abcd and i want to copy all today date files in /xyz directory. i am able to see the files by using below command but not able to understand copy. find . -mtime -1 -type f -exec ls -l {} \; (2 Replies)
Discussion started by: learnbash
2 Replies

10. Shell Programming and Scripting

How to copy or cut specific rows from appended file with some conditions

Hi I have one file which is containing about 5000 rows and 20 columns I will just explain about my requirement here briefly with sample file, I have attached also, please help....me.. 1 28.25 36.42 5 28.26 36.42 10 28.23 36.43 15 28.22 36.43 20 28.2 36.42 25... (6 Replies)
Discussion started by: nex_asp
6 Replies
Net::CUPS::Destination(3pm)				User Contributed Perl Documentation			       Net::CUPS::Destination(3pm)

NAME
Net::CUPS::Destination - CUPS Destination Object SYNOPSIS
use Net::CUPS::Destination; my $printer = $cups->getDestination( "lj4200dn" ); my $name = $printer->getName(); my @options = $printer->getOptions(); my $jobid = $printer->printFile( $filename, $title ); DESCRIPTION
Net::CUPS is an object oriented interface to the Common Unix Printing System. Net::CUPS::Destination is an abstraction of the concept of a destination in CUPS. Destinations will most likely be a printer, but it can be any type of target in which a file is sent for processing. METHODS
addOption $dest->addOption( $name, $value ); Method to add another option name/value pair to the destination. cancelJob my $dest->cancelJob( $jobid ); Method to chancel a job sent to this destination. getDescription my $description = $dest->getDescription(); Provides the description string associated with this printer. getError my $error = $dest->getError(); Utility method for returning the last error that occured. getName my $name = $dest->getName(); Method to return the name of the destination. getJob my $job = $dest->getJob( $jobid ) Method to get a specific job as a hash of attributes. getJobs my @jobs = $dest->getJobs( $whose, $scope ); This method will return an array of job identifiers. $whose is 0 for all users and 1 is just for the selected user. $scope is -1 for all jobs, 0 for active jobs and 1 for completed jobs. getLocation Returns the location string for this destination. getOptionValue my $value = $dest->getOptionValue( $name ); This utility method will return the value of the selected option. getOptions my @options = $dest->getOptions(); This method will return an array of the options currently set on the destination. printFile my $jobid = $dest->printFile( $filename, $title ); I know this is the method that you have been looking for. This is what you will use to send a file to handled by the destination. You must provide the name of the file and a title for the job. getUri my $uri = $dest->getUri(); This function returns the device URI of a destination. For example, a network printer might appear as socket://192.168.1.1 SEE ALSO
Net::CUPS, Net::CUPS::PPD, Net::CUPS::IPP SUPPORT
Support for this module and other software developed by Dracken Technology, Inc can be found at http://www.dracken.com/. AUTHOR
Dracken Technology, Inc. (http://www.dracken.com/) COPYRIGHT AND LICENSE
Copyright (c) 2003-2005 David Hageman Copyright (c) 2006-2009 Dracken Technology, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available. CUPS, the Common UNIX Printing System, the CUPS logo, and ESP Print Pro are the trademark property of Easy Software Products. perl v5.14.2 2009-07-30 Net::CUPS::Destination(3pm)
All times are GMT -4. The time now is 08:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy