this post was submitted on 06 Nov 2023
549 points (94.8% liked)

linuxmemes

20846 readers
2356 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
 

Can't I go one week without having to uninstall and reinstall the damn deb file?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] ReginaPhalange@lemmy.world 2 points 10 months ago (1 children)

Can you break the sed command down for us sed newbies? The '-i.bak' thing is throwing me off

[โ€“] freeman@sh.itjust.works 2 points 10 months ago

Normally sed just passes along the edited text to STDout (printing in the terminal usually).

With the -i option it actually changes the input files. If you add an extension immediately after the -i it apparently makes a backup of the original with that extension.