Tuesday, June 27, 2023

Merge multiple files

### Following code snippet is used to merge multiple fiels 


```sh
$Logpaths=("D:\Logs\App1\*.txt","D:\Logs\*.log","D:\MsgLog\*.log","D:\ErrorLog\*.log")

Get-Content $Logpaths |Set-content "D:\Logs\merge_log.txt"
```

No comments:

Post a Comment