10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am trying to Zip a folder inside a shell script like below. It successfully taring but it only returns Null inside the variables. Searched a lot but no clue to finding the root cause.
testno=1;
date=20171128;
DIR=/root/ sh -c 'cd $DIR; tar cvf "AWS.${testno.${date}.tar" "./AWS"'
... (5 Replies)
Discussion started by: pradyumnajpn10
5 Replies
2. Shell Programming and Scripting
Friends, I have the following problem
var=30|500;
I need to keep those values in the variable other unique pattern that I have is |
so should be
var2=30;
var3=500;
I tried to use my split does not work
Example failed
var2=split("|",$var);
var3=split("|",$var); (4 Replies)
Discussion started by: tricampeon81
4 Replies
3. Shell Programming and Scripting
Dear Perl users/experts,
Could somebody help me how to solve my problem, I have a hash variable that I want to convert into dot file (graphviz).
I know how to convert it to dot file but I need some modification on the output of the hash variable before convert it to dot file.
Eeach key of... (1 Reply)
Discussion started by: askari
1 Replies
4. Shell Programming and Scripting
awk 'NF==2{s=$1;next}{$(NF+1)=s}1' sort.txt > output.txt
A_16_P32713632 chr10 90695750 90695810 ACTA2
A_16_P32713635 chr10 90696573 90696633 ACTA2
A_16_P32713680 chr10 90697419 90697479 ACTA2
The command above outputs the data as a string separated by a space in 1 field. I can not... (6 Replies)
Discussion started by: cmccabe
6 Replies
5. Shell Programming and Scripting
Hi,
Variable1 = MKT1,MKT2,MKT3,MKT4
Now i want to store each of these value seperated by comma to a array and access each of the values. Also find out number of such values seperated by comma.
Variable1 can have any number of values seperated by comma.
Thanks :) (3 Replies)
Discussion started by: arghadeep adity
3 Replies
6. UNIX for Dummies Questions & Answers
I have one command which provide following output related to file system and disk space utilization
Filesystem kbytes used avail %used Mounted on
/dev/lvol3 131072 73407 54088 58% /
/abc/lvol1 59797 30314 2350300 ... (8 Replies)
Discussion started by: Nakul_sh
8 Replies
7. Shell Programming and Scripting
Hi all,
I have a requirement to put all the varibles used in an awk command in a separate file. This is because i have arround 100 variables used in an awk command. So i want to put all the variables used for the awk command in a separate file.
Please help me on this.
Thanks in adv. (6 Replies)
Discussion started by: gani_85
6 Replies
8. Shell Programming and Scripting
I am trying to make a script that takes a word and each letter up and turns it into a separate variable. My code currently does not work but I feel I just need to tweak one thing that I am unsure of.
(ex: if forum was typed in letter1=f; letter2=o; letter3=r;...)
Thank you
count=1;
... (7 Replies)
Discussion started by: crimputt
7 Replies
9. Shell Programming and Scripting
Hi everyone!
I have a field like that:
I need to keep
I don't know how to use the Capital character like a separator and how to keep only this one...
I guess sed could do something like that...
Thanks;) (3 Replies)
Discussion started by: Castelior
3 Replies
10. Shell Programming and Scripting
Hey guys, new problem....im not being able to seperate variables.
the code runs like this...
OPTIONS=$(awk '{print $2}' /etc/fstab}
a=$(zenity --list --text "Mount points selection" --radiolist --column "choice" --column "mountpt" FALSE $OPTIONS); echo $a
Note: the result i get is that... (2 Replies)
Discussion started by: dplate07
2 Replies