Sponsored Content
Full Discussion: Help for developing script
Top Forums UNIX for Dummies Questions & Answers Help for developing script Post 302860091 by RudiC on Friday 4th of October 2013 02:33:10 PM
Old 10-04-2013
If you "hav no idea abt unix" then anything you might pick up in here might wreak havoc in your system (admittedly not necessarily in above simple case). I'd advise to learn some basics before applying e.g. mass modification scripts. You may want to create a "sandbox" in which you can test whatever you scripted/programmed/copied.
For your request in post#1, sed or awk or perl are the candidates to go for, although you can do it in shell script as well.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Developing a new command line interface

Hi, Is there any good/easy tool or library which assists in developing a command line interface for an application. The CLI should be able to provide custom commands, allow programming/scripting as well. For the latter case it could wrap a shell command and send it to BASH for processing. (2 Replies)
Discussion started by: redirect
2 Replies

2. Programming

Developing Open Source tools

Hi Gurus, I am very much interested in developing and publishing a small piece of open source code which would be the best place to start off. I am just a beginner in unix ,c. Please provide me some suggestions. Thanks. (3 Replies)
Discussion started by: ennstate
3 Replies

3. Shell Programming and Scripting

Can you help me regarding developing script?

Hi All, I want to develope this script. any help will be appreciated. It is possible to use two pipes and create two-way communication between two processes. (In practice, this is not done because sockets are available.) Create a program where the parent process reads the name of a language... (2 Replies)
Discussion started by: vishalpatel03
2 Replies

4. Programming

Help required in developing an Editor.

Hi, I wish to develop a editor of my own. My idea is using 100% C programming Linked list as the Data structure GNU/Linux as the compiling environment ncurses utility for screen Many of might have wrote a editor in your college itself as a project. But I am from non IT background.... (3 Replies)
Discussion started by: ramkrix
3 Replies

5. Shell Programming and Scripting

Developing own shell

Hi everyone.I am trying ti create my own shell in C.So far i have managed to create a parser to separate args from cmd line of my shell.(i have done nothing different for tokens is that wrong?).so i can run commands like "ls -l" "cp" "cat" etc.now i want to add redirection.can anyone guide me... (1 Reply)
Discussion started by: bashuser2
1 Replies

6. UNIX for Dummies Questions & Answers

developing a Kernel for old old Unix?

Hello all , My father has been running the last version of unix before all the liscensing began 20 or so years ago. In his particular field his programmer has written a great deal of software to work with this version. Emulating so newer computers could speak to the unix server as well. Im sure... (6 Replies)
Discussion started by: Bill78
6 Replies

7. AIX

Developing application software on the AIX

I am a programmer who works on an IBM i (including AS/400, iSeries, System i and Power). In developing application software on the IBMi we use languages such as RPG/ILE and CLLE. There is a need also to use PF, LF, DSPF & PRTF to represent the physical/logical database and screen/print objects.... (0 Replies)
Discussion started by: Elias
0 Replies

8. Shell Programming and Scripting

Help in developing an awk code

#!/bin/ksh set -x FILENAME=$1 #To calculate debit and credit DEBIT=`awk -F, '{value=$28 ;if(value<0) {debit+=value}} END {print debit}' $FILENAME` CREDIT=`awk -F, '{value=$28 ;if(value>0) {credit+=value}} END {print credit}' $FILENAME` #This part is not working since the debit value is... (2 Replies)
Discussion started by: selvankj
2 Replies

9. Shell Programming and Scripting

Help with approach and developing script

Hi- I need to develop a script for following scenario in AIX and K shell environment.I am from windows server background for most my career ,so please bear with me and advise suitable approach and technical assistance.Having said that I am aware of unix shell commands but never pput together at... (1 Reply)
Discussion started by: nirasm
1 Replies

10. What is on Your Mind?

Developing Applications for UNIX.COM

A number of people have asked me about the best way to develop some cool new web app for UNIX.COM. In today's "very easy web dev" world, developers do not need to be burdened (like I am) to the "back end" of the site. The best way to develop web apps is to build the application on your desktop... (2 Replies)
Discussion started by: Neo
2 Replies
BB-CSVINFO.CGI(1)					      General Commands Manual						 BB-CSVINFO.CGI(1)

NAME
bb-csvinfo.cgi - CGI program to show host information from a CSV file SYNOPSIS
bb-csvinfo.cgi DESCRIPTION
bb-csvinfo.cgi is invoked as a CGI script via the bb-csvinfo.sh CGI wrapper. Based on the parameters it receives, it searches a comma- separated file for the matching host, and presents the information found as a table. bb-csvinfo.cgi is passed a QUERY_STRING environment variable with the following parameters: key (string to search for, typically hostname) column (columnnumber to search - default 0) db (name of the CSV database file in $BBHOME/etc/, default hostinfo.csv) delimiter (delimiter character for columns, default semi-colon) CSV files are easily created from e.g. spreadsheets, by exporting them in CSV format. You should have one host per line, with the first line containing the column headings. Despite their name, the default delimiter for CSV files is the semi-colon - if you need a different delimiter, invoke bb-csvinfo.cgi with the "delimiter=<character>" in the query string. Example usage This example shows how you can use the bb-csvinfo CGI. It assumes you have a CSV-formatted file with information about the hosts stored as $BBHOME/etc/hostinfo.csv, and the hostname is in the first column of the file. Use with the bbgen --docurl The --docurl option to bbgen(1) sets up all of the hostnames on your Xymon webpages to act as links to a CGI script. To invoke the bb-csvinfo CGI script, run bbgen with the option --docurl=/cgi-bin/bb-csvinfo.sh?db=hostinfo.csv&key=%s SEE ALSO
bb-hosts(5), hobbitserver.cfg(5), bbgen(1) Xymon Version 4.2.3: 4 Feb 2009 BB-CSVINFO.CGI(1)
All times are GMT -4. The time now is 11:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy