35
awk sed grep (lemmy.world)
top 4 comments
sorted by: hot top controversial new old
[-] hlqxz@lemmy.world 3 points 1 year ago

I never really fully understood awk and sed. I don't know felt really complicated to me

[-] hlqxz@lemmy.world 2 points 1 year ago

Don't get me wrong both are very useful commands

[-] XEAL@lemm.ee 5 points 1 year ago

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.

[-] cryomancer20x6@lemmy.sdf.org 1 points 1 year ago

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'

this post was submitted on 17 Jun 2023
35 points (97.3% liked)

linuxmemes

20882 readers
278 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS