tuxmartin

for loop text file

Oct 21st, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # ABC=$(pwd)
  4. # echo $ABC
  5.  
  6. for line in $(cat adresy.txt); do
  7.     linkedin-scraper $line
  8.     if [ $? == 0 ]; then
  9.         echo $line | php ...;
  10.     else
  11.         echo $line > chyby.txt
  12.     fi
  13.     echo $line
  14. done
Advertisement
Add Comment
Please, Sign In to add comment