06-18-2019
Shell script to fetch values in csv
I need to fetch below values from this file.
Last edited by nit42; 06-18-2019 at 07:54 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Requirement is to fetch hostname and instance name using shell script from all configuration files on a server R12 on IBM AIX...
could anyone please share such an experience encountered before.Is there such a script available in this forum or any other site..
Thanks for your time!... (0 Replies)
Discussion started by: a1_win
0 Replies
2. Shell Programming and Scripting
SHELL SCRIPT
Hi,
I have a file in which contents are as follows:
9999,abdc,123
9988,aba_12,2323
and so on
I want to read the contents of this file such that i can do
echo "This is $a followed by $b an then $c"
I tried the following but id did not work
cat test | cut -d ',' -f1|... (7 Replies)
Discussion started by: mayanksargoch
7 Replies
3. Shell Programming and Scripting
I have a csv file :-my csv file has say 10 columns
eg:-
A,1,2,3,4,5,6,7,8,9
B,1,2,3,5,6,7,8,9
c,1,2,6,7,8,9
-----------------
I have to create a flat file from this file .The condition is each columns has fixed lenght declared:
say length of column 1 = 1
length of column 2 =3
... (1 Reply)
Discussion started by: Sanal
1 Replies
4. Shell Programming and Scripting
Hi,
How to fetch data from oracle database in unix shell scripting.
list=`sqlplus -s ds_user/dsuser@EMI <<EOF
set feedback off
set serveroutput on
set heading off
set pagesize 0
set tab off
select IP_ID from table
/
exit
EOF`
The output is not what i expected.I need output in... (4 Replies)
Discussion started by: Anusha_Reddy
4 Replies
5. Shell Programming and Scripting
Enclosed is comma separated text file. I need to write a korn shell program that will parse the text file and insert the values into Oracle database.
I need to write the korn shell program on Red Hat Enterprise Linux server.
Oracle database is 10g. (15 Replies)
Discussion started by: shellguy
15 Replies
6. Shell Programming and Scripting
Hi,
I need a shell script, which would search the result values from another files.
1)execute " select column1 from table_name" query on the table.
2)Based on the result, need to be grep from .wft files.
could please explain about this.Below is the way i am using.
#!/bin/sh... (4 Replies)
Discussion started by: Rami Reddy
4 Replies
7. Shell Programming and Scripting
Hi All,
I want to fetch few details out of a huge output of AWS CLI tools :
I am using this command : ec2-describe-instances (6 Replies)
Discussion started by: Palak Sharma
6 Replies
8. Shell Programming and Scripting
Hi Team,
I m getting my script commands output like given below
GETA-TILL-INF;
U-UU-YRYT-NOD-6002 2015-05-14 THU 19:44:10
C2221 RETRIEVE TILL INFORMATION : COMPLD
----------------------------------------------------------------------
CONNECT_CARD_ID ... (9 Replies)
Discussion started by: Ganesh Mankar
9 Replies
9. Shell Programming and Scripting
hi all i have a reporting work and i want it to be automated using shell scripting kindly let me know how can i make that possibe .
eg data are :... (2 Replies)
Discussion started by: Avinash shaw
2 Replies
10. Shell Programming and Scripting
Hi
I want to fetch the latest file form the list
example
example= filename RATE_STATE_SETUPS.20151222.ccyymmdd.hhmmss.txt
File pick which have latest ccyymmdd.hhmmss
list of file in directory are
RATE_STATE_SETUPS.20151222.20151222.170101.txt... (5 Replies)
Discussion started by: MOHANP12
5 Replies
LEARN ABOUT NETBSD
fuiword
FETCH(9) BSD Kernel Developer's Manual FETCH(9)
NAME
fetch, fubyte, fuibyte, fusword, fuswintr, fuword, fuiword -- fetch data from user-space
SYNOPSIS
#include <sys/types.h>
#include <sys/systm.h>
int
fubyte(const void *base);
int
fusword(const void *base);
int
fuswintr(const void *base);
long
fuword(const void *base);
DESCRIPTION
The fetch functions are designed to copy small amounts of data from user-space.
The fetch routines provide the following functionality:
fubyte() Fetches a byte of data from the user-space address base.
fusword() Fetches a short word of data from the user-space address base.
fuswintr() Fetches a short word of data from the user-space address base. This function is safe to call during an interrupt context.
fuword() Fetches a word of data from the user-space address base.
RETURN VALUES
The fetch functions return the data fetched or -1 on failure. Note that these functions all do "unsigned" access, and therefore will never
sign extend byte or short values. This prevents ambiguity with the error return value for all functions except fuword().
SEE ALSO
copy(9), store(9)
BUGS
The function fuword() has no way to unambiguously signal an error, because the data it reads might legitimately be the same as the -1 used to
indicate an error. The other functions do not have this problem because the unsigned values returned by those can never match the -1 error
return value.
BSD
January 7, 1996 BSD