March 7, 2019 at 4:49 am
Hello ,
Can anybody help me with below :
compare-object (get-content file1.txt) (get-content file.txt)
| where { $_.SideIndicator -eq '<='}
InputObject SideIndicator
----------- -------------
02-06-2019 <=
02-07-2019 <=
02-09-2019 <=
02-10-2019 <=
Is there any way print only 1st column with different name like
Expected output :
Date
-----------
02-06-2019
02-07-2019
02-09-2019
02-10-2019
March 7, 2019 at 7:05 am
I guess my question would be, why aren't you using T-SQL to do this?
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2019 at 7:40 am
No Sir..Because I am fetching file1.txt details from another server.
March 7, 2019 at 8:13 am
A simple google search would have found the answer, add the following to end of your code
| select-object -Property InputObject
Far away is close at hand in the images of elsewhere.
Anon.
March 7, 2019 at 5:10 pm
Namrish - Thursday, March 7, 2019 7:40 AMNo Sir..Because I am fetching file1.txt details from another server.
That doesn't mean that you have to go outside of T-SQL to do this but, whatever. It would seem that Mr. Burrows has found an answer for you.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply