09-25-2010
I haven't did much with scripts before. I am still researching best ways to do it.
Here is how I was thinking I will do it, but I haven't got the script written yet:
Use the `find` command to locate every directory within the parent tree, including the top directory. Then, inside every one of the found directories, I will use `find` again (with a -maxdepth of 1) to locate all directories & html files present; then I'll create the index.html file, and insert (probably just using `echo`) a <href=link> to each directory and/or html file present within my current directory.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I have a webpage, http://my.dns.com/~zp523/index.html,
I want all people to have read and execute privileges. I want to extend it with execute privilege. Which command should be used in chmod?
is it only give read(r) & execute(x) parameter in 'chmod ??? index.html'
thk a lot!! (1 Reply)
Discussion started by: zp523444
1 Replies
2. Filesystems, Disks and Memory
why do inode indices starts from 1 unlike array indexes which starts from 0
its a question from "the design of unix operating system" of maurice j bach
id be glad if i get to know the answer quickly
:) (0 Replies)
Discussion started by: sairamdevotee
0 Replies
3. Shell Programming and Scripting
Hi All,
I need to check for a process, if the process is running then I have to create an HTML file, say A.HTML.
If the process is not running then I have to rename the existing html, say A.HTML to B.HTML so that the process which looks for the file A.HTML does not find it?
How do I do... (1 Reply)
Discussion started by: Hangman2
1 Replies
4. Shell Programming and Scripting
Hi guys as the title says i need a little help i have partisally written a bash script to create a table in html
so if i use ./test 3,3
i get the following output
for the third arguement in the script i wish to include content that will be replace the A characters in the... (2 Replies)
Discussion started by: dunryc
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I've several files with two collumns, where first collumn can be used as index.
filename1
and filename2
how to create a file
I should start with cat all files and extract first collumn to create an index? (4 Replies)
Discussion started by: sargotrons
4 Replies
6. AIX
dear friends ,
in my work i have to monitor some system performance in hourly basis by runing some commands , for example (lpstat) to know that all the queue is ready
how can i create webpage and connect it with the server (AIX operating system) and make this page refreshed every 10 second and... (12 Replies)
Discussion started by: rami abusweilei
12 Replies
7. UNIX for Dummies Questions & Answers
Hello,
I am trying to create a php file that would copy given index.html file to all directories (and subdirectories) on my site that don't have one. This is to prevent directory listings on nginx. This index.html file is placed in the /populate directory and looks like this:
<html>
<head>... (7 Replies)
Discussion started by: teletubby
7 Replies
8. Shell Programming and Scripting
Hi
I want to attach multiple index.html, index_v2 file using mutt command
basically i want first index.html and then index_v2.html file as a body in email , these html files are test reports
I am using following command , but it is over writing , any help appreceated ;)
mutt -e... (2 Replies)
Discussion started by: madankumar.t@hp
2 Replies
9. Shell Programming and Scripting
I am required to create a CSV file reading last 200000 lines form a log file. I have to grep 3 parameters from this log file and write these parameters in the .csv file, with time stamp. This script will be setup in a cron job which will run every 10 minutes. I have written the script but it is... (5 Replies)
Discussion started by: Crazy_Nix
5 Replies
10. UNIX for Beginners Questions & Answers
Hi you all,
this is my first post in this forum. I'm italian (please forgive me) :-) so my english will fail to be correct...
Anyway, let's get straight to the point!
I have a text file like this:
,,,,
Disney: 00961-002,,,,
,Pippo: 00531-002,,,
,,Pluto: 00238-002,,
... (5 Replies)
Discussion started by: alcresio
5 Replies
NcdT(1) General Commands Manual NcdT(1)
NAME
ncdt - directory tree printer with extended capabilities
SYNOPSIS
ncdt [-db?] [--dirs] [--bitrate] [--prefix text ] [--help] [ directory [ name ]]
DESCRIPTION
ncdt is a small utility for printing directory trees. It has some additional features not found in tree(1). Additional capabilities are:
- size field for directories displays the summary size of directory subtree instead of the size of the special file (which is somewhat
more useful)
- sizes are displayed in a more readable format (that's a minor improvement, but it helps a little)
- MP3 files are detected; additional info is displayed for them (which is probably the nicest thing about NcdT) The info is displayed
in a compact form, like <2:53 v168JR+> where 2:53 is play time, v (if present) means the file is encoded using VBR, 168 is bitrate
(average bitrate for VBR files), J describes channel encoding (Mono, Stereo, Joint-Stereo, Dual channel), R (if present) means the
file has a RIFF header at the beginning, + (if present) means the file has ID3v2 tag attached - (if present) means there's no ID3
tag at all (none of these means there's only ID3v1 tag present).
NcdT is particularily nice for indexing CDs.
OPTIONS
-d --dirs
Print only directories, omit files. This mode is a rough equivalent of du(1).
-b --bitrate
Print bitrate info for directories. Bitrates are displayed both for ordinary files and directories. If all MP3 files in a given
directory subtree have the same bitrate only one number is printed, if they have various bitrates the range is printed.
--prefix text
Prefix listing with given text. This option is not intended for general use. It might be used by programs using NcdT to index CDsor
doing similar operations to record additional information.
-? --help
Display usage summary.
USAGE
When called without any parameters ncdt displays directory tree for current directory (.).
When called with one parameter ncdt displays directory tree for specified directory.
When called with two parameters ncdt displays directory tree for the directory specified as its first parameter. Second parameter is used
as directory label for the top level directory (instead of directory name from parameter 1).
EXAMPLES
ncdt prints directory tree for the current directory. It will be labeled .
ncdt /usr
prints directory tree of /usr. It will be labeled /usr
ncdt /cdrom 'CD #21'
prints directory tree of /cdrom. It will be labeled CD #21
ncdt -db /cdrom
lists directory sizes, play times and bitrate ranges
SEE ALSO
tree(1), du(1)
BUGS
NcdT uses quite a lot of memory. It's also not very fast, but on a decent CPU it should not be noticeable.
There are no real bugs I'm aware of. I don't think there are any now.
AUTHOR
Pawel Wiecek <coven@vmh.net>
NcdT(1)