ivan,
@ivan@hachyderm.io avatar

Every time I’d reach for xargs in a shell pipeline crunching a lot of inputs I’d always worry about there being too many arguments and blowing past the system exec limits, and manually try to limit invocations with a guesstimate of how many max args to use

Except I just learned that xargs can not only inspect the system and figure out how many args to use safely, it does it by default!

Easily one of my favorite utilities that went up in my list today

feld,
@feld@bikeshed.party avatar

@ivan @drwho Also when using find to execute commands use + instead of ; and it will do the same

isagalaev,
@isagalaev@mastodon.social avatar

@ivan this is what happens with software that keeps being debugged by engineers over decades, rather than being driven by management promotions.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • tacticalgear
  • megavids
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • JUstTest
  • lostlight
  • All magazines