Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- descricao="^#"
- link="^http"
- while read linha; do
- [ "$linha" ] || continue # ignora linha se branca
- if [[ "$linha" =~ $descricao ]]; then
- k=$linha
- fi
- if [[ "$linha" =~ $link ]]; then
- echo "<a href=\"$linha\"> $k </a></br>"
- fi
- done < paginas.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement