Sponsored Content
Full Discussion: Fetch specific entries
Top Forums Shell Programming and Scripting Fetch specific entries Post 302742887 by Priyanka Chopra on Tuesday 11th of December 2012 07:06:31 PM
Old 12-11-2012
Thanks for reply.

Yes I checked and tried to do but I am not able to pick following data from input which does not include disease or approved name all other things in input which are mentioned in upper part of input are coming properly though.

Code:
TTDS00002	Agonist	77-LH-28-1	DNC000099
TTDS00002	Agonist	AC-260584	DNC000137
TTDS00002	Agonist	AC-42	DNC000138
TTDS00002	Agonist	AF150(S)	DNC000165
TTDS00002	Agonist	AF267B	DNC000166
TTDS00002	Agonist	LY-593039	DNC000910
TTDS00002	Agonist	NGX-267	DNC001012
TTDS00002	Agonist	Sabcomeline	DNC001264
TTDS00002	Agonist	WAY-132983	DNC001510
TTDS00002	Inhibitor	Arecoline	DNC002508
TTDS00002	Inhibitor	Acetic acid 8-aza-bicyclo[3.2.1]oct-6-yl ester	DNC003640
TTDS00002	Inhibitor	Benzoic acid 8-aza-bicyclo[3.2.1]oct-6-yl ester	DNC003654
TTDS00002	Inhibitor	Propionic acid 8-aza-bicyclo[3.2.1]oct-6-yl ester	DNC003659
TTDS00002	Inhibitor	3-Methyl-7-pyrrolidin-1-yl-hept-5-yn-2-one	DNC004147
TTDS00002	Inhibitor	2-Methyl-6-pyrrolidin-1-yl-hex-4-ynal oxime	DNC004159
TTDS00002	Inhibitor	ISOCLOZAPINE	DNC004166
TTDS00002	Inhibitor	SB-202026	DNC004272
TTDS00002	Inhibitor	HIMBACINE	DNC004995
TTDS00002	Inhibitor	RR(17)PZ	DNC005944
TTDS00002	Inhibitor	Bo(15)PZ	DNC005945
TTDS00002	Inhibitor	DIFLUOROBENZTROPINE	DNC005986
TTDS00002	Inhibitor	BI-1356	DNC007901
TTDS00002	Inhibitor	FM1-10	DNC008187
TTDS00002	Inhibitor	FM1-43	DNC008188
TTDS00002	Inhibitor	A-987306	DNC008996
TTDS00002	Inhibitor	GNF-PF-5618	DNC009476
TTDS00002	Inhibitor	CREMASTRINE	DNC009504
TTDS00002	Inhibitor	1,1-diphenyl-2-(3-tropanyl)ethanol	DNC009866
TTDS00002	Inhibitor	R-dimethindene	DNC009877
TTDS00002	Inhibitor	Tiotropium Bromide	DNC009882
TTDS00002	Inhibitor	XANOMELINE	DNC011170
TTDS00002	Inhibitor	4-(4-butylpiperidin-1-yl)-1-o-tolylbutan-1-one	DNC011171
TTDS00002	Inhibitor	1-Methyl-1-(4-pyrrolidin-1-yl-but-2-ynyl)-urea	DNC011427
TTDS00002	Inhibitor	ISOLOXAPINE	DNC011498
TTDS00002	Inhibitor	1'-Benzyl-3-phenyl-[3,4']bipiperidinyl-2,6-dione	DNC011500
TTDS00002	Inhibitor	CARAMIPEN	DNC011755
TTDS00002	Inhibitor	FLUMEZAPINE	DNC011857
TTDS00002	Inhibitor	AMINOBENZTROPINE	DNC011950
TTDS00002	Inhibitor	2-(4-Diethylamino-but-2-ynyl)-isoindole-1,3-dione	DNC012005
TTDS00002	Inhibitor	3-Tetrazol-2-yl-1-aza-bicyclo[2.2.2]octane	DNC012098
TTDS00002	Inhibitor	SULFOARECOLINE	DNC012122
TTDS00002	Inhibitor	6-Dimethylamino-2-methyl-hex-4-ynal oxime	DNC012306
TTDS00002	Inhibitor	7-Pyrrolidin-1-yl-hept-5-yn-2-one	DNC012322
TTDS00002	Inhibitor	7-Dimethylamino-3-methyl-hept-5-yn-2-one	DNC012323
TTDS00002	Inhibitor	7-Pyrrolidin-1-yl-hept-5-yn-2-one oxime	DNC012330
TTDS00002	Inhibitor	7-Dimethylamino-hept-5-yn-2-one	DNC012350
TTDS00002	Inhibitor	7-Dimethylamino-hept-5-yn-2-one oxime	DNC012351
TTDS00002	Inhibitor	N-(4-Dimethylamino-but-2-ynyl)-N-methyl-acetamide	DNC012363
TTDS00002	Inhibitor	ACECLIDINE	DNC012502
TTDS00002	Inhibitor	N-methoxyquinuclidine-3-carboximidoyl fluoride	DNC012588
TTDS00002	Inhibitor	BRL-55473	DNC012594
TTDS00002	Inhibitor	N-methoxyquinuclidine-3-carboximidoyl chloride	DNC012616
TTDS00002	Inhibitor	2,8-Dimethyl-1-oxa-8-aza-spiro[4.5]decan-3-one	DNC012765
TTDS00002	Inhibitor	3alpha-(bis-chloro-phenylmethoxy)tropane	DNC013136
TTDS00002	Inhibitor	3-(3-benzylamino)-piperidin-2-one	DNC013219

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

To fetch specific words from a file

Hi All, I have a file like this,(This is a sql output file) cat query_file 200000029 12345 10001 0.2 0 I want to fetch the values 200000029,10001,0.2 .I tried using the below code but i could get... (2 Replies)
Discussion started by: girish.raos
2 Replies

2. Shell Programming and Scripting

How to fetch a specific line from file

Hi, I have text file in the following strucher . The files contain hondreds of lines. value1;value2;value3;value4 I would like to get back the line with lowest date (values4 field). In this case its line number 3. groupa;Listener;1;20110120162018 groupb;Database;0;20110201122641... (4 Replies)
Discussion started by: yoavbe
4 Replies

3. Shell Programming and Scripting

fetch last line no form file which is match with specific pattern by grep command

Hi i have a file which have a pattern like this Nov 10 session closed Nov 10 Nov 9 08:14:27 EST5EDT 2010 on tty . Nov 10 Oct 19 02:14:21 EST5EDT 2010 on pts/tk . Nov 10 afrtetryytr Nov 10 session closed Nov 10 Nov 10 03:21:04 EST5EDT 2010 Dec 8 Nov 10 05:03:02 EST5EDT 2010 ... (13 Replies)
Discussion started by: Himanshu_soni
13 Replies

4. Shell Programming and Scripting

How to fetch specific fields

Dear Friends, Please provide some commands to fecth specific filed (data yellow color) from below data.. Input data 2648: 1;20120707;3591|4;20290107;90|5;20290107;3|9;20120705;0|10;20120705;0|16;20290113;15|29;20120705;0 2658: 1;20120722;0|4;20290422;1200|9;20120705;0|10;20120705;0 2646:... (4 Replies)
Discussion started by: suresh3566
4 Replies

5. Shell Programming and Scripting

Urgent request to consider:Search specific name in a file and fetch specific entries

Hi all, I have 2 files, One file contain data like this FHIT CS CHRM1 PDE3A PDE3B HSP90AA1 PTK2 HTR1A ESR1 PARP1 PLA2G1B These names are mentioned in the second file(Please see attached second file) as # Drug_Target_X_Gene_Name:(Where X can be any number (1-1000) (1 Reply)
Discussion started by: manigrover
1 Replies

6. Shell Programming and Scripting

Search specific name in a file and fetch specific entries

Hi all, I have 2 files, One file contain data like this FHIT CS CHRM1 PDE3A PDE3B HSP90AA1 PTK2 HTR1A ESR1 PARP1 PLA2G1B These names are mentioned in the second file(Please see attached second file) as (7 Replies)
Discussion started by: manigrover
7 Replies

7. Shell Programming and Scripting

Fetch entries in front of specific word till next word

Hi all I have following file which I have to edit for research purpose file:///tmp/moz-screenshot.png body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: "Liberation Sans"; font-size: x-small; } Drug: KRP-104 QD Drug: Placebo Drug: Metformin|Drug:... (15 Replies)
Discussion started by: Priyanka Chopra
15 Replies

8. Shell Programming and Scripting

Request to check:Fetch certain entries

Hi all. Kindly check it it's urgent!! I have one big file from which which I have to fetch certain data I have attached a small part of this file. from the attached file, I have to fetch and arrange data in 3 columns 1 Generic name 2. Brand names 3. Drug... (10 Replies)
Discussion started by: manigrover
10 Replies

9. Shell Programming and Scripting

Fetch entries with specific pattern

Hi all, I have following sample input file which is a part of big file: ID AINX_HUMAN Reviewed; 499 AA. AC Q16352; B1AQK0; Q9BRC5; DT 30-MAY-2000, integrated into UniProtKB/Swiss-Prot. DT 23-JAN-2002, sequence version 2. DT 28-NOV-2012, entry version 123.... (2 Replies)
Discussion started by: kareena
2 Replies

10. UNIX for Beginners Questions & Answers

How to fetch specific data from a file.?

Hi , I have a file which contains 2 days logs(here it is 24 and 25) I want to list data only for date 25 fron the file. please suggest me how should i get this. file content mentioned below 17-05-24 Name Succ Fail 00:00:29 ... (5 Replies)
Discussion started by: scriptor
5 Replies
SYSTEMD-INHIBIT(1)						  systemd-inhibit						SYSTEMD-INHIBIT(1)

NAME
systemd-inhibit - Execute a program with an inhibition lock taken SYNOPSIS
systemd-inhibit [OPTIONS...] [COMMAND] [ARGUMENTS...] systemd-inhibit [OPTIONS...] --list DESCRIPTION
systemd-inhibit may be used to execute a program with a shutdown, sleep, or idle inhibitor lock taken. The lock will be acquired before the specified command line is executed and released afterwards. Inhibitor locks may be used to block or delay system sleep and shutdown requests from the user, as well as automatic idle handling of the OS. This is useful to avoid system suspends while an optical disc is being recorded, or similar operations that should not be interrupted. For more information see the Inhibitor Lock Developer Documentation[1]. OPTIONS
The following options are understood: --what= Takes a colon-separated list of one or more operations to inhibit: "shutdown", "sleep", "idle", "handle-power-key", "handle-suspend-key", "handle-hibernate-key", "handle-lid-switch", for inhibiting reboot/power-off/halt/kexec, suspending/hibernating, the automatic idle detection, or the low-level handling of the power/sleep key and the lid switch, respectively. If omitted, defaults to "idle:sleep:shutdown". --who= Takes a short, human-readable descriptive string for the program taking the lock. If not passed, defaults to the command line string. --why= Takes a short, human-readable descriptive string for the reason for taking the lock. Defaults to "Unknown reason". --mode= Takes either "block" or "delay" and describes how the lock is applied. If "block" is used (the default), the lock prohibits any of the requested operations without time limit, and only privileged users may override it. If "delay" is used, the lock can only delay the requested operations for a limited time. If the time elapses, the lock is ignored and the operation executed. The time limit may be specified in logind.conf(5). Note that "delay" is only available for "sleep" and "shutdown". --list Lists all active inhibition locks instead of acquiring one. -h, --help Print a short help text and exit. --version Print a short version string and exit. EXIT STATUS
Returns the exit status of the executed program. EXAMPLE
# systemd-inhibit wodim foobar.iso This burns the ISO image foobar.iso on a CD using wodim(1), and inhibits system sleeping, shutdown and idle while doing so. SEE ALSO
systemd(1), logind.conf(5) NOTES
1. Inhibitor Lock Developer Documentation https://www.freedesktop.org/wiki/Software/systemd/inhibit systemd 237 SYSTEMD-INHIBIT(1)
All times are GMT -4. The time now is 01:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy