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

Out of everything in this thread, this was the most interesting to me. I didn't know you could pipe a list of files to mv. It makes sense, I guess I just never tried it because anything I would have used it for, I would have used find or xargs instead.


This is PowerShell and it doesn't work on *nix machines because ls and mv are native binaries.

Would work on Windows, would work on *nix if change it to

    gci -Recurse -Filter *.jpg | move dest_dir




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

Search: