08-22-2013
1st one looks good .. how do I save these values in the separate variables
thnx anyway,big help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Am new to scripting. So i just need your ideas to help me out. Here goes my requirement.
I have two csv files
1.csv 2.csv
abc,1.24 abc,1
def,2.13 def,1
I need to compare the first column of 1.csv with 2.csv and if matches then need to compare... (2 Replies)
Discussion started by: chinnahyd
2 Replies
2. Programming
i have an input file of XML type with data like
<nx-charging:additional-parameter name="NX_INTERNATIONALIZED_CLID" value="919427960829"/><nx-charging:finalStatus>RESPONSE , Not/Applicable , OK</nx-charging:finalStatus></nx-charging:process>
i want to extract data such that i get the output... (3 Replies)
Discussion started by: junaid.nehvi
3 Replies
3. Shell Programming and Scripting
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.12.11.255)(PORT = 1540)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = CSMFIRE03)))
I would like to extract the CSMFIRE03.
I have no clue which command to use. Could... (5 Replies)
Discussion started by: Naresh Akkal
5 Replies
4. Shell Programming and Scripting
I want to find the top N entries for a certain field based on the values of another field.
For example if N=3, we want the 3 best values for each entry:
Entry1 ||| 100
Entry1 ||| 95
Entry1 ||| 30
Entry1 ||| 80
Entry1 ||| 50
Entry2 ||| 40
Entry2 ||| 20
Entry2 ||| 10
Entry2 ||| 50... (1 Reply)
Discussion started by: FrancoisCN
1 Replies
5. Shell Programming and Scripting
hi there,
i'm new to shell scripting as i usually just use our solaris server for db administration and to get some basic system information. however i'm stuck with something that requires further scripting knowledge.
I need to extract the Name, Desc and Status from pkginfo-l.
I need them... (10 Replies)
Discussion started by: sbavanis
10 Replies
6. Shell Programming and Scripting
hi
i have file as below , i want to add duplicate records like bell_bb to one record with valuve as 15 ( addition of both )
any oneline awk script to achive this ?
header 0
CAMPAIGN_NAME 1
Bell_BB 14
Bell_MONTHLY 803
SOLO_UNBEATABLE 644
Bell_BB 1
Bell_MONTHLY 25
SOLO_UNBEATABLE... (4 Replies)
Discussion started by: raghavendra.cse
4 Replies
7. Shell Programming and Scripting
Hi
Description of input file I have:
-------------------------
1) CSV with double quotes for string fields.
2) Some string fields have Comma as part of field value.
3) Have Duplicate lines
4) Have 200 columns/fields
5) File size is more than 10GB
Description of output file I need:... (4 Replies)
Discussion started by: krishnix
4 Replies
8. Shell Programming and Scripting
Hi all,
I am new to shell script.I need your help to write a shell script.
I need to write a shell script to extract data from a .csv file where columns are ',' separated.
The file has 5 columns having values say column 1,column 2.....column 5 as below along with their valuesm.... (3 Replies)
Discussion started by: Vivekit82
3 Replies
9. Linux
I have a .CSV file (file.csv) whose data are all enclosed in double quotes. Sample format of the file is as below:
column1,column2,column3,column4,column5,column6, column7, Column8, Column9, Column10
"12","B000QRIGJ4","4432","string with quotes, and with a comma, and colon: in... (3 Replies)
Discussion started by: dhruuv369
3 Replies
10. Shell Programming and Scripting
Hi,
I have a file of csv data, which looks like this:
file1:
1AA,LGV_PONCEY_LES_ATHEE,1,\N,1,00020460E1,0,\N,\N,\N,\N,2,00.22335321,0.00466628
2BB,LES_POUGES_ASF,\N,200,200,00006298G1,0,\N,\N,\N,\N,1,00.30887539,0.00050312... (10 Replies)
Discussion started by: djoseph
10 Replies
consvar(8) System Manager's Manual consvar(8)
NAME
consvar - Manipulate system firmware console environment variables
SYNOPSIS
/sbin/consvar [-v] [-nc] -g -s -l -a -d [variable] [value]
OPTIONS
Verbose mode. Prints out the system IDs used by firmware, the current firmware revision, and information about the process. Get the value
of the specified console environment variable. Set the value of the specified console environment variable. List the values of all vari-
ables supported by this platform that are not disabled. This is similar to the show SRM console command. Save the values of all environ-
ment variables to non-volatile storage. Setting a variable with the -s option only updates the in-memory copy of console environment vari-
ables. The save process could take a long time on some platforms, so it is recommended that the variables are saved after all set opera-
tions have been performed. List the system and exception database information. Do not perform value conversion. Variables that contain
device information have an underlying console bootstring format. If this option is used, consvar does not convert between the Tru64 UNIX
names for these devices, but accepts and displays the raw values. The same goes for integer values which are converted between strings and
hexadecimal values.
DESCRIPTION
Use the consvar command to get, set, list, and save console environment variables available on SRM system firmware. Some firmware versions
on some platforms do not comply with the Alpha SRM when dealing with certain variables, or operations. To ensure UNIX functionality with
such firmware, an exception database is consulted and these operations are disabled. By default, consvar accepts and displays device values
with Tru64 UNIX device names, or their device special file names. The raw console bootstrings can be used by providing the -nc option. For
information regarding the console environment variables, please refer to the Alpha System Reference Manual.
RETURN VALUES
Success. Failure.
EXAMPLES
To show the values of all available console variables, enter: % consvar -l To get the value of the booted_dev variable, enter: % consvar -g
booted_dev
A message similar to the following will be displayed: booted_dev = disk0 To set the value of boot_dev, enter the device name of the
required boot device: % consvar -s boot_dev disk0
To save the values of the variables across system resets, enter: % consvar -a If an operation fails, you can find out if it is dis-
abled by using the -v option. For example, to see if the bootdef_dev variable is disabled, enter: % consvar -v -g bootdef_dev The
exception database can be printed out along with the status of the current platform's console variable support by entering: %
consvar -v -d
FILES
Specifies the command path. Exception database.
SEE ALSO
Functions: getsysinfo(2), setsysinfo(2)
consvar(8)