Ubuntu :: Write A Script To Generate An Html File?
May 29, 2010
I'm trying to write a script to generate an html file (complete with formatting- echo "[random formatting]" >> index.html) for all the files in the given directory. So far, it works pretty well. HOWEVER, I want the listed files to be treated as links. I'm using awk to grab the part of the filename I want, but I don't know how to do this out as it fails if there is more than one file. The HTML side would look something like this:
Code:
<li><a href="2010.05.29.html">May 29</a></li>
It all works fine up to the actual number of the day- fine with one file, fails with more than one. My code is this:
Code:
# Grabs all the files and puts them in a list with anchor text "Listed"
ls | find 2*.html | sed -e 's/^/<li><a href="/'
[Code]...
View 2 Replies
ADVERTISEMENT
Jul 22, 2010
does any one knows a linux based program/script that can generate html files based on directory structure?
View 1 Replies
View Related
Oct 8, 2010
I want to write a program in C which will generate a maze randomly and find the solution for it ..
The idea behind is in [url]
How the 16 bit integer is stored in a variable..Earlier I wrote a program on trees and displayed it using dotty.. Is there any such tool to display a maze..I am using ubuntu 10.04.
View 1 Replies
View Related
Feb 9, 2011
write a script to generate a bar graph/chart/histogram etc that can make the analysis part simpler.
While dealing with so much data, i fear a manual approach could lead to human errors and hence thought that a script might be a better approach.
View 4 Replies
View Related
May 9, 2009
I'm setting up my fedora 10 server. I am currently working on samba. I have added users and created their home directories with their own html directories. I have changed their html directories to 777. However, it appears to be read-only since I cannot create files or folders within it. Can anyone please give me some ideas as to what may be causing this? Probably some extra configurations I may have overlooked? Any help would be kindly appreciated. I also created a general wshare (writable share) directory for all users within home directory but I am encountering the same problem and cannot write to it.
View 8 Replies
View Related
Jul 9, 2009
parsing xml file using shell script and generate report in a PDF file
Xml file input:
<report>
<student name="x" father name="x1" class="first" Address="xyz">
<property name="sports" value="yes"/>
<property name="drawing" value="no"/>
[code]....
View 12 Replies
View Related
Dec 19, 2010
So I use the following to rip audio from one .mp4 file and then generate one .mp3 file.
Code:
caleb@linux-vmp1:~> ffmpeg -i a -ab 128000 -ar 44100 01.mp3
Obviously, this takes a file named a and makes a file named 01 that is an mp3. It works great and I have used it many times. The problem is, I would like to rip the audio from several files all at once. I am sure there is a way to do it but I haven't stumbled upon the way to do it.
View 9 Replies
View Related
Mar 26, 2010
I'd like to use a keymap not present in slackware "fr-dvorak-bepo" with mkinitrd because my root partition is encrypted by luks. So how can I generate a .bmap file from a classic .map file for mkinitrd ?
View 2 Replies
View Related
Nov 17, 2009
Ive installed Gaussian '03 on fedora Core 10, but I'm unable to run it. It aborts and i get the following error
Code:
Erroneous write during file extend. write -1 instead of 4096
Probably out of disk space.
Write error in NtrExt1
View 3 Replies
View Related
Jan 20, 2010
Since the computer does not have xorg.conf, can I have the computer generate that file because I need to work on it and so I need to create it. That is why it would be useful to have a xorg.conf file still.
View 5 Replies
View Related
May 17, 2011
I have just moved over from Windows XP SP3 to Unbutu 11. I write HTML documents, as I am learning HTML. I would the proceed to save it as a .HTML file in my directory and could then open and use it in Chromium browser.However, I tried this on Ubuntu to no avail and was wondering if any one could let me know how to do it?I have "Googled" it, again to no avail.
View 9 Replies
View Related
Oct 25, 2010
I'm trying to learn how to create a user account manually on the system, and I've edited the /etc/passwd and /etc/groups as well as creating a new home directory by copying /etc/skel but I'm stuck at how to generate an entry in the /etc/shadow file since it comprises of the hash and all?
View 4 Replies
View Related
Jun 9, 2010
I am looking for some source package which will convert plain text file to html file without using perl.
I mainly need to do this on an ARM platform, so if I get sources I can cross compile it.
View 5 Replies
View Related
Aug 23, 2011
I need to be able to convert HTML email messages saved as text files (.eml or .msg) to PDF documents, one PDF per email, retaining formatting and images.
Are there any Linux tools that will allow me to do this from the command line (so it can be scripted)?
View 1 Replies
View Related
Jan 29, 2010
I have managed to create a HTML file inside python code,convert this to a PNG file through a Python script ?
EDIT: Details added: I have a python script which generates map-legends in the form of an html file. The legend generated have to be pasted on a map which is in a png format. A png format file can be pasted on another png format file easily. But because the legends generated are in a html format I cannot paste it on the map file !!
EDIT: Details added: I did Googling first but it resulted in various soft wares for above purpose which I don't want !!
View 12 Replies
View Related
Jul 11, 2010
I want to do everything with disk labels. My /etc/fstab is already set up for labels.How can I tell grub2 to use labels? I need it to stop using UUID for root.
View 5 Replies
View Related
Apr 30, 2009
I'm having trouble with this developing tool... I dunno why but when I build my program, Lazarus compiles it, but keeps debugging and don't generate the file. Do anyone knows which may be the problem?
View 9 Replies
View Related
May 14, 2009
I am trying to generate pdf file in hindi using pdflatex. my tex file is having unicode hindi text. it gives me following error.
! Undefined control sequence.
<inserted text> extdevanagarivowelo
{ extdevanagariha } extdevanagarivir...
l.38 end{document}
}
View 3 Replies
View Related
Mar 8, 2010
i'm trying to convert a html file into a text file when i simply run "html2text <filename>" the output displayed is the way we want but when i redirect the same using "-o" or ">>" the file is having extra characters in it. i even tried -ascii,but no much use.
View 4 Replies
View Related
Nov 16, 2009
After a kernel upgrade on my linux, my grub.conf become empty. How can I auto generate grub.conf file? I don't want to do it from scratch.
View 3 Replies
View Related
Feb 1, 2010
I'm using RHEL 5.4 and trying to use the system-config-kickstart to generate a ks.cfg file with all the settings already appeneded. After running the "system-config-kickstart --generate ks.cfg" command, the file gets created but it's missing the firewall configuration, partition information and so on.
How can these settings also be generated with the system-config-kickstart?
View 1 Replies
View Related
Mar 16, 2010
I am using RedHat MRG on a standalone intel PC that has 8 cpus. It has 2 Quad cores. I am trying to force some specific persistent tuning on it so that the OS and IRQs are all on one CPU socket and then I can run my Application on the other CPU socket (4 CPUs) using the taskset command.
I have been reading up on this mainly at [url] and having some success. But, I have one IRQ that is not active until my application runs that I want to force it to be on CPU 4.
And so I believe I can do this by setting /proc/irq/default_smp_affinity to 10. But, I do not have such a file on my system. How can I create this file at boot time properly?
View 1 Replies
View Related
Apr 23, 2011
As I'm gonna transfer large amount of data folders from one hard drive to another, I wanna make sure that the transfer has not corrupted the data. how could I generate MD5SUMs of entire directory including sub directories, in a single file and later, how could I verify with the data I've just transferred.
View 1 Replies
View Related
Jan 4, 2009
I have recently been given the task of setting up some thirty odd netbooks with F10 and i was wondering if there is a way to generate a kickstart file from the first netbook (my one lol ) that i have setup to our needs so as to use it to create the same install on the rest of the netbooks. i had thought that i could use the anaconda-ks.cfg file in root's home dir but it is not at all representative of the custom package list i chose during the install.
View 8 Replies
View Related
Oct 29, 2009
I'm using Fedora 11 on my iBook G4 with an Italian keyboard.Is there any way to set the compose key in Xfce without generate the xorg.conf file?
View 1 Replies
View Related
Jan 12, 2010
My Ubuntu Karmic install has a very useful Print-to-File Printer configured which allows me to generate Postscript and PDF files.
I have Windows XP running on Virtualbox and I want to be able to generate PDF files using this printer but there appear to be no Printers configured.
View 1 Replies
View Related
Jan 21, 2010
Why when I execute '# wvdialconf' in Puppy 4.3.1 no 'wvdial.conf' file is generated in /etc, or, anywhere else?
I did a 'find / -name wvdial*.*' and could not find it.
View 2 Replies
View Related
Jul 9, 2010
I ahve configured MRTG to generate bandwidth utilization graphs of Network devices.
I ahve configured 30 Network device ( Cisco Switches and Routers), For most of the devices MRTG is working fine but for some devices it is not able to generate log file and giving the following error:
View 4 Replies
View Related
Mar 9, 2010
I used wget -r to get all the web pages that were linked from index.html. The pages listed in index.html are all chapters. After using wget -r, all the chapters are now in the same folder on my local hard drive. Is there a way to build the chapters in their proper order into a "long"/"full" web page, rather than simply having each chapter as a link/next link on a previous page?
View 9 Replies
View Related
May 7, 2010
I am new to Ubuntu and I was wondering if there is a way where I can use an HTML file that I have created as a desktop wallpaper. If you know a way could you please explain as simple as possible because I am new to it all and still getting use to it.
View 3 Replies
View Related