Hi all,
Here is my situation.
I have a text file TXT_FILE like this:
john 123456
jack 94589
kelvin 94595
mary 88585
I want to read the first word in each line ( the name ) and assign to a string variable ( EX_LIST ) in my script so that I can use later as this commandfor i in... (6 Replies)
i am new user of unix.i have a question.My script is-
export STR_ALFA=`head -2 "${FILE_PATH}"|tail -1|cut -d"," -f1`
"${TEST_HOME}"/function/chk_alfa.ksh STR_ALFA
now i want to check STR_ALFA:
1)whether is alphabetic
2)whether is numeric
3)whether is alphanumeric... (1 Reply)
i am new user of unix.i have a question.My script is-
export STR_ALFA=`head -2 "${FILE_PATH}"|tail -1|cut -d"," -f1`
"${TEST_HOME}"/function/chk_alfa.ksh STR_ALFA
now i want to check STR_ALFA:
1)whether is alphabetic
2)whether is numeric
3)whether is alphanumeric... (1 Reply)
Hi,
I wish to find all lines that contain a specific search word, and then do few string operations on that line. The idea is to "fix" the file which has been moved from windows to unix.
Using unix - Sun Solaris
Test input ("t2.sas")
statement1
statement2
libname yahoo ... (6 Replies)
Hello,
I'm trying to get the configuration-IP-Addresses from Cisco-configurations
on the Routers they are defined as a Loopback0-interface like this:
interface Loopback0
ip address 172.23.19.249 255.255.255.255
On the Switches they are defined as a VLAN 80 interface like this
... (4 Replies)
I have a txt file with several columns and i want to peform an operation on two columns and output it to a new txt file .
file.txt
900.00000 1 1 1
500.00000
500.00000
100000.000
4
4
1.45257346E-07 899.10834 ... (4 Replies)
I have a file that contains RewriteRules for 200 countries (2 examples for 1 country below):
RewriteRule ^/at(/|/index.html|)$ http://%{HTTP_HOST}/locate/index.html?locale=de_AT
#&
RewriteRule ^/at_english(/|/index.html|)$ http://%{HTTP_HOST}/locate/index.html?locale=en_AT
I have... (5 Replies)
Hi, to everybody
i have a string which Looks like this
FT47;3;1;1;;;1;09.02.2017 21:21:19;2;2
and i would like to change to value on one Position only
e.g. the values on Position 6 should change to 1 nevertheyless which values was there before
AIX 4.3.2.0 and csh
i try... (10 Replies)
Hi to everybody
i stuck on a simple thing i had a string and i want cut it , i try already few thing with the cut command but does not the way it should.
The script is in csh and running on AIX 4.3.2.0
here are few samples how the string can look like
FT71;1;1;1;;;1;31.01.2017... (9 Replies)
Discussion started by: Nadielosabra
9 Replies
LEARN ABOUT DEBIAN
rudecgi
rudecgi(3) User Manuals rudecgi(3)NAME
rudecgi - access formdata in CGI applications
SYNOPSIS
#include <rude/cgi.h>
rude::CGI CGI();
static void finish();
static const char *version();
static void setPathDelimiter(char delimiter);
static void addPathMapName(const char *pathname );
static void setPathMapVoid(const char *emptyname);
static void parsePathMap(bool shouldParse);
static void parsePath(bool shouldParse);
static void parseCookies(bool shouldParse);
static void maxPostLength(long bytes);
void setCaseSensitive(bool isCaseSensitive);
int numValues() const;
int numValues(const char *fieldname) const;
const char *fieldnameAt(int position) const;
bool exists(const char *fieldname) const;
bool isFile(int index) const;
bool isFile(const char *fieldname) const;
bool isFile(const char *fieldname, int position);
const char *datasource(int index) const;
const char *datasource(const char *fieldname) const;
const char *datasource(const char *fieldname, int position) const;
const char * operator[](const char *fieldname);
const char * operator[](int x);
const char *value(int index) const;
const char *value(const char *fieldname) const;
const char *value(const char *fieldname, int position) const;
const char *length(int index) const;
const char *length(const char *fieldname) const;
const char *length(const char *fieldname, int position) const;
const char *contenttype(int index) const;
const char *contenttype(const char *fieldname) const;
const char *contenttype(const char *fieldname, int position) const;
const char *filename(int index) const;
const char *filename(const char *fieldname) const;
const char *filename(const char *fieldname, int position) const;
const char *filepath(int index) const;
const char *filepath(const char *fieldname) const;
const char *filepath(const char *fieldname, int position) const;
std::ostream& operator<<(std::ostream& os,const CGI& cgi);
DESCRIPTION
The RudeCGI library is used to access formdata within C++ CGI applications.
EXAMPLES
Examples, how-to's and tutorials can also be found at the rudeserver.com website
Basic Usage
#include <rude/cgi.h> #include <iostream>
using namespace std; using namespace rude;
int main(void) {
// Obtain the cgi instance
//
CGI cgi;
// Print out standard CGI HTTP Response header
//
cout << "Content-Type: text/html0;
// Print out HTML
//
cout << "<html><body>"
<< "You selected the color: " ;
// use the cgi object to obtain form data
//
cout << cgi["color"];
cout << "</body></html>";
return 0; }
SEE ALSO rudeconfig(3), rudedatabase(3), rudesocket(3), rudesession(3)REPORTING PROBLEMS
Before reporting a problem, please check the rudeserver.com web site to verify that you have the latest version of rudecgi; otherwise,
obtain the latest version and see if the problem still exists. Please read the FAQ at:
http://www.rudeserver.com/
before asking for help. Send questions and/or comments to matt@rudeserver.com
AUTHORS
Copyright (C) 2000 Matthew Flood (matt@rudeserver.com)
This software is provided "as-is," without any express or implied warranty. In no event will the authors be held liable for any damages
arising from the use of this software. See the distribution directory with respect to requirements governing redistribution. Thanks to
all the people who reported problems and suggested various improvements in rudecgi; who are too numerous to cite here.
Version 4.1.1 January 11, 2006 rudecgi(3)