10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I created the following (snippet from larger code):
echo -n "A1: "
read A1
VERIFY=$(echo -n $A1|wc -c)
if ; then
echo -e "TOO MANY CHARACTERS"
fi
echo -n "A2: "
read A2
echo -n "A3: "
read A3
echo -e "Concat: $B1/$B2/$B3"
Basically what it does is it... (4 Replies)
Discussion started by: jl487
4 Replies
2. Shell Programming and Scripting
greetings,
i have a variable $input that i want to use to set $output. $input is /dir/filename.mph and $input is passed to my script that i manipulate it as follows:
input=`basename $input`i want the $output to be filename_solved.mph, basically stuffing "_solved" in the filename. here's how i... (2 Replies)
Discussion started by: crimso
2 Replies
3. Shell Programming and Scripting
hi,
i'm not a root user and i want to know which user and in which file is loaded a variable seen in the "env" display ?
I will use this variable but i want to be sure that it will be a permanent variable !
i don't see it in my files (.profile , kshrc...) and neither in /etc/profile.
... (3 Replies)
Discussion started by: Nicol
3 Replies
4. HP-UX
Hi,
I am using hp unix
i want to know the use of the following commands
set --
set - variable
thanks (4 Replies)
Discussion started by: gomathi
4 Replies
5. Shell Programming and Scripting
Can I use the read command to read the contents of a variable? I'm trying by using the following code and getting nothing back. I'm in a Linux environment.
#!/bin/ksh
IFS=~
VAR1=1~2~3~4
echo $VAR1 | read a b c d
print "$a $b $c $d" (9 Replies)
Discussion started by: nmalencia
9 Replies
6. Shell Programming and Scripting
I have a variable called PATH that contains a path
example: /Users/rtipton/Desktop/testusers/test
I need a sed command to set a variable called USER to the last directory name in that path
PATH="/Users/rtipton/Desktop/testusers/test"
and from that PATH i need USER to = test
I know sed... (4 Replies)
Discussion started by: tret
4 Replies
7. Shell Programming and Scripting
need a script that goes something like this
#!/usr/bin/bash
echo "input up to TEN values, separated by spaces"
read vari1 vari2 vari3 vari4 vari5 vari6 vari7 vari8 vari9 vari10
#set null variables to 9999 (somehow?)
#now echo all variables
echo $vari1 $vari2 $vari3 $vari4 $vari5 $vari6... (1 Reply)
Discussion started by: ajp7701
1 Replies
8. Shell Programming and Scripting
okay, this shouldn't be difficult but I can't figure it out. How can I set a variable with another variable. I have the following:
foreach pe ($dir $sp)
set tpe = `echo $pe | grep M`
if ($tpe == M) then
set ${$pe} = M <--- This doesn't work
else
endif
end
In this case what... (2 Replies)
Discussion started by: wxornot
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
i know that this topic discussed for many times but although i had researched them i couldnt succeed in my problem.
i am following a step-by-step instruction guide and must do the following:
-------------
To ensure access, set the path PATH $ORACLE_HOME/perl/bin:$PATH and set the Perl... (2 Replies)
Discussion started by: merope
2 Replies
10. UNIX for Dummies Questions & Answers
I'm having an issue when I export within my program. I'm getting the variable name, not the variable value. I have a configuration file (config.txt) that has the values of the variables set as so:
set -a
export ARCHIVEPOSourceDir="/interfaces/po/log /interfaces/po/data"
export... (2 Replies)
Discussion started by: ParNone
2 Replies