I want to basically do this:
Get-Childitem -Recurse -filter "* *" -Force | foreach-object {
get-childitem $_ | select-object fullname |
Format-Table -HideTableHeaders -wrap |
out-string | cat $input
}
Cat here is an alias of powershell's get-content I think, but I frequently use it after writing bash code. I don't think that's the problem. It gives the error:
cat : The input object cannot be bound to any parameters for the command either because the command does not take
+ ... me | Format-Table -HideTableHeaders -wrap | out-string | cat $input }
Trying get-content:
Get-Childitem -Recurse -filter "* *" -Force | foreach-object {
get-childitem $_ | select-object fullname |
Format-Table -HideTableHeaders -wrap |
out-string | Get-Content $input
}
Similar error:
Get-Content : The input object cannot be bound to any parameters for the command either because the command does
not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
I also tried removing out-string.
Searching for the answer to this question is how I arrived at out-string, but it didn't work. I'm curious to know how to do it without assigning a variable if feasible.