hello..
my prob is as follows:
i have to read from a file which may have different formats depending upon the delimiter used in the data of the file.now i need that the user input the delimiter.the input delimiter is stored in a variable and is used on cut command to retrieve necessary... (3 Replies)
Hi All,
How can i use the cut option to only output the number of rows, which is 2 is this case ? Pls note that the number of digit before the delimiter ":" is always varying.
$ grep -n uuu xxx
2:** xxx yyy gg 44 tt uuu 2007
$ (2 Replies)
I am trying to extract 'postmaster' from the following string:
PenaltyError:=554 5.7.1 Error, send your mail to postmaster@LOCALDOMAIN
using the following command:
cat /usr/share/assp/assp.cfg | grep ^PenaltyError:= | cut -d '@' -f1 | cut -f8
but it returns:
PenaltyError:=554 5.7.1 Error,... (10 Replies)
Is there a way to use a word as a delimiter with cut? Or is there a way to use sed or awk with a word as a delimiter? I don't care which program I use for a delimiter I just want to use a word as a delimiter. (2 Replies)
I need to cut or otherwise get the 4th and 5th position output of
for i in `date +%H` ; do vnstat --dumpdb | grep "h;$i" ; done
example output is:
h;13;1310318701;443;93
I only need ";443;93" from any given run of "for i in `date +%H` ; do vnstat --dumpdb | grep "h;$i" ; done"
Thanks... (3 Replies)
hi all,
suppose a string:
abc/def/ghi/jkl/mn.txt
and i want to get the file name without the path.
however, different files have different paths, therefore the number of delimiter is uncertain.
thanks so much! (3 Replies)
Hi all,
I have a number of strings like below:
//mnt/autocor/43°13'(33")W/
and i'm trying to get the numbers in this string, for example
431333
please help
thanks ahead (14 Replies)
i have list of names in a text file and I wanted to delete the commas en every line.
for example: inside the text is a list of names in it with commas after each line. I wanted to delete these commas. which command must I execute for this?
unix,
dale,
shawn,
aaron, (4 Replies)
Hi All-
We have a file data as below with delimiter as |#|
10|#|20|#|ABC
13|#|23|#|PBC
If I want to cut the 2nd field out of this, below command is not working as multiple pipe is causing an issue , it seems
cut -f2 -d"|#|" <file_name>
can you please help to provide the correct command... (7 Replies)
Discussion started by: sureshg_sampat
7 Replies
LEARN ABOUT DEBIAN
asntool
ASNTOOL(1) NCBI Tools User's Manual ASNTOOL(1)NAME
asntool - process ASN.1 module specifications
SYNOPSIS
asntool [-] [-B filename] [-D N] [-G] [-I str] [-J type] [-K str] [-L str] [-M filename,...] [-P str] [-Q] [-S filename] [-T filename] [-V]
[-X filename] [-Z] [-b N] [-d filename] [-e filename] [-f filename] [-l filename] -m filename [-o filename] [-p filename] [-t str]
[-v filename] [-w N] [-x filename]
DESCRIPTION
asntool reads, validates, and displays ASN.1 module specifications.
OPTIONS
A summary of options is included below.
- Print usage message
-B filename
Generate objects and code in files named filename.*
-D N Debugging level for code generation:
0 No debugging (default)
1 Shallow debugging
2 Deep debugging
3-9 Same as 2
-G Generate object loader .c and .h files
-I str Put "#include str" in generated .c file
-J type
Register type type with object manager
-K str In generated .c, force name of #included asn header to str
-L str Label registered type as str
-M filename,...
Search the ASN.1 modules in filename,... for external references
-P str XML module prefix for DOCTYPE
-Q Use quoted syntax form for generated include files
-S filename
Send debugging output to filename rather than stderr
-T filename
Dump ASN.1 tree to filename
-V Force CHOICE objects to use custom structures rather than ValNodePtrs, for compatibility with some old hand-coded object loaders.
-X filename
Write XML DTD to filename. If filename is "m", print each module to a separate file.
-Z Bit twiddle for optional zero value base slots
-b N Use N-byte buffers (default = 1024; anything between 512 and 10000 is legal)
-d filename
Read binary values from filename (requires -t)
-e filename
Write binary values to filename
-f filename
Write ASN.1 module to filename
-l filename
Write ASN.1 loader to filename
-m filename
Read ASN.1 module from filename
-o filename
Write header to filename
-p filename
Write print values to filename
-t str Expect binary values to have type str
-v filename
Read print values from filename
-w N Limit values in #defines to N bits (default = 31; anything between 31 and 128 is legal)
-x filename
Write XML data to filename
AUTHOR
The National Center for Biotechnology Information.
NCBI 2010-09-01 ASNTOOL(1)