I have a file with many lines which contain strings like [46ms] [986976ms] .. etc.
But with no rule regarding field separators or anything else.
I want to print ONLY THE STRING from each line , not the entire line !!!
For example from the lines :
I want to have the output :
Or even better only the numbers from each of these strings. I want it with awk because I need speed, I have very big files to work with.
Hi,
I know how to use awk to search some expressions like five consecutive numbers, , this is easy.
However, how do I make awk print the pattern that is been matched?
For example:
input: usa,canada99292,japan222,france59664,egypt223
output:99292,59664 (6 Replies)
Hi,
I have a file filled with search strings which have a blank in between and look like this:
S. g. Ehr.
o. Jg.
v. d. Chijs
g. Ehr.
Now i would like to search for the strings and it also shall return the next column after the match.
awk -v FILE="search_strings.txt" 'BEGIN {... (10 Replies)
Hi AWK Experts,
Following is the data :
BRH113 DD AA HH CA DD DD AA HH BRH091 A4 A6 AH H7 67 HH J8 9J BRH0991 AA D8 C23 V5 H7 BR2 BRH991 AA HH GG5 BT0 JJ0
I want the output to be alligned with the pattern matching "BRH" inthe line.
The output should be look like:
A]... (4 Replies)
Data:
Pattern Data Data Data
Data Data Data
Data Data Data
...
With awk, how do I print the pattern matching line, then the subsequent lines following the pattern matching line. Varying number of lines following the pattern matching line. (9 Replies)
Hi experts , im new to Unix,AWK ,and im just not able to get this right.
I need to match for some patterns if it matches I need to print the next few words to it.. I have only three such conditions to match… But I need to print only those words that comes after satisfying the first condition..... (2 Replies)
Hi,
I have a simple problem but i guess stupid enough to figure it out. i have thousands rows of data. and i need to find match patterns of two columns and print the number of rows. for example:
inputfile
abd abp 123
abc abc 325
ndc ndc 451
mjk lkj... (3 Replies)
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
I have two files and desire to use the strings from $1 of file 1 (file1.txt) as search criteria to find matches in $2 of file 2 (file2.txt). If matches are found I want to output the entire line of file 2 (file2.txt) followed by fields $2-$11 of file 1 (file1.txt). I can find the matches, I cannot... (7 Replies)
Discussion started by: jvoot
7 Replies
LEARN ABOUT DEBIAN
bwild
BWILD(8) Network backup, utilities BWILD(8)NAME
bwild - Bacula's 'wildcard' engine
SYNOPSIS
bwild [options] -f <data-file>
DESCRIPTION
This manual page documents briefly the bwild command.
This is a simple program that will allow you to test wild-card expressions against a file of data.
OPTIONS
A summary of options is included below.
-? Show version and usage of program.
-d nn Set debug level to nn.
-dt Print timestamp in debug output
-f <data-file>
The data-file is a filename that contains lines of data to be matched (or not) against one or more patterns. When the program is
run, it will prompt you for a wild-card pattern, then apply it one line at a time against the data in the file. Each line that
matches will be printed preceded by its line number. You will then be prompted again for another pattern.
Enter an empty line for a pattern to terminate the program. You can print only lines that do not match by using the -n option, and
you can suppress printing of line numbers with the -l option.
-n Print lines that do not match
-l Suppress lines numbers.
-i use case insensitive match.
SEE ALSO fnmatch(3)AUTHOR
This manual page was written by Bruno Friedmann <bruno@ioda-net.ch>.
Kern Sibbald 30 October 2011 BWILD(8)