LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-23-2010, 01:36 AM   #61
simon.sweetman
Member
 
Registered: Mar 2009
Posts: 32

Rep: Reputation: 22

This should get you going.

grep for all lines that contain " successfully" or "is Failed on" - get last one found (using tail -1) and put in voicemsg.

grep for all lines that contain " started at " and put last one found (using tail -1) into voicemsg1.

Code:
voicemsg=`grep -F " successfully
is Failed on" $voicedir | tail -1`
voicemsg1=`grep -F " started at " $voicedir | tail -1`
 
1 members found this post helpful.
Old 07-23-2010, 01:47 AM   #62
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by tedy2808 View Post
ok..below are the output i got from the script..i want the same output but need to change the script using grep instead of assigning specific line to print the output.


report_name 27 Mar 2010 00:10:00 AM 00:10:00 AM Report Success

thanks.
you are using bash shell correct?

Last edited by ghostdog74; 07-23-2010 at 01:49 AM.
 
Old 07-23-2010, 03:17 AM   #63
simon.sweetman
Member
 
Registered: Mar 2009
Posts: 32

Rep: Reputation: 22
No he is using bourne shell (/bin/sh) and most commands in his system only support POSIX (e.g. no -d on date or -r on sed).
 
Old 07-23-2010, 04:10 AM   #64
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by simon.sweetman View Post
No he is using bourne shell (/bin/sh) and most commands in his system only support POSIX (e.g. no -d on date or -r on sed).
i am confused, so why is he using $(()) syntax?
 
Old 07-23-2010, 04:22 AM   #65
tedy2808
Member
 
Registered: Jul 2010
Posts: 34

Original Poster
Rep: Reputation: 15
i just try an error and $(()) syntax seems working..fyi,
i'm using /sh..

i really new in linux, thus i'm not familiar with all the syntax etc..i just do lot's of try an error
 
Old 07-23-2010, 04:33 AM   #66
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,695
Blog Entries: 5

Rep: Reputation: 240Reputation: 240Reputation: 240
then its not really the old bourne shell, but sh that is linked to some other shell (probably bash)
 
Old 07-23-2010, 05:08 AM   #67
tedy2808
Member
 
Registered: Jul 2010
Posts: 34

Original Poster
Rep: Reputation: 15
thanks simon..the code really helps..

1 more question..

there are other type of input..thus the setting will not be the same..
need your guidance..

below are the script:

Code:
 
#!/bin/sh
dailydir=/home/input/crm.log

dailymsg=`tail -4 $dailydir`
dailymsg1=`tail -8 $dailydir`
dailymsg2=`tail -9 $dailydir`
dailymsg3=`tail -2 $dailydir`
dailytype=Report

dailystatus=successfully
dailytest_name=`echo "$dailymsg"|awk '{ print $3 }'`

if [ $dailytest_name = $dailystatus ]; then
dailystatus=Success
else
dailystatus=Failed
fi

dailyname_crm=`echo $dailymsg1|awk ' { print $4 }'`
dailyname_daily=`echo $dailymsg1|awk ' { print $5 }'`
dailyname_update=`echo $dailymsg1|awk ' { print $6 }'`

dailyname=`echo "$dailyname_crm $dailyname_daily $dailyname_update"`

daily_date=`echo $dailymsg1|awk '{ print $1 }'|tr "-" " " `
dailyday=`echo $daily_date|awk '{ print $1 }'`
dailymonth=`echo $daily_date|awk '{print $2}'`
#dailymonth=`echo "$dailymonth1 $dailymonth2"`
dailymonth1=`echo $dailymonth|cut -c1`
dailymonth2=`echo $dailymonth|cut -c2-3|tr '[:upper:]' '[:lower:]'`
daily_month=`echo "$dailymonth1$dailymonth2"`
dailyyear=`echo $daily_date|awk ' { print $3 }'`

dailydate=`echo $dailyday $daily_month $dailyyear`
#dailyyear=`echo $dailydate|awk ' { print $3 }'`
dailystart_time=`echo $dailymsg2|awk ' { print $2}' |tr "." " "`
dailystart_time=`echo $dailystart_time|awk ' { print $1 }'`

dailystart_hour=`echo $dailystart_time|cut -c1-2`
dailystart_min=`echo $dailystart_time|cut -c4-5`
dailystart_sec=`echo $dailystart_time|cut -c7-8`

if [ $dailystart_hour -le 12 ];then
dailyst_hour=$dailystart_hour
dailyap='AM'
else
dailyst_hour=`expr $((dailystart_hour - 12))`
if [ $dailyst_hour -lt 10 ] ;then
dailyst_hour=`echo "0"$dailyst_hour`
fi
dailyap='PM'
fi

dailyend_time=`echo "$dailymsg3"|awk '{ print $2}'|tr "." " "`
dailyend_time=`echo "$dailyend_time"|awk '{print $1}'`

dailyend_hour=`echo "$dailyend_time"|cut -c1-2`
dailyend_min=`echo $dailyend_time|cut -c4-5`
dailyend_sec=`echo $dailyend_time|cut -c7-8`

if [ $dailyend_hour -le 12 ];then
dailye_hour=$dailyend_hour
dailye_ap='AM'
else
dailye_hour=`expr $((dailyend_hour - 12))`
if [ $dailye_hour -lt 10 ] ;then

dailye_hour=0$dailye_hour
fi
dailye_ap='PM'
fi

dailynew_start_time="$dailyst_hour:$dailystart_min:$dailystart_sec $dailyap"
dailynew_end_time="$dailye_hour:$dailyend_min:$dailyend_sec $dailye_ap"

echo $dailyname \ \ \ \ \ $dailydate \ \ \ \ \ $dailynew_start_time \ \ \ \ \ $dailynew_end_time \ \ \ \ \ $dailytype \ \ \ \ \ $dailystatus
the input are:
(crm.log)
Code:
  --------------------------------------------------------------------------------

Elapsed: 00:00:00.05
06-JUL-2010 00:09:12 : MY REPORT NAME starts

Elapsed: 00:00:00.00

KL/SSL process successfully completed.

Elapsed: 00:01:48.11
--------------------------------------------------------------------------------

Elapsed: 00:00:00.03
07-JUL-2010 00:09:13 : MY REPORT NAME starts

Elapsed: 00:00:00.00

KL/SSL process successfully completed.

Elapsed: 00:01:42.65
--------------------------------------------------------------------------------

Elapsed: 00:00:00.00
08-JUL-2010 00:09:15 : MY REPORT NAME starts

Elapsed: 00:00:00.00

KL/SSL process successfully completed.

Elapsed: 00:01:35.54
--------------------------------------------------------------------------------

Elapsed: 19:00:00.06
13-JUL-2010 00:09:16 : MY REPORT NAME starts

Elapsed: 00:00:00.00

KL/SSL process failed to complete.

Elapsed: 18:01:31.56


the output is:
MY REPORT NAME 13 Jul 2010 07:00:00 PM 06:01:31 PM Report Failed


Based on the input file, start time is retrieved from Elapsed: 19:00:00.06
and end time is from Elapsed: 18:01:31.56 . Thus, how am i going to grep both line that have same name but different position?? hope you understand my code

does the code below correct? sorry, currently don't have access to the shell compiler...thus i'm thinking of doing the script like this..

Code:
 dailymsg=`grep -F " elapsed" $dailydir | tail -1`
dailymsg1=`grep -F " elapsed " $dailydir | tail -2`
correct me if i'm wrong..i'll try to run this script as soon as i got the access to the shell compiler..
Thanks

Last edited by tedy2808; 07-25-2010 at 05:04 AM. Reason: change the position for tail (dir) - my bad.. i did make changes on $dailymsg3 and add my script above
 
Old 07-25-2010, 06:01 AM   #68
tedy2808
Member
 
Registered: Jul 2010
Posts: 34

Original Poster
Rep: Reputation: 15
Hi guys,
based on my scripts, do you have any idea on how to make it more shorter and simpler?
i couldn't run the script that simon and sasha did before(that contain sed etc).thus,if you guys have any idea on how to make my latest script shorter,i want your guidance.This is because, i need to create 10 script and 7 of it have almost the same script (the difference is only the variable).
Below are the example:

Code:
 #!/bin/sh

voicedir=/home/input/test.log
#voicemsg=`tail -7 $voicedir`
#voicemsg1=`tail -3 $voicedir`
voicemsg1=`grep -F " successfully
is Failed on" $voicedir | tail -1`
voicemsg=`grep -F " started at " $voicedir | tail -1`
voicetype=Report
voicestatus=successfully

voicetest_name=`echo "$voicemsg1"|awk ' { print $3 } '`
if [ $voicetest_name = $voicestatus ]; then
voicename=`echo "$voicemsg1"|awk ' { print $2 } '`
voicee_time=`echo "$voicemsg1"|awk ' { print $9 } '`
voicemonth=`echo "$voicemsg1"|awk ' { print $7 } '`
voiceyear=`echo "$voicemsg1"| tr -d '.'|awk ' { print $NF } ' |tr ":" " "`
voiceday=`echo $voicemsg1|awk ' { print $8 } '`
voicedate=`echo "$voiceday" "$voicemonth" "$voiceyear"`
voicestat=Success
else
voicename=`echo "$voicemsg1"|awk ' { print $3 } '`
voicee_time=`echo "$voicemsg1"|awk ' { print $10 } '`
voicemonth=`echo "$voicemsg1"|awk ' { print $8 } '`
voiceyear=`echo "$voicemsg1"|awk '{ print $12 }' |cut -c-1-4`
voiceday=`echo "$voicemsg1"|awk ' { print $9 } '`
voicedate=`echo "$voiceday" "$voicemonth" "$voiceyear"`
voicestat=Failed
fi


#-----------------to identify start time---------------#
voices_time=`echo $voicemsg|awk '{ print $8 }'`
voicestart_hour=`echo "$voices_time" |cut -c1-2`
voicestart_min=`echo $voices_time |cut -c4-5`
voicestart_sec=`echo $voices_time |cut -c7-8`
if [ $voicestart_hour -le 12 ] ;then
voicest_hour="$voicestart_hour"
voice_sap='AM'
else
voicest_hour=`expr $((voicestart_hour - 12))`
if [ $voicest_hour -lt 10 ] ;then
#voicest_hour=`echo $voicest_hour |cut -c1

voicest_hour=0$voicest_hour
fi
voice_sap='PM'
fi
#-----------------to identify end time----------------#
voicehour=`echo $voicee_time |cut -c1-2`
voicemin=`echo $voicee_time |cut -c4-5`
voicesec=`echo $voicee_time |cut -c7-8`
if [ $voicehour -le 12 ] ;then
voiceen_hour=$voicehour
voiceap='AM'
else
voiceen_hour=`expr $((voicehour - 12))`
if [ $voiceen_hour -lt 10 ]; then
voiceen_hour=0$voiceen_hour
fi
voiceap='PM'
fi

if [ "$voiceday" -lt 10 ]
then
voicef_day="0$voiceday"
else
voicef_day="$voiceday"
fi

voicenew_start_time="$voicest_hour:$voicestart_min:$voicestart_sec $voice_sap"
voicenew_end_time="$voiceen_hour:$voicemin:$voicesec $voiceap"
voicenew_date=`echo "$voicef_day" " $voicemonth" " $voiceyear"`

#echo $voicest_hour
echo $voicename \ \ \ \ \ \ \ \ $voicenew_date \ \ \ \ \ $voicenew_start_time \ \ \ \ \ $voicenew_end_time \ \ \ \ \ $voicetype \ \ \ \ \ $voicestat


 nextdir=/home/input/next.log
#nextmsg=`tail -7 $nextdir`
#nextmsg1=`tail -3 $nextdir`
nextmsg1=`grep -F " successfully
is Failed on" $nextdir | tail -1`
nextmsg=`grep -F " started at " $nextdir | tail -1`




nexttype=Report
nextstatus=successfully
nexttest_name=`echo "$nextmsg1"|awk ' { print $2 } '`
if [ $nexttest_name = $nextstatus ]; then
nextname=`echo "$nextmsg1"|awk ' { print $1 } '`
nexte_time=`echo "$nextmsg1"|awk ' { print $8 } '`
nextmonth=`echo "$nextmsg1"|awk ' { print $6 } '`
nextyear=`echo "$nextmsg1"| tr -d '.'|awk ' { print $NF } ' |tr ":" " "`
nextday=`echo "$nextmsg1"|awk ' { print $7 } '`
nextdate=`echo "$nextday" "$nextmonth" "$nextyear"`
nextstat=Success
else
nextname=`echo "$nextmsg1"|awk ' { print $2 } '`
nexte_time=`echo "$nextmsg1"|awk ' { print $9 } '`
nextmonth=`echo "$nextmsg1"|awk ' { print $7 } '`
nextyear=`echo $nextmsg|awk '{ print $9 }' |tr -d '.'`
nextday=`echo "$nextmsg1"|awk ' { print $8 } '`
nextdate=`echo "$nextday" "$nextmonth" "$nextyear"`
nextstat=Failed
fi

nexts_time=`echo $nextmsg|awk '{ print $7 }'`
nextstart_hour=`echo $nexts_time |cut -c1-2`
nextstart_min=`echo $nexts_time |cut -c4-5`
nextstart_sec=`echo $nexts_time |cut -c7-8`
if [ $nextstart_hour -le 12 ] ;then
nextst_hour=$nextstart_hour
nextap='AM'
else
nextst_hour=`expr $((nextstart_hour - 12))`
if [ $nextst_hour -lt 10 ] ;then
nextst_hour=0$nextst_hour
fi
nextap='PM'
fi
nexthour=`echo $nexte_time |cut -c1-2`
nextmin=`echo $nexte_time |cut -c4-5`
nextsec=`echo $nexte_time |cut -c7-8`
if [ $nexthour -le 12 ] ;then
nexten_hour=$nexthour
nextap='AM'
else
nexten_hour=`expr $((nexthour - 12))`
if [ $nexten_hour -lt 10 ]; then
nexten_hour=0$nexten_hour
fi
nextap='PM'
fi

if [ $nextday -lt 10 ]
then
nextf_day="0$nextday"
else
nextf_day="$nextday"
fi

nextnew_start_time="$nextst_hour:$nextstart_min:$nextstart_sec $nextap"
nextnew_end_time="$nexten_hour:$nextmin:$nextsec $nextap"
nextnew_date=`echo "$nextf_day" "$nextmonth" "$nextyear"`


echo $nextname \ \ \ \ \ $nextnew_date \ \ \ \ \ $nextnew_start_time \ \ \ \ \ $nextnew_end_time \ \ \ \ \ $nexttype \ \ \ \ \ $nextstat

thus the output will be the same output as before and based on above script it will have have two lines of output.
p/s: the input also is same format, the different is the report name,date,time etc.

in this example i only show 2 script combination and i have to combine all 7 script that have similar codes and the script will be too long!
anyone have idea on how to make the scrip shorter ??



thanks in advanced

Last edited by tedy2808; 07-25-2010 at 06:02 AM.
 
Old 07-25-2010, 06:30 AM   #69
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543Reputation: 543
The script(s) appear to mostly be lists of variable assignments, and a few if/then tests. Without severely over-complicating things, there isn't much that I can think of immediately, that would make this a whole lot shorter. However, here's a couple things to think about:

You can shorten this to one line:
Code:
if [ "$voiceday" -lt 10 ]
then
voicef_day="0$voiceday"
else
voicef_day="$voiceday"
fi
Like so:
Code:
[ "$voiceday" -lt 10 ] && voicef_day="0$voiceday" || voicef_day="$voiceday"
The [ ... ] does an `if` type of comparison; && means `then` and || means `else`

Also, I'm not sure what this does:
Code:
echo $voicename \ \ \ \ \ \ \ \ $voicenew_date \ \ \ \ \ $voicenew_start_time \ \ \ \ \ $voicenew_end_time \ \ \ \ \ $voicetype \ \ \ \ \ $voicestat
But you may be able to shorten that by putting the whole string in "double quotes", and getting rid of all those back-slashes.
 
1 members found this post helpful.
Old 07-25-2010, 06:24 PM   #70
simon.sweetman
Member
 
Registered: Mar 2009
Posts: 32

Rep: Reputation: 22
Couple of ideas to simplify it a little:

1. Use a function to convert 24hr time to AM/PM format
2. Use awk printf function to put leading zero on day number
3. Get rid of "\ \ \ " from final echo with quoted string instead.

Code:
#!/bin/sh

timeampm () {
    read time_in
    time_hour=`echo $time_in | cut -c1-2`
    time_min=`echo $time_in | cut -c4-5`
    time_sec=`echo $time_in | cut -c7-8`

    if [ $time_hour -le 12 ]
    then
       ap='AM'
    else
       time_hour="$(( $time_hour - 12 ))"
       ap='PM'
    fi
    printf "%02d:%02d:%02d %s" $time_hour $time_min $time_sec "$ap"
}

voicedir=/home/input/test.log
voicemsg1=`grep -F " successfully
is Failed on" $voicedir | tail -1`
voicemsg=`grep -F " started at " $voicedir | tail -1`
voicetype=Report
voicestatus=successfully

voicetest_name=`echo "$voicemsg1"|awk ' { print $3 } '`
if [ $voicetest_name = $voicestatus ]; then
    voicename=`echo "$voicemsg1"|awk ' { print $2 } '`
    voicee_time=`echo "$voicemsg1"|awk ' { print $9 } '`
    voicemonth=`echo "$voicemsg1"|awk ' { print $7 } '`
    voiceyear=`echo "$voicemsg1"| tr -d '.'|awk ' { print $NF } ' |tr ":" " "`
    voiceday=`echo $voicemsg1|awk ' { printf "%02d", $8 } '`
    voicedate="$voiceday $voicemonth $voiceyear"
    voicestat=Success
else
    voicename=`echo "$voicemsg1"|awk ' { print $3 } '`
    voicee_time=`echo "$voicemsg1"|awk ' { print $10 } '`
    voicemonth=`echo "$voicemsg1"|awk ' { print $8 } '`
    voiceyear=`echo "$voicemsg1"|awk '{ print $12 } ' |cut -c1-4`
    voiceday=`echo "$voicemsg1"|awk ' { printf "%02d", $9 } '`
    voicedate="$voiceday $voicemonth $voiceyear"
    voicestat=Failed
fi

voicenew_start_time=`echo $voicemsg|awk '{ print $8 }' | timeampm`
voicenew_end_time=`echo $voicee_time | timeampm`

echo "$voicename     $voicedate    $voicenew_start_time    $voicenew_end_time    $voicetype    $voicestat"


nextdir=/home/input/next.log
nextmsg1=`grep -F " successfully
is Failed on" $nextdir | tail -1`
nextmsg=`grep -F " started at " $nextdir | tail -1`

nexttype=Report
nextstatus=successfully
nexttest_name=`echo "$nextmsg1"|awk ' { print $2 } '`
if [ $nexttest_name = $nextstatus ]; then
    nextname=`echo "$nextmsg1"|awk ' { print $1 } '`
    nexte_time=`echo "$nextmsg1"|awk ' { print $8 } '`
    nextmonth=`echo "$nextmsg1"|awk ' { print $6 } '`
    nextyear=`echo "$nextmsg1"| tr -d '.'|awk ' { print $NF } ' |tr ":" " "`
    nextday=`echo "$nextmsg1"|awk ' { printf "%02d", $7 } '`
    nextnew_date="$nextday $nextmonth $nextyear"
    nextstat=Success
else
    nextname=`echo "$nextmsg1"|awk ' { print $2 } '`
    nexte_time=`echo "$nextmsg1"|awk ' { print $9 } '`
    nextmonth=`echo "$nextmsg1"|awk ' { print $7 } '`
    nextyear=`echo $nextmsg|awk '{ print $9 }' |tr -d '.'`
    nextday=`echo "$nextmsg1"|awk ' { printf "%02d", $8 } '`
    nextdate="$nextday $nextmonth $nextyear"
    nextstat=Failed
fi

nextnew_start_time=`echo $nextmsg|awk '{ print $7 }' | timeampm`
nextnew_end_time=`echo $nexte_time | timeampm`

echo "$nextname     $nextdate    $nextnew_start_time    $nextnew_end_time    $nexttype    $nextstat"

Last edited by simon.sweetman; 07-25-2010 at 06:27 PM.
 
1 members found this post helpful.
Old 07-25-2010, 10:40 PM   #71
tedy2808
Member
 
Registered: Jul 2010
Posts: 34

Original Poster
Rep: Reputation: 15
Help me!

based on the post #67,

i did not managed to output other lines except for dealmsg=`grep -F " successfully
is Failed on" $dealdir | tail -1`

i did try to output other lines but i seems that it's not working to0..


below are my code
Code:
  
dealmsg=`grep -F " successfully
is Failed on" $dealdir | tail -1`
dealmsg3=`grep -F " Elaps" $dealdir | tail -1`
dealmsg2=`grep -F " Elapsed: " $dealdir | tail -9`
dealmsg1=`grep -F " ting " $dealdir | tail -1`
need your help..thanks

Last edited by tedy2808; 07-25-2010 at 10:41 PM.
 
Old 07-26-2010, 03:12 AM   #72
tedy2808
Member
 
Registered: Jul 2010
Posts: 34

Original Poster
Rep: Reputation: 15
i noticed that the script could not process if the time is 09

for example..if i assign the input for end or start time to 09:11:11

it will output : 00:11:11 AM and error msg "printf: Error converting 09"

why is this happened?

and how to solve it??

Last edited by tedy2808; 07-26-2010 at 03:43 AM.
 
Old 07-26-2010, 06:29 AM   #73
simon.sweetman
Member
 
Registered: Mar 2009
Posts: 32

Rep: Reputation: 22
umm printf is assuming numbers starting with zero are octal (ie base 8). We should use sed to strip leading zeros:

Code:
timeampm () {
    read time_in
    time_hour=`echo $time_in | cut -c1-2 | sed 's/^0//'`
    time_min=`echo $time_in | cut -c4-5 | sed 's/^0//'`
    time_sec=`echo $time_in | cut -c7-8 | sed 's/^0//'`

    if [ $time_hour -le 12 ]
    then
       ap='AM'
    else
       time_hour="$(( $time_hour - 12 ))"
       ap='PM'
    fi
    printf "%02d:%02d:%02d %s" $time_hour $time_min $time_sec "$ap"
}
On your crm.log issue, try something like this (The space in front of your E was causing it not to match as your file starts with Elapsed not <space>Elapsed):

Code:
dealmsg=`grep -F " successfully
is Failed on" $dealdir | tail -1`
dealmsg3=`grep "Elapsed: " $dealdir | tail -1`
dealmsg2=`grep "Elapsed: " $dealdir | tail -2 | head -1`
dealmsg1=`grep "Elapsed: " $dealdir | tail -3 | head -1`
 
1 members found this post helpful.
Old 07-26-2010, 08:37 PM   #74
tedy2808
Member
 
Registered: Jul 2010
Posts: 34

Original Poster
Rep: Reputation: 15
thanks all..you guys it really helps! There are lots of thing that i need to know in linux and hope you guys can guide me in the future...Thanks again

Last edited by tedy2808; 07-28-2010 at 09:58 PM.
 
Old 10-13-2010, 10:40 PM   #75
tedy2808
Member
 
Registered: Jul 2010
Posts: 34

Original Poster
Rep: Reputation: 15
Hi all,
I'm trying to concatenate two command into one line.
Below are the commands;

Code:
ls $variable || grep -i / credit card
if grep "credit card" *.tmp

then ... fi
* variable ="/portal/apll/nad/send"

i wanted to list all files in /portal/apll/nad/send and grep only .tmp files that contains credit card word.

anyone can please guide me on this?

thanks in advance.
 
  


Reply

Tags
date, day, manipulating, sed, set


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] BASH: if Variable -eq String not working worm5252 Programming 2 01-24-2010 03:07 PM
Get value for variable name defined as string webquinty Programming 4 11-18-2009 05:30 AM
Help: removing a variable substring from a string variable in sh script gnparsons Programming 2 06-04-2008 05:21 PM
variable to string x2000koh Programming 4 07-30-2003 02:23 AM
Getting a variable name based on a string. jtshaw Programming 7 10-08-2002 02:06 PM


All times are GMT -5. The time now is 08:11 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration