💻 Software
Run xargs on the first word on a line
Fresh6 days ago
Mar 15, 202612045 viewsConfidence Score0%
0%
Problem
Is there a way to run xargs on only the first argument of a line? So if my input is the default output from a , like this: What I want to do is open all of the file names in Vim with something like . Can I tell to just grab the first word of each line? I know there are other ways of doing this, inc…
Error Output
./file1 "matching string" ./file2 "matching 2"
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Run xargs on the first word on a line
Low Risk
As others have stated, generic can't do this alone. Sticking with common Unix tools, you'll need to use the command to strip off the extra information before you send it to xargs. Assuming your input looks like this: You can use to run the commands.…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix