Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to Read config (.cfg) files using shell scripting Post 302108400 by smallwonder on Monday 26th of February 2007 08:15:44 AM
Old 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

why shell scripting takes more time to read a file

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

how to config ks.cfg for install another progra.

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

how read the flat files from shell 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

4. Shell Programming and Scripting

how read the flat files from shell 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

Help with dynamic configure cfg files

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

Shell script that will compare two config files and produce 2 outputs 1)actual config file 2)report

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

Request for file read option in Unix shell 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

What's the best way to read config files?

(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

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies

10. UNIX for Beginners Questions & Answers

How to read multiple files at same time through UNIX scripting?

How to read multiple files at simultaneously? (1 Reply)
Discussion started by: Priyanka_M
1 Replies
ABOOTIMG(1)						      General Commands Manual						       ABOOTIMG(1)

NAME
abootimg - manipulate Android Boot Images. DESCRIPTION
Tool to read/write/update android boot images SYNOPSIS
abootimg -i <bootimg> abootimg -x <bootimg> [<bootimg.cfg> [<kernel> [<ramdisk> [<secondstage>]]]] abootimg -u <bootimg> [-c "param=value"] [-f <bootimg.cfg>] [-k <kernel>] [-r <ramdisk>] [-s <secondstage>] abootimg --create <bootimg> [-c "param=value"] [-f <bootimg.cfg>] -k <kernel> -r <ramdisk> [-s <secondstage>] OPTIONS
-i print boot imgage informations -x Extract a boot image -u Update a boot image --create Create a boot image Options for extracting boot images bootimg Existing bootimage to use bootimg.cfg Name for the bootimg.cfg file, defaults to bootimg.cfg kernel Name for the kernel image, defaults to zImage ramdisk Name for the ramdisk image, defaults to initrd.img secondstage Name for the second-stage image, defaults to stage2.img Options for updating and creating boot images bootimg Existing bootimage to use -c param=value Existing bootimage to use -f <bootimg.cfg> Update bootimg.cfg with the named file -k <kernel> Update kernel with the named file -r <ramdisk> Update ramdisk with the named file -s <secondstage> Update secondstage image with the named file ABOOTIMG(1)
All times are GMT -4. The time now is 02:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy