In PowerShell, and assuming both files have exactly the same number of lines:
$f1 = Get-Content file1
$f2 = Get-Content file2
for ($i = 0; $i -lt $f1.Length; ++$i) {
$f1[$i] + "`t" + $f2[$i]
}
More Related Contents:
- Need to extract value of attribute from xml from Command promt [closed]
- File / folder chooser dialog from a Windows batch script
- Different behaviour and output when piping in CMD and PowerShell
- FORFILES date -after- (date calc in cmd file)
- Watch file for changes and run command with powershell
- CMD pipe different form Powershell pipe?
- How to run a PowerShell script within a Windows batch file
- Merging multiple CSV files into one using PowerShell
- Escaping the and (&) sign in Powershell
- Convert a small PS script into a long line in a .BATch file
- How to run an application as “run as administrator” from the command prompt? [closed]
- How can I get the file system location of a PowerShell script?
- How do I concatenate two text files in PowerShell?
- How can I run a PowerShell script with white spaces in the path from the command line?
- How to run an installation in /silent mode with adjusted settings
- Running CMD command in PowerShell
- How to call batch script from Powershell?
- PowerShell The term is not recognized as cmdlet function script file or operable program
- How can I source variables from a .bat file into a PowerShell script?
- How to run powershell command in batch file
- Batch file v PowerShell script
- How do I write the value of a single property of a object?
- How can I store output from Format-Table for later use
- How can I use powershell to run through an installer?
- How do I echo and send console output to a file in a bat script?
- PowerShell and process exit codes
- Gracefully stopping in Powershell
- weird delay of the output of an object when followed by start-sleep (or until script end)
- Is there an alternative to GUID when using msiexec to uninstall an application?
- Getting “Can’t find the drive. The drive called ‘IIS’ does not exist.”