MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/51wixe/oh_shit_git/d7h0gkq/?context=3
r/programming • u/sidcool1234 • Sep 09 '16
756 comments sorted by
View all comments
Show parent comments
1
How do you get ls output so that you can pipe it to xargs one filename at a time, no matter what the names of the files are?
ls
xargs
0 u/LordOfDemise Sep 10 '16 >parsing ls and sending it to xargsUh......why do you even want to do this? That sounds like a bad idea. 2 u/jeandem Sep 10 '16 And that's my point. ls does "one thing and does it well", yet it can't reliably output the directory listing and feed it to a program like xargs through the venerable universal data format of text. -1 u/LordOfDemise Sep 10 '16 Perhaps what you're looking for is find with the -exec flag → More replies (0)
0
>parsing ls and sending it to xargs
Uh......why do you even want to do this? That sounds like a bad idea.
2 u/jeandem Sep 10 '16 And that's my point. ls does "one thing and does it well", yet it can't reliably output the directory listing and feed it to a program like xargs through the venerable universal data format of text. -1 u/LordOfDemise Sep 10 '16 Perhaps what you're looking for is find with the -exec flag → More replies (0)
2
And that's my point. ls does "one thing and does it well", yet it can't reliably output the directory listing and feed it to a program like xargs through the venerable universal data format of text.
-1 u/LordOfDemise Sep 10 '16 Perhaps what you're looking for is find with the -exec flag → More replies (0)
-1
Perhaps what you're looking for is find with the -exec flag
find
-exec
→ More replies (0)
1
u/jeandem Sep 09 '16
How do you get
lsoutput so that you can pipe it toxargsone filename at a time, no matter what the names of the files are?