Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

jcgl already answered this well. My example was merely to show that you can go from PS objects to old fashioned text processing without issues. Any non-PS tool will just receive the text representation of the objects – exactly as you see them in the terminal. I wasn't trying to imply you can go back and forth between them like magic (which should be obvious).

Once you have lost the objects and work with simple text, you have to use the text processing tools of PS, if that's what you want to do. To continue your example:

  gc *.txt | measure | cat | sls count 
sls (Select-String) is like grep.

(Note: this example is nonsense, just to show that it works)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: