How can I edit all the files returned by find in vi in Linux?
Fresh3 days ago
Mar 15, 202614788 viewsConfidence Score0%
0%
Problem
Something I find myself doing a lot is running a find command and then editing all of them in vi, which looks something like this: Is there a clever & simple way to do this all in one command line?
Error Output
> find . "*.txt" ./file1.txt ./file2.txt ./path/to/file3.txt > vi ./file1.txt ./file2.txt ./path/to/file3.txt
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I edit all the files returned by find in vi in Linux?
Low Risk
This should do the trick: Use Vim, it's better for your health. :-) The oft-overlooked option to makes all filenames (up to line length limits) appear in one line, i.e. you still get all the files opened in one session (navigated with for next and f…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix