Sponsored Content
Top Forums UNIX for Dummies Questions & Answers creating sequence numbers in unix Post 302169084 by dnat on Wednesday 20th of February 2008 07:06:11 AM
Old 02-20-2008
creating sequence numbers in unix

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?
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unix Boot Sequence

Hello all Unix fans. What files are involved in the Unix boot sequence, i guess there is alot of them but some must be the main files? For example the service SENDMAIL starts on our Unix machine where should i edit so that it will not start at BOOT. initd.conf? rc2.d? I hope you... (6 Replies)
Discussion started by: sajjan2
6 Replies

2. UNIX for Dummies Questions & Answers

how can i isolate the random sequence of numbers using awk?

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)
Discussion started by: rcon1
2 Replies

3. Shell Programming and Scripting

Need to find the gap in the sequence of numbers

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)
Discussion started by: mac4rfree
3 Replies

4. Shell Programming and Scripting

Perl verify if numbers in a column of a file are in sequence

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)
Discussion started by: dynamax
3 Replies

5. Shell Programming and Scripting

find common entries and match the number with long sequence and cut that sequence in output

Hi all, I have a file like this ID 3BP5L_HUMAN Reviewed; 393 AA. AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3; DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot. DT 05-JUL-2004, sequence version 1. DT 05-SEP-2012, entry version 71. FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies

6. Homework & Coursework Questions

program to find and print a Fibonacci sequence of numbers. --Errors

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I am trying to convert a C language program over to Sparc Assembley and I am getting Undefined first referenced... (4 Replies)
Discussion started by: kenjiro310
4 Replies

7. Shell Programming and Scripting

Script to generate sequence of numbers

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)
Discussion started by: aramacha
6 Replies

8. 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

9. Shell Programming and Scripting

Creating sequence number as per records

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)
Discussion started by: bhaski2012
8 Replies
RNEWS(1)						    InterNetNews Documentation							  RNEWS(1)

NAME
rnews - Inject individual articles and UUCP batches into INN SYNOPSIS
rnews [-NUv] [-h host] [-P port] [-rS server] [file] DESCRIPTION
rnews injects either individual articles or UUCP-style article batches into an INN server. It submits articles via IHAVE and is suitable for injecting articles received from other sources; local postings should generally use inews(1) instead. It is also used to process spooled messages created by, for example, nnrpd while innd is not available. The message is read from file if given, or standard input if no file is given. Articles are sent to the server given in the -r or -S command line options if given, otherwise to the server set via nnrpdposthost in inn.conf, otherwise to the local server. When sent over UUCP, Usenet articles are typically collected in a single batch to reduce the UUCP overhead. Batches can also be compressed to reduce communication time. If the input to rnews does not begin with the characters "#!", it is taken to be a single news article; otherwise, the first line of the input is interpreted as a batch command. If the batch command is: #! rnews <number> then the next <number> bytes (starting with the next line) are read as a news article. After that article is processed, the next line is again treated as a batch command. If the command is: #! cunbatch then the rest of the input is fed to "gzip -d" to uncompress it, and then the resulting uncompressed output is re-read as if it were the original input to rnews. A compressed batch should therefore start with this line and contain a batch of articles separated by "#! rnews" lines and then compressed with compress(1). (Batches compressed with gzip(1) should instead use "gunbatch" as the batch command; INN just uses gzip rather than compress because it can handle compress-style compression but is more widely available, due to old patent issues, than compress.) Otherwise, if the command is any other word, then rnews will try to execute a program with that name, looking for it in the directory pathbin/rnews.libexec. The rest of the batch will be fed to that program's standard input, and the standard output from the program will be treated as if it were the original input to rnews. INN comes with three such standard batch processors: bunbatch It invokes bzip2 and should be used for batches compressed with bzip2. c7unbatch It undoes an ASCII encoding to recover the original binary compressed stream and then decompresses it as explained above. gunbatch It invokes gzip and should be used for batches compressed with gzip. By default, rnews will log and discard any articles that are rejected by the server or cannot be parsed by rnews for some reason (such as a missing header). This default can be changed when compiling INN by setting DO_RNEWS_SAVE_BAD in include/inn/options.h. There is no way to change it at runtime, unfortunately. OPTIONS
-h host If -h is given, rnews will log the message ID and host via syslog for each article that it offers to the server. This is used in conjunction with a UUCP feed to get a log of the messages received via that feed. This will also be done if the environment variable UU_MACHINE is set, but will only be done if host is not an empty string. (You can therefore turn off logging even if UU_MACHINE will be set by passing the flag "-h ''" to rnews.) -N Normally, if unpacking the input batch fails, it is re-spooled to pathincoming for another attempt later. If the -N flag is given, no such re-spooling is done and rnews will instead exit with status 9 if unpacking fails. -P port Use port as the server port to connect to rather than nnrpdpostport (as set in inn.conf). Note that this value is only used if rnews does not connect to the local server (in other words, when -r or -S is given or nnrpdposthost is set). -r server, -S server -r and -S are synonymous. If either is given, articles will be sent to server rather than using the local server, overriding also the setting of nnrpdposthost in inn.conf. -U If the server is not available, both rnews and nnrpd will spool posts to new files in the pathincoming directory (as specified in inn.conf). When rnews is invoked with the -U option, it scans that directory and processes all spooled messages found there whose filenames do not begin with ".", attempting to send them to the server again. It's a good idea to run this periodically out of cron to pick up any articles spooled due to temporary server unavailability. BUGS
rnews cannot process articles that have embedded nul characters in them. (Neither can the rest of INN at present.) HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Rewritten in POD by Russ Allbery <rra@stanford.edu>. $Id: rnews.pod 8537 2009-06-28 08:48:31Z iulius $ SEE ALSO
bzip2(1), compress(1), gzip(1), inn.conf(5), innd(8), nnrpd(8). INN 2.5.2 2009-08-16 RNEWS(1)
All times are GMT -4. The time now is 05:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy