Skip to main content

Bulk change default address for all existing accounts

Comments

4 comments

  • SimpleTechGuy
    I found the following post from several years ago, but it's not working. I'm getting -bash: replace: command not found
    0
  • SimpleTechGuy
    Also found this post from a couple of years ago but the OP never provided a script. Honestly it would be easier for me to do them manually that trying to figure out how to write a script. Hoping there might be an easier way since 2 years ago.
    0
  • vanessa
    maybe just delete and append the line. here's a couple commands: sed '/^*:/d' -i /etc/valiases/* sed '1 a*: :blackhole:' -i /etc/valiases/*
    0
  • SimpleTechGuy
    Thank you @vanessa, I already went the manual route, but I'll try this when I get ready to switch back to :fail.
    0

Please sign in to leave a comment.