Search Results

Search: Posts Made By: youareapkman
3,597
Posted By youareapkman
Perl Script Syntax error in version 4
Hi , I use the following simple perl script to find the yesterday time

perl -e ' use POSIX(strftime); print POSIX::strftime("%a %b %e %H:%M:%S %Y", localtime(time-86400*$ARGV[0]))' 1

However...
10,036
Posted By youareapkman
How to do the date operation ???
Dear Brothers and Sisters ,

If I use the command date , it will echo out today . How can I get the tomorrow date using the command date ? How to I do the date operation ?
Thanks you very much...
50,045
Posted By youareapkman
Concatenate the string with the newline character
Hi , i want to Concatenate a string and use the following code


str="i"
str="$str am \n"
str="$str a \n"
str="$str boy \n"
echo $str

I want to ouput this
i
am
a
boy

However it...
4,009
Posted By youareapkman
Hi , I am using the following shell version ...
Hi , I am using the following shell version


$ bash -version
GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
15,775
Posted By youareapkman
I try typeset -a array , but the problems seems...
I try typeset -a array , but the problems seems to be exist:confused::confused:

$ typeset -a array
$ array[aa]=123
$ array[bb]=345
$ echo ${array[bb]}
345
$ echo ${array[aa]}
345

I am...
15,775
Posted By youareapkman
Problem when assign the array with the string index
I come across the problems when assigning the array in the script below . How to use the array with the 'string index' correctly ? When I assign a new string index , the array elements that are...
4,009
Posted By youareapkman
Hi , I use the following code to prase and assign...
Hi , I use the following code to prase and assign the value to the array
cmd=`awk '
BEGIN {FS="="}
{
if(NF == 3 && $1=="ThreadFail")
{
print $1"["$2"]="$3
...
4,009
Posted By youareapkman
Yes , your information is very useful . eval is...
Yes , your information is very useful . eval is what exactly I want . Thanks
4,009
Posted By youareapkman
Prase a file and store and result to an array
Dear all,

I have a file having the following formats:


ThreadFail=Web1=1234
ThreadFail=Web2=2345
ThreadFail=Web3=12
ConnectionFail=DB1=11
ConnectionFail=DB2=22


The number of lines...
2,007
Posted By youareapkman
Prase a file and stored the result to an array
Dear all ,

I have a file whose content has the following format:

jboss.web:type=ThreadPool,name=AAAA
jboss.web:type=ThreadPool,name=BBBB

How can I parse this file to get the value of the...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 02:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy