10 More Discussions You Might Find Interesting
1. 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
2. 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
3. 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
4. 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
5. 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
6. Shell Programming and Scripting
Hello guys n girls,
I am using ksh script on AIX platform.
I am getting a DATE from input file in "YYYYMMDDHHMISS" format.
Now I want the same date in "YYYYMMDD" format into another variable.
For example,
if the DATE is 20101018121445
then I need 20101018 in another variable.
Please... (6 Replies)
Discussion started by: Poonamol
6 Replies
7. Shell Programming and Scripting
Hi,
I have logfile like this :
Actually the format is date format :
yyyymmddHHMMSS
and i want the log become this format
yyyy-mm-dd HH:MM:SS
for example
2009-07-19 11:46:52
Can somebody help me ?
Thanks in advance (3 Replies)
Discussion started by: justbow
3 Replies
8. UNIX for Dummies Questions & Answers
TIA,
I'm using FreeBSD 6
I have a series of Directories (A,B,C,...Z). Each directory has files and other directories within it.
I want to compress the contents of each top directory into a single file so that I get an archive of each directory (for example, A.gzip) AND and want to move... (5 Replies)
Discussion started by: jccbin
5 Replies
9. Shell Programming and Scripting
hye everybody :) ,
i'm new to the scripting world.. hope you guys can help me out with this one..
i'm trying to identify any directory under /tmp/saya that is created more than one day from the current date..
e.g, today is March 14, so any directory that has time stamp March 13 backwards, i... (2 Replies)
Discussion started by: fara_aris
2 Replies
10. Shell Programming and Scripting
Hi,
This is what happened after I came back from vacation: I don't remember how to do some simple things anymore.
I have a variable being passed in Kshell script. I only know the variable is like string: "str1 str2 str3 ....", and they are separated with blank spaces. I need to separate each... (4 Replies)
Discussion started by: whatisthis
4 Replies