Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1.  
  2. #!/bin/bash
  3. echo -e "\nFicheiro Original\n"
  4. if [ -f BaseDados3.txt ]
  5. then
  6.         more BaseDados3.txt
  7. fi
  8. cat BaseDados3.txt | grep 'Silva' | grep 'Samsung' | cut -f2,4 -d";" > BaseDado$
  9.  
  10. echo -e "\nFicheiro final\n"
  11. if [ -f BaseDadosTEMP3.txt ]
  12. then
  13.         more BaseDadosTEMP3.txt
  14. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement