I need something like "grep", but instead of showing just the matches, it actually outputs everything, but the exit status points if the match appeared or not.
Conversation
Notices
-
Embed this notice
Biason::Julio::new(); (juliobiason@functional.cafe)'s status on Wednesday, 06-Nov-2024 03:46:07 JST Biason::Julio::new(); -
Embed this notice
Biason::Julio::new(); (juliobiason@functional.cafe)'s status on Wednesday, 06-Nov-2024 03:47:21 JST Biason::Julio::new(); What I'm trying to do: Only when docker pull shows that the image was updated, I need to do a prune to remove the older images.
I could do that all the time, but I feel it is a waste to do so when the image didn't change and the current image is not dangling.
-
Embed this notice
Thomas (tfb@functional.cafe)'s status on Wednesday, 06-Nov-2024 05:35:25 JST Thomas @juliobiason grep -l for the exit status, then cat the listed files ?
-
Embed this notice