Category Archives: oneline script

Search for text in files

Search for text in files How to Search for text in files? Some time we require to find a files that contain specific text, search files for text is necessary if you have a multiple files and you want to find text in files, let say you have various log files and you want to… Read More »

To check the list of Users Group Membership

Check the list of Users Group Membership List I have used “for” command to read the input file (list.txt) and execute the “net user” command for each user and store the result in output.txt file For /f %a in (list.txt) do net user %a /dom >> output.txt Note: run this command from where the input… Read More »