Hi all,
I have a text file of 143 lines. The I don't want all lines but want to retain line format.
How can I extract lines 34, 65, 68, 70 (plus 7 others) easliy?
I have found some example head/tail n lines and some sed -n examples that have been shown for single line or mass consecutive... (2 Replies)
Hi,
I have a text file with 15 columns and i want to extract those lines of which 7th column is ABCD.
I think we can do this using awk but could not frame the command. Please help.
TIA
Prvn (2 Replies)
I have a file that looks like this:
>cel-miR-35 MIMAT6 C eles le
UCACCGGGUGGAAACUAGCAGU
>hsa-let-7a MI062 H sa
UGAGGUAGUAGGUUGUAUAGUU
>cel-miR-36 M007 Ca ele
UCACCGGGUGAAAAUUCGCAUG
>hsa-let-7b MI63 Hmo sns le
UGAGGUAGUAGGUUGUGUGGUUI would like to extract all the lines that start with... (7 Replies)
Hi
I have a text file with the following information:
# List 1 (first header)
test 1
test 2
test 3
...
# Trials (second header)
round 1
run 5
...
and so on
I want to create a script, which based on some criterias with return only the list of lines between the header. I... (9 Replies)
hi,
i have two files.
file1.sh
echo "unix"
echo "linux"
file2.sh
echo "unix linux forums"
now the output i need is
$./file2.sh
unix linux forums (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)
Dear experts
I am new bee to scripting...
Pl. help me getting the lines between two strings.
I am getting the oracle sql output as below. and would like to get the time from system date compare with the date in sql output file and extract the lines.
if system time is 2012-07-01 19:15:00 get... (1 Reply)
I have hundreds of files to process. In each file
I need to look for a pattern then
extract value(s) from next line and then
search for value(s) selected from point (2) in the same file at a specific position.
HEADER ELECTRON TRANSPORT 18-MAR-98 1A7V
TITLE CYTOCHROME... (7 Replies)
Hi all,
I have a file with many records with information as given below
ID A16L2_HUMAN Reviewed; 619 AA.
AC Q8NAA4; A5PL30; B2RPK5; Q658V4; Q6PID3; Q8NBG0;
DT 20-MAY-2008, integrated into UniProtKB/Swiss-Prot.
DT 20-MAY-2008, sequence version 2.
DT ... (1 Reply)
Data file example
I look for primary and * to isolate the interesting slot number.
slot=`sed '/^primary$/,/\*/!d' filename | tail -1 | sed s'/*//' | awk '{print $1" "$2}'`
Now I want to get the Touch line for only the associate slot number, in this case, because the asterisk... (2 Replies)
Discussion started by: popeye
2 Replies
LEARN ABOUT LINUX
git-mailsplit
GIT-MAILSPLIT(1) Git Manual GIT-MAILSPLIT(1)NAME
git-mailsplit - Simple UNIX mbox splitter program
SYNOPSIS
git mailsplit [-b] [-f<nn>] [-d<prec>] [--keep-cr] -o<directory> [--] [(<mbox>|<Maildir>)...]
DESCRIPTION
Splits a mbox file or a Maildir into a list of files: "0001" "0002" .. in the specified directory so you can process them further from
there.
Important
Maildir splitting relies upon filenames being sorted to output patches in the correct order.
OPTIONS
<mbox>
Mbox file to split. If not given, the mbox is read from the standard input.
<Maildir>
Root of the Maildir to split. This directory should contain the cur, tmp and new subdirectories.
-o<directory>
Directory in which to place the individual messages.
-b
If any file doesn't begin with a From line, assume it is a single mail message instead of signaling error.
-d<prec>
Instead of the default 4 digits with leading zeros, different precision can be specified for the generated filenames.
-f<nn>
Skip the first <nn> numbers, for example if -f3 is specified, start the numbering with 0004.
--keep-cr
Do not remove
from lines ending with
.
GIT
Part of the git(1) suite
Git 1.8.5.3 01/14/2014 GIT-MAILSPLIT(1)