windows - findstr - how to find user and display entire line? -


i have file contains multiple lines of data, e.g:

dfscmd /map "\server\path\area\testuser" "\new_server\path\testuser" "dfslink home drive: test, user"

dfscmd /map "\server\path\area\testuser1" "\new_server\path\testuser1" ""

i using findstr find username (e.g testuser) , entire line of query - so, if findstr fins line entitled testuser should display entire line of user:

finds: testuser should display: \new_server\path\testuser1

any idea how can this? can find user name no idea how output entire line?

thanks,

try findstr /c:searchstring fileyouaresearching.txt


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -