New category was born -> Technical excellence

Friends, originally i wanted to focus only on lean and agile but if i figure out something form technical perspective
which i consider as important i will publish it

lets start with FINDSTR

source -> ss64

Search for strings in files.

FINDSTR [options] [/F:file] [/C:string] [/G:file] [string(s)] [pathname(s)]

string Text to search for.
pathname(s) The file(s) to search.
/C:string Use string as a literal search string.
/G:file Get search string from a file (/ stands for console).
/F:file Get a list of pathname(s) from a file (/ stands for console).
/d dirlist Search a comma-delimited list of directories.

options may be any combination of the following switches:

/I Case-insensitive search.
/S Search subfolders.
/P Skip any file that contains non-printable characters

/L Use search string(s) literally.
/R Use search string(s) as regular expressions.(default)

/B Match pattern if at the Beginning of a line.
/E Match pattern if at the END of a line.

/X Print lines that match exactly.
/V Print only lines that do NOT contain a match.
/N Print the line number before each line that matches.
/M Print only the filename if a file contains a match.
/O Print character offset before each matching line.
/a color_attribute Display filenames in colour (2 hex digits)

When the search string contains multiple words (separated with spaces) then FINDSTR will show show lines that contains any one word – (an OR of each word) – this behaviour is reversed if the string argument is prefixed with /C.

Regular Expressions
(Searching for patterns of text)

The FINDSTR syntax notation can use the following metacharacters which have special meaning either as an operator or delimiter.

. Wildcard: any character

* Repeat: zero or more occurances of previous character or class

^ Line position: beginning of line
$ Line position: end of line

[class] Character class: any one character in set
[^class] Inverse class: any one character not in set

[x-y] Range: any characters within the specified range

\x Escape: literal use of metacharacter x

\ xyz\> Word position: end of word

Metacharacters are most powerful when they are used together. For example, the combination of the wildcard character (.) and repeat (*) character is similar in effect to the filename wildcard (*.*)

.* Match any string of characters

The .* expression may be useful within a larger expression, for example f.*ing will match any string beginning with F and ending with ing.


Search for “granny” OR “Smith” in MyFile.txt.
FINDSTR “granny Smith” MyFile.txt

Search for “granny Smith” in MyFile.txt
FINDSTR /C:”granny Smith” MyFile.txt
This is effectively the same as the FIND command

To search every file in the current folder and all subfolders for the word “Smith”,
regardless of upper/lower case use:

FINDSTR /s /i smith *.*

Note that /S will only search below the current directory

To find every line containing the word SMITH, preceeded by any number of spaces, and to prefix each line found with a consecutive number:

FINDSTR /b /n /c:” *smith” MyFile.txt

Finding a string only if surrounded by the standard delimiters
To find the word “computer”, but not the words “supercomputer” or “computerise”:

FINDSTR “\” MyFile.txt

Now assume you want to find not only the word “computer”, but also any other words that begin with the letters comp, such as “computerise” or “compete”


Example of a literal search

Searching a text file that contains the following

the quick brown fox
the darkbrown fox
the really *brown* fox

FINDSTR /r .*brown MyFile.txt
FINDSTR .*brown MyFile.txt
Will both match the word "brown" in all 3 lines

FINDSTR /L *brown* MyFile.txt
Will only match the last string

Using a script file

Multiple search criteria can be specified with a script file /G.
Multiple files to search can be specified with a source file /F.

When preparing a source or script file, place each item on a new line.

For example: to use the search criteria in Crit.txt to search the files listed in Files.txt and then store the results in the file RESULTS.txt:

FINDSTR /g:Crit.txt /f:Files.txt> Results.txt


When an item is not found FINDSTR will return an errorlevel >0

Echo 12G6 |FindStr /R “[0-9]”
If %ERRORLEVEL% EQU 0 echo The string contains one or more numeric characters

Echo 12G6 |FindStr /R “[^0-9]”
If %ERRORLEVEL% EQU 0 echo The string contains one or more non numeric characters

In early versions of FindStr /F:file a path length of more than 80 chars will be truncated.

“Twenty years from now, you will be more disappointed by the things you didn’t do than by the ones you did do. So throw off the bowlines, sail away from the safe harbour. Catch the trade winds in your sails. Explore. Dream. Discover.” – Mark Twain

This entry was posted in Technical excellence. Bookmark the permalink.

24 Responses to New category was born -> Technical excellence

  1. certified nursing assistant says:

    Great information! I’ve been looking for something like this for a while now. Thanks!

  2. Medicine Ball Exercises says:

    Do you people have a facebook fan page? I looked for one on twitter but could not discover one, I would really like to become a fan!

  3. Berenice Moring says:

    Hmm. I am not so sure about that…

  4. Casey Prettner says:

    Hey I just want to let you know, I really like the composition on your web site. But I am utilising Chromium on a machine running version 8.x of Crashbang Ubuntu and the design aren’t quite right. Not a strong deal, I can still basically read the articles and research for information, but just wanted to inform you about that. The navigation bar is kind of challenging to use with the config I’m running. Keep up the superb work!

  5. Lupe Cranker says:

    It’s not that I want to duplicate your internet site, but I really like the design. Could you tell me which theme are you using? Or was it tailor made?

  6. Live Sex Chat says:

    We are always ready to fulfil Your wildest fantasies. Tell us what You want.

  7. uk football betting says:

    Interesting post, I totally agree with other commenters, Keep us posting

  8. live sex cams says:

    was no longer a surgeon, but a minor god. Without a doubt, though it was the work that ended my career it was also its crowning moment.

  9. buysteroids says:

    This site is paradise for me, i love all these informations, thanks for your work dude. Waiting for more info

  10. Cheap Cam Sex says:

    I found myself looking forward to this “non-date” with great eagerness. I reminded myself this was just a ball game with a friend.

  11. incorporations says:

    Thanks for an idea, you sparked at thought from a angle I hadn’t given thoguht to yet. Now lets see if I can do something with it.

  12. webcam girls says:

    What was worse, in another week, his schedule was changing. He was being transferred to another route.

  13. webcam girls says:

    She had to hear it. She couldn’t go another minute without it.

  14. Агата says:

    Классный обьект для статьи.!

  15. Агния says:

    Симпатичный материал для статьи.! Прям как сюжет фильма этот материал вы откуда то своровали ? Я уже читал его ! :(

  16. josh hamilton jersey says:

    Although I initially said only inform us as soon as I click on recent comments are usually added each box with the spare time can present some additional ideas, I think 5 posted the exact same idea. There is no doubt, do not have any means possible to get rid off one of my systems with the experts say? Thanks!

  17. tryecrot says:

    Yes there should realize the opportunity to RSS commentary, quite simply, CMS is another on the blog.

  18. xenical prix says:

    Natural State from health in the maintain patient and the. On help Works our disturbance a small at is.

  19. Diablo 3 says:

    These are yours alright! . We at the least must get these folks stealing photographs to start out running a blog! They possibly just did a picture lookup and grabbed them. They seem very good however!

  20. ZolotoKL says:

    Предлагаю заработок! При минимальных вложениях от 100 долларов.
    Используя торговую систему инвест-систем
    можно зарабатывать от 20 до 300% прибыли от вложенной суммы денег. Тоговая система предоставляется совершенно бесплатно.
    Причем это уже вторая значительно переработанная версия.

    Торговый робот Auto-Profit полностью автоматический и обладает высокой доходностью,
    и продуктивностью. Несмотря на свой высокий уровень доходности, система обладает
    пониженными рисками. Советник (робот, торговая система) Auto-Profit является последней
    версией самого стабильного и проверенного временем советника для прибыльной
    мультивалютной торговли на рынке форекс. Советник может одновременно использовать
    в торговле любые из доступных инструментов торговли (валютные пары, CFD, металлы и т.д.)
    Преимущество данного советника заключается в полном анализе текущего состояния на рынке
    и принятии взвешенных решений, куда б, не пошла цена.
    Auto-Profit легко подстраивается под любую валютную пару и работает совершенно на
    всех временных периодах. В процессе работы советник контролирует открытую валютную
    позицию по каждой валюте с целью минимизации валютных рисков. Благодаря тому,
    что торговля ведется сразу в нескольких направлениях, советник не зацикливается
    на сопровождении одной открытой позиции, а открывает параллельные позиции по другим
    инструментам, таким образом, компенсируя риски и практически сводя возможность
    большой просадки к нулю. Советник не является “пипсовщиком”, и к его работе нет претензий
    со стороны ни одного из известных брокеров.
    Поскольку советник торгует сразу в оба направления, его прибыльность в разы превышает
    прибыльность своих предшественников.
    Auto-Profit это советник нового поколения, позволяющий не ограничиваться торговлей только
    одной или несколькими валютными парами, а использовать весь потенциал рынка и весь спектр
    возможных инструментов торговли!



    Зарабатываем. Я за месяц с 100 долларов дошел до 155.
    Сами посчитайте сколько это процентов. Хотя никогда раньше не торговал на форексе.

    Фарма партнерка. Можно хорошо зарабатывать на продаже виагры и т.п.
    делаем свою аптеку и раскручиваем до 50% заработка капает Вам.
    Выплаты регулярно. Очень рекомендую. Больше 50 баксов в день сейчас зарабатываю

    пишем мне в аську и я даю Вам приглашение 623605961

  21. SrantyAS says:

    Friends need to download something , but can not find here is everything you need, software, games, software , books, magazines, films, go game

  22. Фильм says:

    Хороший материал для статьи.!
    Меня Алина зовут а Вас ?

Leave a Reply