You must log in or register to comment.
I never really fully understood awk and sed. I don’t know felt really complicated to me
Don’t get me wrong both are very useful commands
Yes, they’re bitches to learn/use.
Now with ChatGPT you can have a lot help with bash commands. It even helped me start with Python.
echo "Why use many word when few do trick" | awk '{for(i=1;i<=NF;i++)if(length($i)>3)printf("%s ",$i);print""}'
echo "Why use many word when few do trick" | sed -e 's/\b\w\{1,3\}\b//g'
echo "Why use many word when few do trick" | grep -oE '\b\w{4,}\b'