PowerShell: Show Fullpath, No Truncate Lines
Show File Full Path
![pwsh normal output 2023-11-22](i/pwsh_normal_output_2023-11-22.png)
to make PowerShell output show full path, in a single line, do:
# list file, show full path in single lines dir | select fullname
![pwsh show fullpath 2023-11-22](i/pwsh_show_fullpath_2023-11-22.png)
🛑 WARNING: PowerShell now may truncate lines with triple dots, at terminal width.
![pwsh truncated lines 2023-11-22 rnB4n](i/pwsh_truncated_lines_2023-11-22_rnB4n.png)
Do Not Truncate Lines (do soft-wrap)
to make PowerShell output not truncate lines, Pipe it to
ForEach-Object {Write-Host $_}
Get-ChildItem -Recurse -file -filter "*pdf" | ForEach-Object {Write-Host $_}
Bad Solutions
the following does not work.
Format-Table -wrap
Format-List
dir | select fullname | Format-Table -wrap
![pwsh wrap lines 2023-11-22](i/pwsh_wrap_lines_2023-11-22.png)