Sponsored Content
Top Forums Shell Programming and Scripting Programm not working on all sample Post 302731037 by Priyanka Chopra on Wednesday 14th of November 2012 05:54:20 AM
Old 11-14-2012
Programm not working on all sample

Hi all I am using following code and input to duplicate entries till next row but out is cutting some words in this sample can anybody check on his system is there any error?



Code:
awk ' { if($2 !~ /^ *$/) { a=substr($0,length($1)+1,index($0,$NF)-length($NF)); b=$NF; } print $1, a, b } ' file

Code:
BDKRB2    Actions of Nitric Oxide in the Heart
KDR    
PDE3B    
PRKG2    
RYR2    
SLC7A1    
ACSL3    Adipocytokine signaling pathway
ACSL6    
PPARA    
PRKAA1    
PRKAG2    
PRKCQ    
RXRG    
STAT3    
ABAT    Alanine and aspartate metabolism
CAD    
DARS2    
GOT1    
NARS2    
CARS    Aminoacyl-tRNA biosynthesis
DARS    
DARS2    
EPRS    
FARS2    
FARSLB    
FLJ12118    
IARS2    
LARS    
LARS2    
NARS2    
QARS    
WARS    
YARS    
AGT    ACE 2 regulates heart function
AGTR1    
FASLG    Antigen Dependent B Cell Activation
IL4    
CD74    Antigen processing and presentation
HLA-DPA1    
HLA-DPB1    
KIR2DL2

[/CODE]


My Output is cutting words to duplicate entries...please guide

Code:
BDKRB2     Actions of Nitric Oxide in the He Heart
KDR     Actions of Nitric Oxide in the He Heart
PDE3B     Actions of Nitric Oxide in the He Heart
PRKG2     Actions of Nitric Oxide in the He Heart
RYR2     Actions of Nitric Oxide in the He Heart
SLC7A1     Actions of Nitric Oxide in the He Heart
ACSL3     Adipocytokine signaling pathway
ACSL6     Adipocytokine signaling pathway
PPARA     Adipocytokine signaling pathway
PRKAA1     Adipocytokine signaling pathway
PRKAG2     Adipocytokine signaling pathway
PRKCQ     Adipocytokine signaling pathway
RXRG     Adipocytokine signaling pathway
STAT3     Adipocytokine signaling pathway
ABAT     Alanine and aspar metabolism
CAD     Alanine and aspar metabolism
DARS2     Alanine and aspar metabolism
GOT1     Alanine and aspar metabolism
NARS2     Alanine and aspar metabolism
CARS     Aminoacy biosynthesis
DARS     Aminoacy biosynthesis
DARS2     Aminoacy biosynthesis
EPRS     Aminoacy biosynthesis
FARS2     Aminoacy biosynthesis
FARSLB     Aminoacy biosynthesis
FLJ12118     Aminoacy biosynthesis
IARS2     Aminoacy biosynthesis
LARS     Aminoacy biosynthesis
LARS2     Aminoacy biosynthesis
NARS2     Aminoacy biosynthesis
QARS     Aminoacy biosynthesis
WARS     Aminoacy biosynthesis
YARS     Aminoacy biosynthesis
AGT     ACE 2 regulates he function
AGTR1     ACE 2 regulates he function
FASLG     Antigen Dependent B C Activation
IL4     Antigen Dependent B C Activation
CD74     Antigen processi presentation

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How can install a programm?

Hello Friends, I have a problem with install.can u tell me how can I install a programm?I use AIX(IBM) system. And how can i access cd-rom?I can't mounted,coz i am not Root.(can u tell me another Command /way)? Thanks all. (1 Reply)
Discussion started by: Christianto
1 Replies

2. UNIX for Dummies Questions & Answers

how can i install a programm?

Hello Friends, I have a problem with install.Can u tell me,how can i install a program?I am not a Root.n i use AIX(IBM) system.n how can i access a cdrom?I have been tried it,but didn't work.I can'n mounted(can u tell me another way or Command)? thanks all. (3 Replies)
Discussion started by: Christianto
3 Replies

3. Programming

run other programm

I have the programm, that says to STDERR(not to STDOUT!): "hello world!" and this programm is compiled and I have no sources. When I try to open this programm in another using C: ======================================= FILE *pp = popen("hello_to_stderr.exe", "r"); int c; string a; ... (2 Replies)
Discussion started by: shalmoo
2 Replies

4. Programming

how do i run am encrpyrtic programm on unix

how do i run am encrpyrtic programm on unix, (4 Replies)
Discussion started by: ghoz
4 Replies

5. Shell Programming and Scripting

How to embeded programm within programm

Hi, How to embeded programme within perl programme. Shankarao (2 Replies)
Discussion started by: shankarao
2 Replies

6. Shell Programming and Scripting

how to view html in ksh programm

have a script in ksh called file1 #!/bin/ksh cat my.html --------------------------- and a html file hy.html can u tell me that if i execute "file1" script it will open hy.html bt here it is showing the all the tags along with text......... it should open the browser part... (2 Replies)
Discussion started by: ali560045
2 Replies

7. Cybersecurity

Antivirus Programm for Solaris Desktop

Hello, I´m searching a antivirus solution for Solaris Desktop PC´s (Intel). Can anyone tell me more about some producer?? Thanks Volker (6 Replies)
Discussion started by: kingossi
6 Replies

8. Shell Programming and Scripting

Problem with links programm.

Problem with links programm. Hi! I write sctipt for aytomatic checking into IE stas.html -> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="newdata.submit()"></script> </head> <body... (1 Reply)
Discussion started by: beckss
1 Replies

9. Shell Programming and Scripting

unix shell programm(need urgent Help)

Hi guys, i am new to shell can u please explain how to get those two outputs in temp1 i have i/p like abcd edk lkg jkl loop i need o/p abcd ********* edk********** lkg *********** jkl *********** loop************ need o/p abcd *************** (2 Replies)
Discussion started by: ashokkrishna063
2 Replies
ATMSIGD(8)						       Maintenance Commands							ATMSIGD(8)

NAME
atmsigd - ATM signaling demon SYNOPSIS
atmsigd [-b] [-c config_file] [-d] [-D dump_dir] [-l logfile] [-m mode] [-n] [-q qos] [-t trace_length] [-u uni_version] [[itf.]vpi.vci [input output]] atmsigd -V DESCRIPTION
atmsigd implements the ATM UNI signaling protocol. Requests to establish, accept, or close ATM SVCs are sent from the kernel (using a com- parably simple protocol) to the signaling demon, which then performs the dialog with the network. Note that atmsigd is not able to accept or establish connections until the local ATM address of the interface is configured by ilmid or manually using atmaddr. The default signaling VC (interface 0, VPI 0, VCI 5) can be overridden on the command line by specifying a different PVC address. When overriding the default VC, optionally a pair of named pipes to use for communicating with the user of signaling can be specified. Nor- mally, the kernel is the user of signaling and atmsigd opens a special socket for communication with it. If atmsigd is killed, all system calls requiring interaction with it will return with an error and set errno to EUNATCH. OPTIONS
-b Run in background (i.e. in a forked child process) after initializing. -c config_file Use the specified configuration file instead of /etc/atmsigd.conf If an option is specified in the configuration file and on the command line, the command line has priority. -d Enables (lots of) debugging output. By default, atmsigd is comparably quiet. -D dump_dir Specifies the directory to which atmsigd will write status and trace dumps. If -D is not specified, dumps are written to /var/tmp. -l logfile Write diagnostic messages to the specified file. The special name syslog is used to send diagnostics to the system logger, stderr is used to send diagnostics to standard error. If -l is absent, the setting in atmsigd.conf is used. If atmsigd doesn't specify a des- tination either, messages are written to standard error. -m mode Set the mode of operation. The following modes are available: user for the user side (the default), network for the network side (useful if you have two PCs but no switch), and switch for operation with a signaling relay in a switch. -n Prints addresses in numeric format only, i.e. no address to name translation is attempted. -q qos Configures the signaling VC to use the specified quality of service (see qos(7) for the syntax). By default, UBR at link speed is used on the signaling VC. -t trace_length Sets the number of entries that should be kept in the trace buffer. -t 0 disables tracing. If -t is not specified, atmsigd uses a default of 20 trace entries. -u uni_version Sets the signaling mode. The following modes are supported: uni30 for UNI 3.0, uni31 for UNI 3.1, uni31+uni30 for UNI 3.1 with 3.0 compatibility, uni40 for UNI 4.0, and uni40+q.2963.1 for UNI 4.0 with Q.2963.1 peak cell rate renegotiation. -V Prints the version number of atmsigd on standard output and exits. FILES
/etc/atmsigd.conf default configuration file /var/tmp/atmsigd.pid.status.version default location of status dumps /var/tmp/atmsigd.pid.trace.version default location of signaling trace dumps DEBUGGING
When receiving a SIGUSR1 signal, atmsigd dumps the list of all internal socket descriptors. With SIGUSR2, it dumps the contents of the trace buffer. If a dump directory was set, dumps are written to files called atmsigd.pid.status.number and atmsigd.pid.trace.number, respectively, with number starting at zero and being incremented for every dump. If no dump directory is set, dumps are written to standard error. Dumps are also generated whenever atmsigd detects a fatal error and terminates. No attempt is made to catch signals like SIGSEGV. BUGS
The generation of traces is a comparably slow process which may already take several seconds for only 100 trace entries. To generate a trace dump, atmsigd therefore forks a child process that runs in parallel to the signaling demon. AUTHOR
Werner Almesberger, EPFL ICA <Werner.Almesberger@epfl.ch> SEE ALSO
atmaddr(8), atmsigd.conf(4), ilmid(8), qos(7) Linux April 26, 2000 ATMSIGD(8)
All times are GMT -4. The time now is 04:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy