View Full Version : how do i make a replacement index.html file?
kelbel
10-10-2007, 03:17 PM
i opened a new geocities page and apparently deleted the original index.html file and now i cant rename files to create a new one. i am using the pagebuilder site and when ready to upload it tries to find the files in my computer but they are not there and i dont know how to get them there.
The-Chelsey-Chick
10-10-2007, 03:24 PM
The repstr.pl script, found in the AIX directory /misc/bin, is used to replace a phrase wherever found in a file or group of files. The file or list of files is passed as an argument on the command line. The script prompts the user for a string to replace and the replacement string.
Thus, if you wanted to replace the string www.ucalgary.ca/~ with www.acs.ucalgary.ca/~ within the file, index.html. You would issue the command:
repstr.pl index.html
At the search prompt you would enter, www.ucalgary.ca/~. When prompted for the replacement string enter, www.acs.ucalgary.ca/~.
This program searches for a text string within a file or group of
files and substitutes a supplied replacement string. Please make sure
you issue a "repstr.pl -h" before using this program.
Enter the SEARCH string: www.ucalgary.ca/~
Enter the REPLACEMENT string: www.acs.ucalgary.ca/~
The script proceeds to perform the replacement.
Should you want to perform the replacement on a number of files enter all their names on the command line, for example:
repstr.pl index.html leeds.html united.html
The program will not perform search/replace operations on backup files (those that have ending of ".bak").
Warning
This program by default creates a backup file for you, and also uses a temporary file as it proceeds. Only the temporary file is deleted after the run. Both files are stored within your file hierarchy. Check that you have sufficient quota before you proceed.
Should you not require the backup file, use the -u (unsafe) option. This however is not recommended, YOU MAY LOSE VALUBLE INFORMATION.
Command line arguments
-h list the help information
-p prompt before each string replacement
-u do not produce a backup file. By default one will be created.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.