Sponsored Content
Top Forums Shell Programming and Scripting Creating 1000 files using a script Post 302444193 by KenJackson on Wednesday 11th of August 2010 06:46:14 AM
Old 08-11-2010
Code:
#/bin/sh
for i in $(seq 1 1000); do
    cp original.txt $(printf "clm%04u.txt" $i)
done

 

10 More Discussions You Might Find Interesting

1. Solaris

creating log files for a backup script on solaris

I have a simple backup script that I am running to back up drives across the network. However I need to have detailed log files for this script such as time backup started, what was backed up, if there were any errors and the time that the backup was complete. I would also like the script to... (3 Replies)
Discussion started by: valicon
3 Replies

2. Shell Programming and Scripting

crontab is not creating runtime files which are in script..

this is the output i am getting here.. cp: cannot create /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/eoigwsA_Health_Status_Report.html: Permission denied /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/ /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/GenerateReport.sh:... (6 Replies)
Discussion started by: surekha268
6 Replies

3. Shell Programming and Scripting

Dynamically creating text files using shell script

Hi All, I want to create a shell script which dynamically create text files. i am using the following script $i=1 while do cat > test_$i.txt done but while running the script it was stopping(the cursor not going to next step, i have to enter ctrl+c to make it stop). it is creating only... (2 Replies)
Discussion started by: KiranKumarKarre
2 Replies

4. Shell Programming and Scripting

move first 1000 files

Hi i have a folder with 27,000 images. I need to process each image using imagemagick. I have got image magick working. I don't want to attempt to process all 27,000 images in one go and thought i would try doing it with 1000 images at a time. Is there some way i can list only the first 1000... (7 Replies)
Discussion started by: timgolding
7 Replies

5. Shell Programming and Scripting

Script to find the string contain in which file 1000 files.

Hi Greetings i have 1000 files (xmlfiles) and i need to find which file contain the string over 1000 file all file end with txt i tried with grep -c "string" *.txt i am getting an error -bash: /bin/egrep: Argument list too long i have put an script like below #!/bin/bash for line... (9 Replies)
Discussion started by: venikathir
9 Replies

6. Shell Programming and Scripting

Need help creating a script to FTP files to a server and then delete the files that were transfered.

I am trying to FTP files to a Windows server through my Linux machine. I have setup the file transfer with no problems but am having problem deleting those files from the Linux box. My current non-working solution is below. Any ideas, anyone?? :wall: Please be gentle, I'm fairly new to this... (4 Replies)
Discussion started by: jmalfhs
4 Replies

7. Shell Programming and Scripting

How do you check for a particular string in 1000's of files?

Please forgive my ignorance on scripting. I am trying to determine (via a script) if a certain string of characters is present . The string that I am looking for is a constant length. Here is the string I am searching for: Model_Type={t}, ModelName={m} I need to determine if the above... (2 Replies)
Discussion started by: dlundwall
2 Replies

8. Shell Programming and Scripting

Bc in shell script is creating blank files

Hi, I am creating a shell script which will check the processing of the main script if the error count is more than 2% of the record count in a feed. Part of the code is below: err_tol=`echo $feed_cnt \* 0.02 |bc` while read line do err_cnt=$(grep -i "$line" $err_log | wc -l) ... (5 Replies)
Discussion started by: member2014
5 Replies

9. UNIX for Advanced & Expert Users

Help with creating script to delete log files/folders

Hi I am new to Linux / scripting language. I need to improve our Linux servers at work and looking to claim some space my deleting log files/ folders on a 5 day basis. Can someone help me with creating a script to do so. Any sample script will be helpful.:b: Regards (2 Replies)
Discussion started by: sachinksl
2 Replies

10. Shell Programming and Scripting

Creating a sequence of numbers in a line for 1000 files

Hi, I try to explain my problem , I have a file like this: aasdsaffsc23 scdsfsddvf46567 mionome0001.pdb asdsdvcxvds dsfdvcvc2324w What I need to do is to create 1000 files in which myname line listing a sequence of numbers from 0001 to 1000. So I want to have : nomefile0001.txt that must... (10 Replies)
Discussion started by: danyz84
10 Replies
clm vol(1)							  USER COMMANDS 							clm vol(1)

  NAME
      clm vol - compute volatile nodes from a set of clusterings

      clmvol  is  not  in actual fact a program. This manual page documents the behaviour and options of the clm program when invoked in mode vol.
      The options -h, --apropos, --version, -set, --nop are accessible in all clm modes. They are described in the clm manual page.

  SYNOPSIS
      clm vol [-fraction num (nff factor)] [-o fname (output file)] <cl file>+

  DESCRIPTION
      clm vol computes a score for each node, which at a minimum is equal to one.  The output is in the form of a matrix containing a single  col-
      umn.  The  score	correlates with what is deemed to be volatile behaviour. For all pairs of clusterings the set of all intersections is com-
      puted, and these are considered in turn.	An intersection is deemed to be volatile if the size of the intersection is  less  than  half  the
      size  of	the  smallest of the two clusters. In that case, for each node in the intersection its volatility score is incremented by one over
      the size of the intersection.  The size comparison can be made more stringent by increasing the -fraction <frac> option, which is by default
      set  to 0.5.  Volatility occurs if the size of the intersection is less than <frac> times the size of the smallest cluster. If the -fraction
      value is increased all the way up to 1.0, the implication is that an intersection is considered volatile unless one  of  the  two  clusteres
      considered is a subset of the other.

  AUTHOR
      Stijn van Dongen.

  OPTIONS
      -fraction num (nff factor)
	See the discussion at DESCRIPTION.

      -o fname (output file)

  SEE ALSO
      mclfamily(7) for an overview of all the documentation and the utilities in the mcl family.

  clm vol 12-068						      8 Mar 2012							  clm vol(1)
All times are GMT -4. The time now is 04:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy