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

That does not fulfill the original requirement set forth by the author:

> Here's a simple task: print a list of all the files with a txt extension in the current directory except for ignore_me.txt.

Your solution, and one of the the sibling comment solutions, will select all of those files, not print a list of them. Pedantic, perhaps, but the solution outlined by the OP is not mirrored by your solution.

This isn't automation, this isn't anything but simple file manipulation, that most graphical operating systems are incapable of; it's also a simple display of how graphical UIs fall short of the shell.



Okay, I missed the print part, so to continue,

5. Shift+right click the selected files, choose "Copy as path" (assume you are using Win7)

6. Paste the result in notepad


Nice trick, didn't know about that one. Thanks!




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

Search: