Creating a sequence of numbers in a line for 1000 files
Hi, I try to explain my problem , I have a file like this:
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 have the line mionome0001.pdb
nomefile0002.txt that must have the line mionome0002.pdb
and so on up to nomefile1000.txt with the line mionome1000.pdb
Can you give me some advice ? Maybe I could use sed ... but how ??? Thanks a lot to everyone
Moderator's Comments:
Please use code tags for data as well as required by forum rules!
Last edited by RudiC; 05-14-2016 at 02:56 PM..
Reason: Added code tags.
Not too clear. Do you want 1000 output files containing
, i.e have the same contents except for the third line that will be numbered ascendingly (guessing that "myname" equals "mionome")?
Hi,
I have a file source as below.
OL|10031|Day|Black|Midi|Good|Value|P01|P07
OL|10031|Day|Black|Short|Good|Value|P01|P07
I need to create a file form the above data as below logic
1. take the first line
2. create a file say inclusion1 as below from the first line
OL,10031,1,Day... (8 Replies)
I need awk script to generate part number sequencing based on data in multiple columns like below
Input File
---------
Col A|Col B|Col C|
1|a|x|
2|b|y|
|c|z|
| |m|
| |n|
And out put should be like
1ax
1ay
1az
1am
1an
1bx
1by (6 Replies)
I am trying to add a single line of text to every file in a particular folder. There are thousands of files in the folder.
Each file contains this same start of the first line:
{d "%w- %d %m-, %Y - %T"} <some message here>
with the rest of the text following the second curly bracket... (10 Replies)
I am just a newbie to perl scripting. I need help with listing of hexadecimal numbers in a column as follows.
INPUT FIle:
08AF ship steel
08B0 ship steel
08B1 ship steel
08B2 flight docs
08B3 flight docs
08B4 flight docs
08B5 flight docs
08B6 flight decl ... (3 Replies)
Hi Guys,
I have a file with numbers in sequence.
The sequence have been broken somewhere.. I need to find out at which number the sequence has been broken...
For an example, consider this sequence, it needs to give me output as 4 (as 5 is missing) and 6(as 7 is missing)
Thanks for... (3 Replies)
I would like to write a script that would create 1000 files like clm0001.txt to clm1000.txt. All the files would contain the same contents. How do I achieve this using a script?Please help. (2 Replies)
Hello All,
I want to make a simple script which generate random number from 0 to 1000.
and simply display it.
Plz HELP!!!!!!
Regards,
Waqas Ahmed (2 Replies)
Hi,
Is there a way to create sequence numbers in unix
i have a set of batches(which contain records) and i want to assign a number to every batch. how can i do that? (1 Reply)
as you can see there is a delimiter after c8 "::". Awk sees the rest as fields because it doesn't recognize spaces and tabs as delimiters. So i am basically looking to isolate 20030003ba13f6cc. Can anyone help?
c8::20030003ba13f6cc disk connected configured unknown (2 Replies)