Sorry, Forgot to say that I cannot use environment variable name here. I mean, I cannot use 'BMS_EMAIL_ENABLED'. Because script should be able to use variables like 'AJB_BATCH_ENABLE' also. So in my script I use everything as variables.
Below is my script:
Which will get parameters like BMS_EMAIL_ENABLED BMS_EMAIL_SERVER SMTP_SERVICE.
---------- Post updated at 07:31 PM ---------- Previous update was at 07:29 PM ----------
Sorry, Forgot to say that I cannot use environment variable name here. I mean, I cannot use 'BMS_EMAIL_ENABLED'. Because script should be able to use variables like 'AJB_BATCH_ENABLE' also. So in my script I use everything as variables.
Below is my script:
Which will get parameters like BMS_EMAIL_ENABLED BMS_EMAIL_SERVER SMTP_SERVICE.
---------- Post updated 06-10-11 at 08:23 AM ---------- Previous update was 06-09-11 at 07:31 PM ----------
Sorry for confusing. Let me simplify my question.
I need to use both a word and variable as a pattern in search term of sed command.
Like this
#-word/some character
${svar5} -variable
When i tried the above one, it deleted all # in the file along with I intended.
Hello,
The following sed command is giving error
sed: -e expression #1, char 13: unknown option to `s'
The sed command is
echo "//-----" | sed "s/\/\/---*/$parChk/g"
where parChk="//---ee-"
How can i print the variable value from sed command ?
And is it possible to replace a... (2 Replies)
I cannot seem to correctly assign this line of code to a variable:
HITS=`pwd`/csv/LightningProbability30minAlignmentErrorTable_*.csv | sed 's/,/ /g' | awk '{print int(100*$5)}' | wc
This does not work.
I tried surrounding it in backticks, but I think the backticks in `pwd` is messing it... (10 Replies)
Hi All,
I'm trying to extract all the description fields from a MIB file which contain multiple instances of the following text:
ENTERPRISE compaq
VARIABLES { sysName, cpqHoTrapFlags, cpqSsBoxCntlrHwLocation,
cpqSsBoxCntlrIndex, cpqSsBoxBusIndex,... (10 Replies)
Yes, there is a great doc out there that discusses parsing csv files with sed, and this topic has been covered before but not enough to answer my question (unix.com forums).
I'm trying to parse a CSV file that has optional quotes like the following:
"Apple","Apples, are fun",3.60,4.4,"I... (3 Replies)
Hi,
I have a log file which contains lines like below:
2010-07-19 07:13:19,021 ERROR system ...(text)
2010-07-19 07:22:03,427 ERROR system ...(text)
class com... (text)
2010-07-19 07:23:19,026 ERROR system ...(text)
class com... (text)
each line is a separate line... I am given the a... (11 Replies)
I have an application(Minecraft Server) that generates a logfile live. Using Crontab and screen I send a 'list' command every minute.
Sample Log view:
2013-06-07 19:14:37 <Willrocksyea1> hello*
2013-06-07 19:14:41 <Gromden29> hey
2013-06-07 19:14:42 Gromden29 lost connection:... (1 Reply)
The intended result should be :
PDF converters
'empty line'
gpdftext and pdftotext?xml version="1.0"?>
xml:space="preserve"><note-content version="0.1" xmlns:/tomboy/link" xmlns:size="http://beatniksoftware.com/tomboy/size">PDF converters
gpdftext and pdftotext</note-content>... (9 Replies)
I have a file
Line 1 a
Line 22
Line 33
Line 1 b
Line 22
Line 1 c
Line 4
Line 5
I want to delete all lines before last occurrence of a line which contains something which is defined in a variable. Say a variable var contains 'Line 1', then I need the following in the output.
... (21 Replies)
Dear Community;
I have a long xml file (100k+ lines) with patterns like below:
<OfferDefinition Id="123">
<Type>Timer</Type>
<Description>Test Text1</Description>
<MajorPriority>95</MajorPriority>
<SelectableInPolicy>0</SelectableInPolicy>
... (10 Replies)