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(1)								  USER COMMANDS 							    clm(1)

  NAME
      clm - perform various computations on graphs and clusterings

  SYNOPSIS
	 clm <mode> [mode-options] [mode-files]

  DESCRIPTION
      clm implements a variety of computations on graphs and clusterings. The first argument to clm should be a mode, which is a string establish-
      ing the type of computation to invoke. Each mode mode is described in the clmmode manual page. The currently available modes are	clm  dist,
      clm info, clm meet, clm mate, clm close, clm order, clm imac, clm vol, and clm residue.  The dist mode is thus described in the clmdist man-
      ual page.

      Invoking clm without arguments causes it to print out a list of available modes with a  short  description  of  the  type  of  command  line
      expected by that mode.

      Invoking	clm  with just a mode will print out a longer listing of options available for that particular mode.  Modes that are able to func-
      tion normally without arguments can be invoked by adding the --nop argument.

      Several options are shared between all clm modes. Note that these options are specified after the mode. See OPTIONS.

      The --version option causes clm to print out version and license information.

      Issuing clm help mode will cause clm to look for a manual page describing mode and display it if found. This requires that the MANPATH envi-
      ronment  variable  contains the directory in which the MCL-edge manual pages were installed. This will usually be PREFIX/share, where PREFIX
      is the path with which the software was configured.

  OPTIONS
      These are options that pertain to all modes. They should be specified after the mode argument.

      -h (synopsis)
      --help (synopsis)
	List available options.

      --nop (no-op)
	Not an option. This option has no effect then to increment the argument count. This can be useful for clm modes which are able to function
	without  any  options.	Such  a mode typically reads from STDIN, writes to STDOUT, and uses default settings. However, simply specifying a
	mode without options leads clm to output a list of available options for that mode. This can be averted by using the --nop option.

      -set key=val (set key-value pair)
	Sets the key key to value val in the environment.  Some modes allow adjustment of settings in this manner.

      -debug <int> (set debug level/flags)
      --debug (turn default debugging on)
      --test (turn default testing on)
	The first two turn on debugging, the last is for testing. The effect of these options is otherwise undocumented.

      --progress (enable progress reporting)
	This will enable some kind of progress reporting, by writing to STDERR.

  AUTHOR
      Stijn van Dongen.

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

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