Sponsored Content
Full Discussion: Multi-copying a file
Top Forums Shell Programming and Scripting Multi-copying a file Post 302240030 by era on Thursday 25th of September 2008 01:11:31 AM
Old 09-25-2008
Not directly. Use a loop, perhaps?

Code:
for f in 12 13 14 15 16; do
  cp xsec.1.11 xsec.1.$f
done

What's the use of the multiple copies? Perhaps you could put symbolic links in place once, and be done with it?
 

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
Xray::Absorption::Shaltout(3pm) 			User Contributed Perl Documentation			   Xray::Absorption::Shaltout(3pm)

       "cross_section"
	   Example:

	      $xsec = Xray::Absorption -> cross_section($elem, $energy, $mode);

	      @xsec = Xray::Absorption -> cross_section($elem, @energy, $mode);

	   The $mode argument is different here than for the other resources.  The options are "xsec", "photo", "coherent" and "incoherent",
	   telling this method to return the full cross-section or just the photoelectric, coherent, or incoherent portions.

	   The values for all cross-sections are computed as log-log polynomials as described in the original paper by Shaltout et al.

NAME
Xray::Absorption::Shaltout - Perl interface to the Shaltout tables SYNOPSIS
use Xray::Absorption; Xray::Absorption -> load("shaltout"); See the documentation for Xray::Absorption for details. DESCRIPTION
This module is inherited by the Xray::Absorption module and provides access to the data contained in Update of photoelectric absorption coefficients in the tables of McMaster Abdallah Shaltout, Horst Ebel, and Robert Svagera X-Ray Spectrometry(2006) vol. 35, p. 52-56 The data is contained in a database file called shaltout.db which is generated at install time from a flat text database of the data which can be found at <http://www.ifp.tuwien.ac.at/forschung/abdallah.shaltout/> as explained in the reference. The required Chemistry::Elements module is available from CPAN in the miscellaneous modules section. EDGE AND LINE ENERGIES
The Shaltout data resource includes all K, L, M, and N edges but does not provide any of the line energies. An minimal set of line energies is imported from the McMaster data resource. BUGS AND THINGS TO DO
This module has not be tested sufficiently. AUTHOR
Bruce Ravel, bravel@bnl.gov http://cars9.uchicago.edu/~ravel/software/Absorption/ perl v5.12.4 2011-07-30 Xray::Absorption::Shaltout(3pm)
All times are GMT -4. The time now is 08:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy