Outside of the tech world, people seem to think that grabbing some columns out of a file and rearranging them or pasting them somewhere else is some kind of sorcery.
Outside of the tech world, people seem to think that grabbing some columns out of a file and rearranging them or pasting them somewhere else is some kind of sorcery.
You run vimv and you get your pwd, in the editor, and you can edit it like a text file. Then just quit and save and all of your filename changes get committed to that directory.
It's an extremely fast way to do a bunch of random and irregular edits to a big directory full of files.
Wow, this is really cool! Wish I had known about this sooner!
$ brew install moreutils
1) some guru out there has probably done a blog post on how to automate things with all of these.
2) I wanted to write something that could help anyone, not only people who are well versed in tech.
But I agree, most of the renaming/sorting/parsing in general, can be done with unix commands.
… in 1982, before the word "blog" even existed - and the advice/instructions still work just fine on any modern vaguely posix/unix-like command shell, including Mac and Windows which also didn't exist when the piece was written.
(Gopher search in "Unix - Utilities - Tutorials - sed and awk - brian kernighan" or dial in to your WELL bbs number and ask for a copy of "sed-awk-tutorial.txt" in the Software conference...)
The dev lead at an agency I worked at used to tell me using such old tools was going to hold me back. I've found the opposite to be the case.
I'm by no means an expert but the even my basic skills allow me to do things that they couldn't with fewer key strokes.
They also didn't complain when I created some bash scripts to automate pushing development databases around.
Fun!!
IME: I had much more time available to spend learning tools like that. Now that I work, have a family, etc, I don't have as much time to spend.
Agreed. I'd just add that there are many more tools along the same lines (just have to look in the various bin directories, and not to forget custom ones that people write in C / shell / other languages and combinations of the same), and that it is how they work together - because of a few powerful key concepts like pipes, I/O redirection, file wildcards, the various metacharacters starting with $ and others - that really makes the system powerful, more than any individual tool, though those play a part too.
$ brew install imagemagick
Fantastic stuff although I can never remember the commandline options.