03-01-2012
Thank you balajesuri, that works
That feels embarrasing..
Now in my defense I can tell that I did look for more info. I found out something that in this case works: to change IFS environment variable to somethin else, like
Quote:
$backup="$IFS"
$IFS=''
#script
$IFS="$backup"
Good that I didn't accept that risk and complexity as a "solution"
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
What does '-c' mean in ping command? Is this option specific to bash shell?
Deepa (3 Replies)
Discussion started by: Deepa
3 Replies
2. UNIX for Dummies Questions & Answers
i'm using SunOS 5.7 and I know theres a ls option for seeing what kind of files are in a directory. I was wondering if there was a ls option that could see if the files are txt or files that can be opened in vi (1 Reply)
Discussion started by: eloquent99
1 Replies
3. Shell Programming and Scripting
Folks,
I've been trying to use the ENV variable with slashes(/) in its value inside the sed substitution..
Sed 's/myval/'$MYVAL'/' file1 >> file.tmp
If MYVAL=<sometext>, it works.
if MYVAL=/home/venkat, it doesnt.
***************************
bash-2.05$ export VAL=/home/venkat... (5 Replies)
Discussion started by: gvsreddy_539
5 Replies
4. Shell Programming and Scripting
I have a string of commands I am piping some data through and I want to allow command line switches to select which commands are used. I want to do something like this: OPTION="| command3"
command1 -a -b c.txt | command2 -d -e $OPTION >result.txt
I want to do it that way because OPTION may be... (1 Reply)
Discussion started by: KenJackson
1 Replies
5. HP-UX
Running HP 11.31 on a HP3600. But when I log in as a user the who command works but if I use an option like "who -m" I get nothing. Any thoughts on what is causing this problem. (11 Replies)
Discussion started by: KMRWHUNTER
11 Replies
6. Shell Programming and Scripting
I'm creating a junk script which utilizes either -l or -p to list files or remove files, respectively, in the junk directory. When I run this code, inputting '-p' is unrecognized through the whole if/else block and falls to the last else (echo do nothing). In addition, I switched tests and tested... (2 Replies)
Discussion started by: haishuva
2 Replies
7. Shell Programming and Scripting
Hi,
I am not able to get output for find command if there are variables defined inside -name option .
Please check below example
1)
###VARIABLES DEFINED
process="fast"
temperature="125c"
voltage="0p935v"
2) I don't get output for below find command
find -L <PATH> -type f \( -name... (2 Replies)
Discussion started by: gujrathinr
2 Replies
8. Shell Programming and Scripting
Hello,
I am new to shell (i.e. linux bash) programming and have the following question:
When using this wget command I can download a certain website that needs login information by passing a previously acquired cookie:
wget --header='Cookie: SID=ac658ef0876b24ff456' somewebsite.comAs... (5 Replies)
Discussion started by: iggy98
5 Replies
9. OS X (Apple)
Sorry for a question that may seem dumb but learning UNIX basics I still can not grasp benefits of using
mv -n source file target file
I can understand the need for cp -n source file target file when you get a copy with contents untouched but the former baffles me.
I know that this about... (8 Replies)
Discussion started by: scrutinizerix
8 Replies
10. Shell Programming and Scripting
Hi folks,
I totally dislike asking questions in forums but this one eats up to much of my time I need to spend on other topics.
I have a shell-script in which I call a terminal.
I want to invoke bash inside the terminal and print a message inside bash with aid of a here document.
See... (7 Replies)
Discussion started by: bluntroller
7 Replies