10-28-2019
Space delimited variables
I have a shell script where I am using space delimited variables.
Var=" ${var} data1 table1 "
Var=" ${var} data2 table2 "
Var=" ${var} data3 table3 "
Var=" ${var} data4 table4 "
I am using a single variable to store multiple values so I can use them in for loop. Each value contains space in them. I tried using IFS=' ' but it affects my print statement in the script. Anyother way I can follow to use my space delimited variable values
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I have a file with single white space delimited values, I want to convert them to a tab delimited file.
I tried sed, tr ... but nothing is working.
Thanks,
Rajeevan D (16 Replies)
Discussion started by: jeevs81
16 Replies
2. UNIX for Dummies Questions & Answers
Greetings
So glad I found this forum!
I need to get a list of users in a variable so I can use "for" to iterate through them in a bash script.
I know this does not work, but I need to do something like this:
myusers=(cat /etc/passwd | cut -f1 -d )
for myuser in $myusers
do
... (2 Replies)
Discussion started by: holocene
2 Replies
3. UNIX for Dummies Questions & Answers
So I have three space delimited files. Each have 90 rows and many columns. I want to merge them by columns. I use paste to merge file 1 and file2 or file 3 and it works. But when I try to merge file 2 and file 3 using paste or merge or cat, I cannot merge them by column, instead they are merged by... (11 Replies)
Discussion started by: evelibertine
11 Replies
4. Shell Programming and Scripting
Hi All,
I have space delimited file similar to the one as shown below.. I need to convert it as a pipe delimited, the values inside the pipe delimited file should be as highlighted...
AA ATIU2345098809 009697 005374
BB ATIU2345097809 005445 006518
CC ATIU9685098809 003215 003571
DD... (7 Replies)
Discussion started by: nithins007
7 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
Discussion started by: evelibertine
3 Replies
6. UNIX for Dummies Questions & Answers
Hi,
How do I transpose a huge space delimited file with more than 2 million columns and about 100 rows? Thanks! (10 Replies)
Discussion started by: evelibertine
10 Replies
7. Shell Programming and Scripting
Hi How to make tab delimited file to space delimited?
in put file:
ABC kgy
jkh ghj
ash kjl
o/p file:
ABC kgy
jkh ghj
ash kjl
Use code tags, thanks. (1 Reply)
Discussion started by: jagdishrout
1 Replies
8. Shell Programming and Scripting
hi,
i need a portion in a audit logging shell script where i have to loop thru multiple variables.
I need some help in accomplishing this. i have 3 variables
var1=1,23,234
var2=a,ab,xyz
var3=0,0,0
the variables will have variables number of values but same length.(3 in this case )
i... (10 Replies)
Discussion started by: rock1
10 Replies
9. Shell Programming and Scripting
Hi,
I am wanting to create a script that will construct a SQL statement based on a a space delimited string that it read from a config file.
Example of the SQL will be
For example, it will read a string like "AAA BBB CCC" and assign to a variable named IN_STRING.
I then concatenate... (2 Replies)
Discussion started by: newbie_01
2 Replies
LEARN ABOUT DEBIAN
ir_ab_names
IR_AB_NAMES(1) IR_AB_NAMES(1)
NAME
ir_ab_names - a standalone server that supports the CORBA COS Interface specification.
SYNOPSIS
ir_ab_names -file filename
The -file switch is optional, see the OPTIONS section for details.
DESCRIPTION
ir_ab_names(1) is a standalone server that supports the CORBA COS Interface specification. When launched, it returns its IOR and corbaloc,
which can then be used by other CORBA applications.
OPTIONS
ir_ab_names(1) accepts the following options:
-file
Output COS Interface IOR to filename.
-help
Print the usage text.
all PolyORB command line configuration variables
PolyORB allows one to set up configuration variables on the command line. The syntax is close to the one described in configuration
files. A variable Var.Iable in section [Sec] can be overridden with flag --polyorb-<sec>-<var>-<iable>[=<value>].
AUTHOR
This manual page was written by Reto Buerki <reet@codelabs.ch> for the Debian GNU/Linux system (but may be used by others).
RESOURCES
Polyorb User Manual: http://www.adacore.com/wp-content/files/auto_update/polyorb-docs/polyorb_ug.html/
SEE ALSO
po_cos_naming(1), po_cos_naming_shell(1).
05/21/2009 IR_AB_NAMES(1)