02-26-2007
Hello Friend
Thanks for reply
I am using Unix/Solaris plateform
config file format is like this
########################
config.cfg
servername =
filepath =
student name1
#student attributes
age =
class=
student name2
age =
class =
####################
i have to use unix shell scripting.
first i have to read that server and filepath..
after that i have to access these students and their corresponding attributes.
so now can you please help me further.
Thanks in advance.
Manish
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i have done a coding in shell scripting which reads a file line by line and does something....it takes more than 30 seconds to execute for a single file. when i do the same with perl scripting it takes less than a second.
is that shell scripting is not efficient while working with large number of... (1 Reply)
Discussion started by: brkavi_in
1 Replies
2. UNIX for Advanced & Expert Users
i create ks.cfg for automatic install for centos 5.2 it's work perfectky for cutom install linux package.
and i want to install another program with shell scripts (assume test.tar include in DVD linux custom package)** single dvd include linux os and test.tar
sample
#!/bin/bash... (1 Reply)
Discussion started by: slackman
1 Replies
3. UNIX for Advanced & Expert Users
We are using sybase data base and we have the data base name called MasterDB. The data baase MasterDB contains 100's of tables like sample1, sample2, sample3...etc...sample100
To take the count of every table we have to execute the following commands
use MasterDB //DB name
go //execute... (1 Reply)
Discussion started by: shijoe
1 Replies
4. Shell Programming and Scripting
We are using sybase data base and we have the data base name called MasterDB. The data baase MasterDB contains 100's of tables like sample1, sample2, sample3...etc...sample100
To take the count of every table we have to execute the following commands
use MasterDB //DB name
go //execute... (1 Reply)
Discussion started by: shijoe
1 Replies
5. Shell Programming and Scripting
hi; i have one configuration file(configuration.cfg),where contents are below..
filename = charge.cfg
sectionname =
networkid = 1
retrytimes = 2
-------------
--------------
sectionname =
networkid = 1
retrytimes = 2
filename = xyz.cfg
------------------
-----------------
There is... (7 Replies)
Discussion started by: suryanarayan
7 Replies
6. Shell Programming and Scripting
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Discussion started by: muraliinfy04
4 Replies
7. Shell Programming and Scripting
Hi Friends,
I would like to read all the record from one txt file to other file txt
For example I have two txt file a.txt and b.txt. I need to read a.txt record by record and I need add the system date @ end of each record before moving it to b.txt. Could you please share the coding for... (4 Replies)
Discussion started by: vinoth124
4 Replies
8. Shell Programming and Scripting
(copied directly from my other thread about something else)
At the moment, I just use...
cat config_file|grep var_name|cut -d'=' -f2
... which is fine for what I've been doing, but I'm not sure what to
do when there are a variable number of entries and I want it go through
them like a... (7 Replies)
Discussion started by: ninjaaron
7 Replies
9. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
10. UNIX for Beginners Questions & Answers
How to read multiple files at simultaneously? (1 Reply)
Discussion started by: Priyanka_M
1 Replies
LEARN ABOUT HPUX
tt_file_destroy
tt_file_destroy(library call) tt_file_destroy(library call)
NAME
tt_file_destroy -- remove objected rooted on a file
SYNOPSIS
#include <Tt/tt_c.h>
Tt_status tt_file_destroy(
const char *filepath);
DESCRIPTION
The tt_file_destroy function removes all objects that exist on the files and directories rooted at filepath. The application must call this
function when the application unlinks a file or removes a directory.
The filepath argument is a pointer to the pathname of the file or directory to be removed.
RETURN VALUE
Upon successful completion, the tt_file_destroy function returns the status of the operation as one of the following Tt_status values:
TT_OK The operation completed successfully.
TT_ERR_ACCESS
The user does not have the necessary access to the object and/or the process.
TT_ERR_DBAVAIL
The ToolTalk service could not access the ToolTalk database needed for this operation.
TT_ERR_DBEXIST
The ToolTalk service could not access the specified ToolTalk database in the expected place. It does not appear to exist; admin-
istrative action is required.
TT_ERR_FILE
The specified file does not exist or it is inaccessible.
TT_ERR_NOMP
The ttsession(1) process is not running and the ToolTalk service cannot restart it.
TT_ERR_PATH
The specified pathname included an unsearchable directory.
TT_ERR_POINTER
The pointer passed does not point to an object of the correct type for this operation.
SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_file_copy(3), tt_file_move(3); unlink(2), rmdir(1).
tt_file_destroy(library call)