Advertisement
sergio_educacionit

file_reader.sh

Feb 12th, 2025
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. archivo="/ruta/al/fichero/de/suaurios"
  4.  
  5. while IFS= read -r linea; do
  6.  
  7.         uid=$(echo $linea | cut -d ":" -f 3)
  8.  
  9.         if [ $uid -le 999 ]; then
  10.  
  11.                 continue
  12.  
  13.         fi
  14.         echo $linea
  15.  
  16. done < "$archivo"
  17.  
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement