Sponsored Content
Full Discussion: Multi-copying a file
Top Forums Shell Programming and Scripting Multi-copying a file Post 302240383 by jolecanard on Thursday 25th of September 2008 03:12:14 PM
Old 09-25-2008
Thanks for your answers.

Unfortunately I had already though using a loop but I still needed as many lines to do the job...(If I had to make 1000 copies that would be definitely better, but for 5 or 6...).

In fact I wanted to make sure there was not a built-in function capable to do that! Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

multi-file multi-edit

Good day! I am trying to learn how to use the "sed" editor, to perform multiple edits on multiple files in multiple directories. I have one script that tries to call up each file and process it according to the edits listed in a second script. I am using a small input text to test these, at... (12 Replies)
Discussion started by: kielitaide
12 Replies

2. UNIX for Dummies Questions & Answers

Multi User Multi Task

Dear Experts Why we always hear that unix operating system is Multi User and Multi task. What does these two means. I have looked at some books and documents but couldn't find aclear explenation. Can we say Windows operating system is also multi user and multi task?? Thanks for your help in... (6 Replies)
Discussion started by: Reza Nazarian
6 Replies

3. Shell Programming and Scripting

multi file editing in vi

Hi all Some yeras ago (1994) I had a utility that bundled up multiple files into a big file with a seperator lines. Automatically loaded this temp file into vi - which allowed you to edit all the files. then when you :wq or ZZ vi it saved all the files bak to their appropriate file names and got... (0 Replies)
Discussion started by: ricl999
0 Replies

4. Shell Programming and Scripting

Multi File processing

Hello, I have 2 csv files: File1: Name,year,organization Jim,2007,Org1 Bob,1999,Org3 Chris,2001,Org2 File2: DocumentName,DocumentTitle,organization,year Test1,Test1,Org1,2007 Test2,Test2,Org2,2008 Test3,Test3,Org3,2009 Using the ksh, I'm reading by line and grabbing the... (2 Replies)
Discussion started by: orahi001
2 Replies

5. Shell Programming and Scripting

sed command for copying the contents of other file replacing it another file on specifc pattern

We have 2 file XML files - FILE1.XML and FILE2.xml - we need copy the contents of FILE1.XML and replace in FILE2.xml pattern "<assignedAttributeList></assignedAttributeList>" FILE1.XML 1. <itemList> 2. <item type="Manufactured"> 3. <resourceCode>431048</resourceCode> 4. ... (0 Replies)
Discussion started by: balrajg
0 Replies

6. UNIX for Dummies Questions & Answers

Help with searching for a file in a directory and copying the contents of that file in a new file

Hi guys, I am a newbie here :wall: I need a script that can search for a file in a directory and copy the contents of that file in a new file. Please help me. :confused: Thanks in advance~ (6 Replies)
Discussion started by: zel2zel
6 Replies

7. Shell Programming and Scripting

Multi-line filtering based on multi-line pattern in a file

I have a file with data records separated by multiple equals signs, as below. ========== RECORD 1 ========== RECORD 2 DATA LINE ========== RECORD 3 ========== RECORD 4 DATA LINE ========== RECORD 5 DATA LINE ========== I need to filter out all data from this file where the... (2 Replies)
Discussion started by: Finja
2 Replies

8. Shell Programming and Scripting

How to substract selective values in multi row, multi column file (using awk or sed?)

Hi, I have a problem where I need to make this input: nameRow1a,text1a,text2a,floatValue1a,FloatValue2a,...,floatValue140a nameRow1b,text1b,text2b,floatValue1b,FloatValue2b,...,floatValue140b look like this output: nameRow1a,text1b,text2a,(floatValue1a - floatValue1b),(floatValue2a -... (4 Replies)
Discussion started by: nricardo
4 Replies

9. Programming

Multi head/multi window hello world

I am trying to write a large X app. I have successfully modified my xorg.conf to setup 4 monitors on an NVIDIA Quatro5200. I am trying to modify a simple hello world application to open a window on three of the four monitors. depending on the changes to loop the window creation section and event... (2 Replies)
Discussion started by: advorak
2 Replies

10. Shell Programming and Scripting

Help with reformat single-line multi-fasta into multi-line multi-fasta

Input File: >Seq1 ASDADAFASFASFADGSDGFSDFSDFSDFSDFSDFSDFSDFSDFSDFSDFSD >Seq2 SDASDAQEQWEQeqAdfaasd >Seq3 ASDSALGHIUDFJANCAGPATHLACJHPAUTYNJKG ...... Desired Output File >Seq1 ASDADAFASF ASFADGSDGF SDFSDFSDFS DFSDFSDFSD FSDFSDFSDF SD >Seq2 (4 Replies)
Discussion started by: patrick87
4 Replies
backend(7)							    Apple Inc.								backend(7)

NAME
backend - cups backend transmission interfaces SYNOPSIS
backend backend job user title num-copies options [ filename ] DESCRIPTION
Backends are a special type of filter(7) which is used to send print data to and discover different devices on the system. Like filters, backends must be capable of reading from a filename on the command-line or from the standard input, copying the standard input to a temporary file as required by the physical interface. The command name (argv[0]) is set to the device URI of the destination printer. Starting with CUPS 1.1.22, any authentication information in argv[0] is removed, so backend developers are urged to use the DEVICE_URI environment variable whenever authentication information is required. The CUPS API includes a cupsBackendDeviceURI function for retrieving the correct device URI. Back-channel data from the device should be relayed to the job filters by writing to file descriptor 3. The CUPS API includes the cups- BackChannelWrite function for this purpose. DEVICE DISCOVERY
When run with no arguments, the backend should list the devices and schemes it supports or is advertising to stdout. The output consists of zero or more lines consisting of any of the following forms: device-class scheme "Unknown" "device-info" device-class device-uri "device-make-and-model" "device-info" device-class device-uri "device-make-and-model" "device-info" "device-id" device-class device-uri "device-make-and-model" "device-info" "device-id" "device-location" The device-class field is one of the following values: direct The device-uri refers to a specific direct-access device with no options, such as a parallel, USB, or SCSI device. file The device-uri refers to a file on disk. network The device-uri refers to a networked device and conforms to the general form for network URIs. serial The device-uri refers to a serial device with configurable baud rate and other options. If the device-uri contains a baud value, it represents the maximum baud rate supported by the device. The scheme field provides the URI scheme that is supported by the backend. Backends should use this form only when the backend supports any URI using that scheme. The device-uri field specifies the full URI to use when communicating with the device. The device-make-and-model field specifies the make and model of the device, e.g. "Acme Foojet 2000". If the make and model is not known, you must report "Unknown". The device-info field specifies additional information about the device. Typically this includes the make and model along with the port number or network address, e.g. "Acme Foojet 2000 USB #1". The optional device-id field specifies the IEEE-1284 device ID string for the device, which is used to select a matching driver. The optional device-location field specifies the physical location of the device, which is often used to pre-populate the printer-location attribute when adding a printer. PERMISSIONS
Backends without world execute permissions are run as the root user. Otherwise, the backend is run using the unprivileged user account, typically "lp". EXIT CODES
The following exit codes are defined for backends; C API constants defined in the <cups/backend.h> header file are defined in parenthesis: 0 (CUPS_BACKEND_OK) The print file was successfully transmitted to the device or remote server. 1 (CUPS_BACKEND_FAILED) The print file was not successfully transmitted to the device or remote server. The scheduler will respond to this by canceling the job, retrying the job, or stopping the queue depending on the state of the error-policy attribute. 2 (CUPS_BACKEND_AUTH_REQUIRED) The print file was not successfully transmitted because valid authentication information is required. The scheduler will respond to this by holding the job and adding the authentication-required job-reasons keyword. 3 (CUPS_BACKEND_HOLD) The print file was not successfully transmitted because it cannot be printed at this time. The scheduler will respond to this by hold- ing the job. 4 (CUPS_BACKEND_STOP) The print file was not successfully transmitted because it cannot be printed at this time. The scheduler will respond to this by stop- ping the queue. 5 (CUPS_BACKEND_CANCEL) The print file was not successfully transmitted because one or more attributes are not supported. The scheduler will respond to this by canceling the job. 6 (CUPS_BACKEND_RETRY) The print file was not successfully transmitted because of a temporary issue. The scheduler will retry the job at a future time - other jobs may print before this one. 7 (CUPS_BACKEND_RETRY_CURRENT) The print file was not successfully transmitted because of a temporary issue. The scheduler will retry the job immediately without allowing intervening jobs. All other exit code values are reserved. SEE ALSO
cupsd(8), cupsd.conf(5), filter(7), http://localhost:631/help COPYRIGHT
Copyright 2007-2011 by Apple Inc. 15 April 2011 CUPS backend(7)
All times are GMT -4. The time now is 10:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy