hi,
how would i extract a range of lines in a file by using the line number? ex: file contains:
1 title
2 i want
3 this part
4 to be taken out
5 from this file
6 and sent to
7 another file
8 not needed
9 end of file
In this case, i want to copy line number 2 to 7 on a new... (2 Replies)
Hello,
I have a very large text file with about 2 million lines.
Each of the lines starts like..
SNP_12345678 A 1212, 121, 343, ...
SNP_12345678 B 4567, 567, 454, ...
and so on.
I want to extract specific SNPs and plot them by GNUplot or excel.
The file is too large to be opened by text... (1 Reply)
Hi
I want to extract certain text between two line numbers like
23234234324 and
54446655567567
How do I do this with a simple sed or awk command?
Thank you.
---------- Post updated at 06:16 PM ---------- Previous update was at 05:55 PM ----------
found it:
sed -n '#1,#2p'... (1 Reply)
I regularly extract lines of text from files based on the presence of a particular keyword; I place the extracted lines into another text file. This takes about 2 hours to complete using the "sort" command then Kate's find & highlight facility.
I've been reading the forum & googling and can find... (4 Replies)
I would like to extract specific lines from a file and output them into another file.
Each line in the file has a unique ID, and I have a specific list of IDs (that are not consecutive) that I wish to extract.
for example:
1 aaaaaa bbbcb cccccc
2 aaaaaa bbbbb cccccd
3 aaaaaa bbbab... (6 Replies)
Hi,
I have a file which contains DDL statements- CREATE TABLE, CREATE INDEX, ALTER TABLE etc.
I have to only pick CREATE TABLE statements from the file-
Source :
----------------------------------------------
--DDL for table abc
--------------------------------------------
CREATE TABLE... (4 Replies)
Hi friends,
This is sed & awk type question.
I have a text file which has numbers spread all over the file. I want to sum the series of numbers whenever i find it and produce an output file with the sum. For example
###start of input text file ####
abc
def
ghi
1
2
3
4
kjld
random... (3 Replies)
Dear all,
Greetings.
I would like to ask for your help to extract lines with specific words in addition 2 lines before and after these lines by using awk or sed.
For example, the input file is:
1 ak1 abc1.0
1 ak2 abc1.0
1 ak3 abc1.0
1 ak4 abc1.0
1 ak5 abc1.1
1 ak6 abc1.1
1 ak7... (7 Replies)
Hi there,
I need a help with extracting data from tab delimited file which look like this
#CHROM POS ID REF ALT Human Cow Dog Mouse Lizard
chr2 3033 . G C 0/0 0/0 0/0 1/1 0/0
chr3 35040 . G T 0/0 0/0 ./. 1/1 0/1
chr4 60584 . T G 1/1 1/1 0/1 1/1 0/0
chr10 7147815 . G A 0/0 1/1 0/0 0/0... (9 Replies)
I have a folder containing text files. I need to extract specific lines from the files of this folder based on another file input.txt. How can I do this with awk/sed?
file1
ARG 81.9 8 81.9 0
LEU 27.1 9 27.1 0
PHE .0 10 .0 0
ASP 59.8 11 59.8 0
ASN 27.6 12 27.6 0
ALA .0 13 .0 0... (5 Replies)
Discussion started by: alanmathew84
5 Replies
LEARN ABOUT OSF1
ace
ace(7) Miscellaneous Information Manual ace(7)NAME
ace - Serial communications interface
SYNOPSIS
controller ace0 at * slot ? vector aceintr
DESCRIPTION
The ace serial line controller provides a serial communications interface on DEC 2000, AlphaStation, and AlphaServer platforms. The serial
communications ports that are controlled by ace adhere to the RS-232 standard and can operate at rates from 50 to 115200 baud (see tty(7)).
These communications ports support serial-line printers, modems, and terminals.
In alternate console configurations (that is, no graphics head), the terminal to be the system console must be connected to the port that
is mapped to /dev/tty00. (See ports(7) for information about mapping AlphaStation and AlphaServer port labels to device pathnames.) Cur-
rently, some processors that use the ace driver limit the serial console port to 9600 baud, 8-bit, no parity and no modem support. However,
some processor consoles do support baud rates other than 9600 baud and allow the use of modems as console devices. Consult your hardware
documentation to determine the type of console support your system provides.
The driver for the ace interface supports hardware flow control using the Request to Send (RTS) and Clear to Send (CTS) signals. When
hardware flow control is enabled, the flow of input data is controlled by the RTS signal and the flow of output data is controlled by the
CTS signal. If the CTS signal is off, the driver suspends output to that line until the CTS lead is reasserted. Likewise the driver turns
off the RTS lead to tell the device connected to the line to stop sending data as a result of congestion on the host side. When the condi-
tion clears, the driver turns on the RTS lead to tell the device to resume sending data.
The DCD (carrier detect) timer value defaults to 2 seconds. This value may be changed if your modem hardware requires a different value.
the change can be made in the /etc/sysconfigtab file as follows:
ace: dcd_timer=n
where n is the time interval in seconds, and can be set to 0 (no timeout), 1, or 2 seconds. Alternatively, you can use the sysconfig com-
mand to set the same time interval option as follows:
# sysconfig -r ace dcd_timer=[n]
If you use the sysconfig command, the value will not be preserved when the system is rebooted. To preserve the setting, put the entry in
the /etc/sysconfigtab file
NOTES
If you are using the alternate system console to perform kernel debugging, you must change the kdebug entry in the /etc/remote file to use
/dev/tty01; when the kernel is running in debugging mode, no other application can use the port. See Kernel Debugging for information on
setting up your system for kernel debugging.
RESTRICTIONS
Unless alternative specifications are stated in your system hardware documentation, data communications equipment attached to the console
serial port in alternate console configurations must be set to 9600 baud, 8-bits, no parity. If a serial console is being used, /dev/tty00
cannot be opened by another process. The ace driver enforces this restriction.
Baud rates greater than 38400 are not supported on the two primary serial ports on the DEC 2000 system. However, if you use an ISA serial
or modem card that is capable of communicating at the higher rates, the higher rates are supported.
FILES
console terminal local terminal local terminal
RELATED INFORMATION MAKEDEV(8), console(7), devio(7), modem(7), ports(7), tty(7)
Kernel Debugging
System Administration delim off
ace(7)