10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This code strips out any . It works great
echo "127001" | tr -d "" I would like to do the same thing but with shell scripting. User would enter:
./test 127001 Output should be: 127.0.0.1
I would like to assign it to a different variable. I have something like this but I get a syntax error and... (7 Replies)
Discussion started by: Loc
2. Shell Programming and Scripting
Im facing a weird behavior storing regular expression in a vaiable.
Let us consider
when I echo the above variable its displaying below which is file
but when I create a file with name CTP02_1234.tar, and when I echo $file_name its showing... (3 Replies)
Discussion started by: rdineshredy
3. Shell Programming and Scripting
I'm trying to use a series of regular expressions as variables but can't get it to behave properly.
You can see below what I'm trying to do.
Here with lowercase a-z and the same with uppercase, numbers 0-9 and again with a set of special characters, without having to type out every single... (3 Replies)
Discussion started by: 3therk1ll
4. Shell Programming and Scripting
eval echo \$tts_space_name$count
i m getting output of this stmnt as
I m not able to assign this value to a variable .
export j=`eval echo \$tts_space_name$count`
eval j= `eval echo \$tts_space_name$count`
and when i do echo $j ... i get o/p as 1 or 2... (1 Reply)
Discussion started by: Gl@)!aTor
5. Shell Programming and Scripting
I'm writing a script to merge the xkcd webcomic tiles for comic 1110. So far, I have written about 100 lines, and instead of doing each quadrant of the image separately, I've decided to use functions to do this, repeating for every quadrant and using variables for each quadrant to make the function... (9 Replies)
Discussion started by: jbondhus
6. UNIX for Dummies Questions & Answers
i have a command line like this in csh script
grep -i "$argv$"
which i wanted to select the line ending with string provided as argument but it couldn't interpret the '$' (ending with)..
any help? (3 Replies)
Discussion started by: ymc1g11
7. Shell Programming and Scripting
i'm reading a file "LISTE_FILE" like :
$LOGCOM * 5
$PRCCOM * 10
and i want to use the file with "while" and having the fields splitted into new variables for treatment :
while read LINE
# Ignorer les commentaires un # en premiere position
then... (3 Replies)
Discussion started by: Nicol
8. Shell Programming and Scripting
I hope this is not a duplicate thread, but i didn't find anything similar...
I had this script:
and i want this output:
... (7 Replies)
Discussion started by: raffaelesergi
9. UNIX for Dummies Questions & Answers
Could you please let me know what is the problem here..
29:eval $var1=`grep "^DBSERVER=" "$i" |cut -d"=" -f2`
i get this error:
syntax error at line 29 : `|' unexpected
Thanks for your quick response..This is urgent..pls..
Kaushik (5 Replies)
Discussion started by: kaushikraman
10. Shell Programming and Scripting
I use AIX with ISM PILOT, I want to match something with a varible like this :
$variable = 10 #this variable is the number of the job
"$variable STARTED" # the pattern
how can use this variable to match it with the word STARTED
Tanks (0 Replies)
Discussion started by: barribar