2 ms·
> I can work with this. I add grep '^ D' to filter out any entries which were not deleted, and pipe it through awk '{ print $2 }' to extract just the filenames.
by kortilla 6y ago
> I can work with this. I add grep '^ D' to filter out any entries which were not deleted, and pipe it through awk '{ print $2 }' to extract just the filenames.
Best hope your file names don’t have spaces in them.
One of the downsides of the shell on Unix is that everything is usually text meant for humans so you have to spend an annoying amount of time dealing with delimiters that make it easy on the eyes but a pain in the ass.
- hxegon 6y agocouldn't agree more. waiting on nushell to mature so that rich data is the norm for shell stuff. learning to be comfy in shell is still worth it though. It's saved me, at minimum, hundreds of hours of work.