Display all of the lines in a file that contain "Raspberry" followed later
in the line by the letter "a"
I tried: grep Raspberry*a filename
that didn't work
Anyone know a solution? (1 Reply)
Hi guys
I've been trying to write a regular expression.
If I'm tryin to validate a sequence of characters as follows...
AB1-232-623482-743 43/3
where
a) any character after the "AB" can be any alphanumeric character
b) the " 43/3" part is optional
is there a quick neat way for me... (5 Replies)
this is how my xyz.log file loooks like :-
info ( 816): CORE1116: Sun ONE Web Server 6.1SP5 B08/17/2005 22:09
info ( 817): CORE5076: Using from
info ( 817): WEB0100: Loading web module in virtual server at
info ( 817): WEB0100: Loading web module in virtual server at
perl... (12 Replies)
could anybody tell me how i can add/append a new line using regular expression in vi on AIX?
i've tried several ways before, but all of them failed. e.g.
:%s/$/\n/
:%s/^/\v\r/
:( (1 Reply)
Hello!
I'm working with AWK, and i have this code:
/<LOOP_TIME>/,/<\/LOOP_TIME>/
I want that match every everything between <LOOP_TIME> and </LOOP_TIME>, but not if the line have a "#" before the tags.
Someone can help me?
Thanks! (6 Replies)
Witam, mam oto taki ciąg znaków:
8275610268 + 9012383215 =niepotrzebnytextPotrzebuję w bash'u wyciągnąć obie liczby (mają taką samą liczbę cyfr), zapisać je do osobnych zmiennych, ale coś nie idzie, kombinowałem z grepem, ale nie potrafię skleić tego wyrażenia regularnego, no i potem przypisać do... (7 Replies)
Hello,
I would like to replace Line 187 of my file named run_example.
The original line is below, including the spaces:
celldm(1) = 6.00,
I want it to become something like
celldm(1) = 6.05,
or
celldm(1) = 6.10,
where the number is stored in a variable called... (6 Replies)
I have two input files (given below) and to compare each line of the File1 with each line of File2 starts with '>sample1'. If a match occurs and that matched line in the File2 contains another line or sequence of lines starting with "Chr" they have to be displayed in output file with that sample.... (8 Replies)
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Hello,
I have big files which I wanna filter them based on first column.
first column should be one of these strings: chr2L || chr2R || chr3L || chr3R || chr4 || chrX
and something like chr2Lh or chrY or chrM3L is not accepted.
I used the following command:
awk '{ if ($1=="chr2L" ||... (5 Replies)
Discussion started by: @man
5 Replies
LEARN ABOUT DEBIAN
x2sys_merge
X2SYS_MERGE(1gmt) Generic Mapping Tools X2SYS_MERGE(1gmt)NAME
x2sys_merge - Merge an updated COEs tables
SYNOPSIS
x2sys_merge -Amain_COElist.d -Mnew_COElist.d
DESCRIPTION
x2sys_merge will read two crossovers data base and output the contents of the main one updated with the COEs in the second one. The second
file should only contain updated COEs relatively to the first one. That is, it MUST NOT contain any new two tracks intersections (This
point is NOT checked in the code). This program is useful when, for any good reason like file editing NAV correction or whatever, one had
to recompute only the COEs between the edited files and the rest of the database.
-A Specify the file main_COElist.d with the main crossover error data base.
-M Specify the file new_COElist.d with the newly computed crossover error data base.
OPTIONS
No space between the option flag and the associated arguments.
EXAMPLES
To update the main COE_data.txt with the new COEs estimations saved in the smaller COE_fresh.txt, try
x2sys_merge -ACOE_data.txt -MCOE_fresh.txt > COE_updated.txt
SEE ALSO x2sys_binlist(1), x2sys_cross(1), x2sys_datalist(1), x2sys_get(1), x2sys_init(1), x2sys_list(1), x2sys_put(1), x2sys_report(1)GMT 4.5.7 15 Jul 2011 X2SYS_MERGE(1gmt)