Тёмный

Powershell - Recurse through subfolders & files to identify the string pattern| Very useful script 

AutoBot by Rahul
Подписаться 2,6 тыс.
Просмотров 2,3 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@mortenlund1418
@mortenlund1418 Год назад
Thanks for sharing. Just what I was looking for.
@Chudi95
@Chudi95 Год назад
Hi Rahul, let's say i just want to move any file containing the the search word, say autobot, to a new folder. Please, how would i do that? Copy the file and paste in a new folder that is...
@autobotbyrahul
@autobotbyrahul Год назад
Hello Chudi, You can use the Move-item command to move the files. Move-Item -Path “filepath” -Destination “destination folder” You need to use this inside the loop.
@Chudi95
@Chudi95 Год назад
@@autobotbyrahul Thank you
@jitendrasharma8659
@jitendrasharma8659 2 года назад
Hi, How to write script for "matching regex pattern inside the file (file content) and then change those files extension, if regex pattern matches" ?
@autobotbyrahul
@autobotbyrahul 2 года назад
Hello, in this video also we are searching for patterns in the files. If the requirent is something different plz explain with an example. Thanks
@rahulunnikrishnan9423
@rahulunnikrishnan9423 2 года назад
I have added a new video in the playlist to understand the steps in powershell for searching and replacing a value in the files.
@khusbookhatun9410
@khusbookhatun9410 2 года назад
My requirement is like identify a particular pattern and then replace with a different pattern in the java file.Could you please guide me on the same.
@autobotbyrahul
@autobotbyrahul 2 года назад
Give me sometime... I can do a video on this and upload.
@venkadeshp2484
@venkadeshp2484 2 года назад
my requirement is within same file to find particular keyword it will get output.how to do powershell script.for example i have aa.txt file kept in my local drive.in that .aa.txt i want to find keyword "windows"
@autobotbyrahul
@autobotbyrahul 2 года назад
You can use the same script and give the full path of the file
@Million_Dreams_49
@Million_Dreams_49 2 года назад
How to find the unmatched files in two different paths in powershell pls help me??
@autobotbyrahul
@autobotbyrahul 2 года назад
Consider you have 100 files and do you need to search for some pattern in these 100 files and list down the files that doesn't match?
@Million_Dreams_49
@Million_Dreams_49 2 года назад
@@autobotbyrahul in 1 folder i have some sub folders and files another folder also same.now the thing is i need find the unmatched files or matched files in both dires
@autobotbyrahul
@autobotbyrahul 2 года назад
Please check the below blog. devblogs.microsoft.com/scripting/easily-compare-two-folders-by-using-powershell/#:~:text=To%20compare%20two%20folders%20I%20perform%20the%20following,a%20collection%20of%20fileinfo%20objects.%20...%20More%20items
@Million_Dreams_49
@Million_Dreams_49 2 года назад
@@autobotbyrahul its not working anna.....
Далее
PowerShell Tutorials : Reading PDF files
11:51
Просмотров 12 тыс.
BASH scripting will change your life
14:18
Просмотров 1 млн
How to Vim in 2023: Tips and Tricks
15:53
Просмотров 429 тыс.
Comparing data in PowerShell
6:31
Просмотров 3,3 тыс.
Monster magnet meets microwave magnetron...
17:44
Просмотров 41 тыс.
Copy file to and from Powershell remote session
4:36
PowerShell Copy Item examples
22:04
Просмотров 4,7 тыс.
How to Use PowerShell’s Grep (Select-String)
6:49
Просмотров 3,8 тыс.