Sponsored Content
Top Forums Shell Programming and Scripting Using Perl to add hyperlink to html files Post 302142838 by Raynon on Monday 29th of October 2007 10:31:15 PM
Old 10-29-2007
Quote:
Originally Posted by porter
Code:
#!/usr/bin/perl

print "<html>\r\n";
print "\t<head>\r\n";
print "\t\t<title>My webpage</title>\r\n";
print "\t<head>\r\n";
print "\t<body>\r\n";
print "\t\t<a href=\"some-url\">XX</a> 20 \$50<br>\r\n";
print "\t\t<a href=\"some-url\">YY</a> 30 \$60<br>\r\n";
print "\t\t<a href=\"some-url\">ZZ</a> 40 \$70<br>\r\n";
print "\t</body>\r\n";
print "</html>\r\n";

Hi Porter,

How about the ftp part ? How can i ftp this whole portion over?
I tried to copy everything into a file named webfile by using print "<html>\r\n"; > webfile but it's showing syntax error.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Moving .html files while preserving hyperlink integrity?

Hi, I use a Windows-based program called <a href="http://www.coast.com">Coast Webmaster</a> for moving large numbers of HTML files in one directory to another directory. As you drag and drop each file or entire directory of files to new locations in the web root directory tree, this utility... (1 Reply)
Discussion started by: Buddy123
1 Replies

2. Shell Programming and Scripting

perl and html

hi. im very new to perl. is it possible to fill up a web form and submit it using perl? example, i would like to sign up for a yahoo account though a perl script (ofcourse, granting the "type the characters as shown in imgage" is absent)? (8 Replies)
Discussion started by: marcpascual
8 Replies

3. Shell Programming and Scripting

How to add Hyperlink with shell script(using mail client)

Hi ! plz let me suggest ..... By using of mail client methods I am trying to send mails through shell script. like.... To: From: Sub: Body: some sample text..... <my requirement is how to add hyper link to some text(click me) ... (0 Replies)
Discussion started by: rsukumar
0 Replies

4. Shell Programming and Scripting

HTML parsing by PERL

i have a HTML report file..its in attachment(a part of the whole report is attached..name "input html.doc").also its source is attached in "report source code.txt" i just want to seperate the datas like in first line it should be.. NHTEST-3848498958-NHTEST-10.2-no-baloo a and so on for whole... (3 Replies)
Discussion started by: avik1983
3 Replies

5. UNIX for Dummies Questions & Answers

Create Hyperlink

Hi Everybody, I am new to this forum. I need help. Here is the details: I have a .csv file in unix server which is 2MB size I am attaching this file and sending to all users who are in my team thru Microsoft outlook. All users requested me to send the link where we can click and open... (1 Reply)
Discussion started by: utham1
1 Replies

6. Shell Programming and Scripting

Perl + Korn + HTML

I have a perl script that prints up the html code and executes a few korn scripts to populate the web code. Disclaimer === I can throw together some korn scripts pretty quick. This code changes pretty frequently. I don't know enough about perl to do everything I need. One day maybe I'll get... (4 Replies)
Discussion started by: i9300
4 Replies

7. AIX

hyperlink settings

Does anyone know the hyperlink settings to look at an AIX5L box? (1 Reply)
Discussion started by: vbagwell
1 Replies

8. Web Development

Dynamic Hyperlink

Hi Guys/ Gals, I am trying to create a link based on the current date however it doesnt seem to work. Could someone please point me in the right direction. Here is what i have so far.. <html> <head> <script type="text/javascript" language="JavaScript"> function... (2 Replies)
Discussion started by: robfwauk
2 Replies

9. UNIX for Dummies Questions & Answers

Writing an HTML file in perl

I'm writing a perl script that writes an html file. use Tie::File; my ($dir) = @ARGV; open (HTML,">","$dir/file.html") || die $!; #-----Building HTML file--------------------------- print HTML "<!DOCTYPE html> <html> <head> <title>Output</title> <link... (3 Replies)
Discussion started by: jrymer
3 Replies

10. Shell Programming and Scripting

Need to add code to hundreds of .html files

Need assistance to add code to hundreds of .html Code will look like below and needs to be added below <html> tag: <script> Some .js code here </script> This will be used in Fedora release 7 (Moonshine). I will appreciate any type of help and/or orientation. Thank you! (4 Replies)
Discussion started by: Ferocci
4 Replies
UNAME(1)						    BSD General Commands Manual 						  UNAME(1)

NAME
uname -- Print operating system name SYNOPSIS
uname [-amnprsv] DESCRIPTION
The uname utility writes symbols representing one or more system characteristics to the standard output. The following options are available: -a Behave as though all of the options -mnrsv were specified. -m print the machine hardware name. -n print the nodename (the nodename may be a name that the system is known by to a communications network). -p print the machine processor architecture name. -r print the operating system release. -s print the operating system name. -v print the operating system version. If no options are specified, uname prints the operating system name as if the -s option had been specified. SEE ALSO
hostname(1), machine(1), sw_vers(1), uname(3) STANDARDS
The uname utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). The -p option is an extension to the standard. BSD
November 9, 1998 BSD
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy