I want to use find to locate files with two different extensions, and run a grep on the results. The closest I have gotten is incredibly slow and ugly:
for i in `ls -laR|egrep -e '(.js|.css)'`; do find . -name $i -print|xargs grep -H searchBg; done;
This method makes my eyes bleed. Help! ;)
... (2 Replies)
can't figure out a way to delete multiple empty lines but keep single empty lines in a file, file is like this
#cat file
1
2
3
4
5
6
-
What I want is
1
2 (6 Replies)
Let's say I'm trying to match potentially multiple sets of parentheses. Is there a way in a regular expression to force a match of closing parentheses specifically in the number of the opening parentheses?
For example, if the string is "((foo bar))", I want to be able to say "match any number of... (7 Replies)
I've got a longish log file with content such as
Uplink traffic:
Downlink traffic:
I want to parse the log file and remove any line that contains the string "Uplink traffic:" at the beginning of the line, but only if the line following it beginnings with the string "Downlink traffic:" (in... (7 Replies)
Hi,
I've a logfile which i need to parse and get the logs depending upon the user input. here, i'm providing an option to enter the string which can be matched with the log entries.
e.g. one of the logfile entry reads like this -
$str = " mpgw(BLUESOAPFramework):... (6 Replies)
I have a large file of many pairs of sequences and their headers, which always begin with '>'
I'm looking for help on how to retain only sequences (and their headers) below a certain length. So if min length was 10, output would be
I can filter by length, but I'm not sure how to exclude... (3 Replies)
Dear Perl users,
Could somebody help me how to fix my code so I can get my desired output.
Here is the data:
Pattern Gabriel
halo1
halo2
end
Pattern Andreas
halo1
halo2
endI want to grep multiple lines between the pattern /Pattern Gabriel / and /end/.
Then I will store the output into... (6 Replies)
I am trying to match mulitple (3) variables. I found the sub given below on the web which works well when all vars are defined. But there are situations where one or two will not be defined (at least one will always be defined.)
Example of the variable content possibilities
The sub found... (4 Replies)
data.txt:
hellohellohello
mellomello1mello
tellotellotellotello
bellobellowbellow
vellow
My attempts:
egrep ".*mello1\n.*bellow" data.txt
awk '/.*mello1.*\nbellow/' data.txt
how can i search for patterns that are on different lines using simple egrep or awk?
i only want the... (7 Replies)
Discussion started by: SkySmart
7 Replies
LEARN ABOUT DEBIAN
ktoblzcheck
KTOBLZCHECK(1) General Commands Manual KTOBLZCHECK(1)NAME
ktoblzcheck - Check Account and BLZ (bank routing code)
SYNOPSIS
ktoblzcheck [--returncode] [--file=<datafile>] <bank-id> <account-id>
DESCRIPTION
This manual page documents briefly the ktoblzcheck application.
ktoblzcheck is a program that will check a given account and blz for the bank being valid and the account being valid using some checksum
calculations, if supported for that particular bank. The output is the clear-text name of the bank specified by <bank-id>, and whether the
given <account-id> is a valid account number at this bank.
OPTIONS
<bank-id>
This is the Bankleitzahl (bank routing id), actually it is the account-id of that particular bank at the Deutsche Bundesbank.
<account-id>
This is the account number you wish to verify. If the checksum method of the bank specified by the <bank-id> is supported, you will
get the account-id verified, i.e. if it is a valid account-id at that particular bank.
--returncode
If given, the result is returned via the returncode and no output on the terminal. The following returncodes are possible: 0:
account and bank are ok 1: unknown, e.g. checksum not implemented or such 2: account and/or bank not ok 3: bank not found
--file=<datafile>
Specifies the file with the bankdata. This file can be obtained via the internet from the Deutsche Bundesbank on address
http://www.bundesbank.de/zahlungsverkehr/zahlungsverkehr_bankleitzahlen_download.php
Beware! This page is in German only.
BUGS
No bugs are known at this time. Only certain checksum algorythms are supported as of now, so please don't complain if you always get
"unknown" as return value.
AUTHOR
This manual page was written by Jens Gecius <jens@gecius.de> for the Debian GNU/Linux system. Authors of ktoblzcheck are Fabian Kaiser
<fabian@openhbci.de> and Christian Stimming <stimming@tuhh.de>.
August 3, 2003 KTOBLZCHECK(1)