The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. October 14, 2019, 07:13:31 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: Create anchor tags from the shell  (Read 2236 times)
thedarkness
Lifer
*****
Offline Offline

Posts: 585



View Profile
« on: April 25, 2007, 07:53:00 PM »

Code:
#!/bin/bash

while [ 1 -lt 2 ]
do
read -p "Label: " LABEL
read -p "URL: " URL
read -d "^" -p "Description: " DESC

echo;echo

{
echo "<a target=\"_blank\" href=\"http://$URL\"><font color=\"red\">$LABEL</font
></a> - $DESC"
echo "<br>"
echo "<hr>"

} >> links

done
Logged

"I want to be the guy my dog thinks I am."
 - Unknown
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!