5 ms·
It is often useful to chain multiple sed commands and sometimes shuffle them around. In those cases I would need to keep changing the fist sed. Sometimes I need
by tonmoy 11mo ago
It is often useful to chain multiple sed commands and sometimes shuffle them around. In those cases I would need to keep changing the fist sed. Sometimes I need to grep before I sed. Using cat, tail and head makes things more modular in the long run I feel. It’s the ethos of each command doing one small thing
- southwindcg 11mo agoTrue, everything depends on what one is trying to do at the time.
- 1-more 11mo agoyeah I almost always start with `cat` but I still pipe it into `sed -n 1,4p`