Hello everybody!
I'm trying to create a parse script but I keep getting errors. Can you please help me out.
These are the errors that I keep on getting
/home/blank/Desktop/script/access_log-20101201: line 870: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 871: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 872: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 873: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 874: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 875: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 876: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 877: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 878: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 879: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 880: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 881: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 882: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 883: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 884: 209.221.168.11: command not found
/home/blank/Desktop/script/access_log-20101201: line 885: 66.249.65.70: command not found
/home/blank/Desktop/script/access_log-20101201: line 886: 123.125.66.124: command not found
/home/blank/Desktop/script/access_log-20101201: line 887: 207.46.13.86: command not found
/home/blank/Desktop/script/access_log-20101201: line 888: 220.181.7.130: command not found
/home/blank/Desktop/script/access_log-20101201: line 889: 129.121.131.74: command not found
/home/blank/Desktop/script/access_log-20101201: line 890: 129.121.131.74: command not found
/home/blank/Desktop/script/access_log-20101201: line 891: 208.115.111.248: command not found
/home/blank/Desktop/script/access_log-20101201: line 892: 208.115.111.248: command not found
Moderator's Comments:
Please use code tags when posting code.
Last edited by Perderabo; 04-30-2011 at 06:02 PM..
Reason: add code tags
I guess that the problem is due to the [[ ]] in the rotate function.
You need cat_while_read_LINE to return true (0) for the while loop to continue and false (non 0) for the while loop to terminate. No square brackets are needed.
Hello
I am trying to find how to do the following with awk and other tools.
Find a line in the file where the element 1 is equal to 12345, from the first occurrence, in that line find the element 11 what is equal to and print all lines in file where their element 11 is equal to the value of... (2 Replies)
Is there any tool that can parsing ksh script into grammar format?
e.g. the tool can parse the following ksh script:
echo "hello"> abc.txt
cp /home/user/abc/.profile /home/user/abc/myprofile
into
GENERATE abc.txt
COPY /home/user/abc/.profile TO /home/user/abc/myprofile
My server OS... (2 Replies)
Hello all,
I have a situation where I need to parse for certain items from a $VARIABLE within a sh script.
The sh script is run when an alert comes in.
The alert data payload has a Message field called "EVENTMSG"
The script that is run takes the "EVENTMSG" and prints it out to the... (12 Replies)
I have a file parameters.txt which contains
151524
151525
I have another file OID.csv which contains
NE Version Object Type ID SDK param name Object OID
test1 Start: 4.2 End: 4.2 pan 151524 speed ... (5 Replies)
Im trying to find a script that will pull ip addresses along with the date and time sort it by ip addresses and output it to a file...
As a newbie to scripting im kinda stumped here...and suggestions? (2 Replies)
Hello, I have a script that parses logs and sends the output via digitally signed and encrypted email. This script uses grep -v to exclude patterns in a file. The problem I have is if this is run via cron none of the pattern matching seems to occur. If I run it by hand it runs exactly as it is... (2 Replies)
Hi
I need some help with XML file parsing. I have an XML file with the below tag,
I need a script to identify the value of srvcName which is this case is "AAA srvc name". I need to put contents of this value which is AAA srvc and name into different variables using an array and then reformat it... (6 Replies)
Hi All,
I am looking for a parsing in perl script which will parse DJEČJI SVIJET. There is a unicode character above character C. How to parse the total DJEČJI SVIJET in perl.
Regards,
Harikrishna (3 Replies)
Hey guys,
I have this file generated by me... i want to create some HTML output from it.
The problem is that i am really confused about how do I go about reading the file.
The file is in the following format:
TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
I'm trying to parse the variables out of a comma delimited expression, but i'm having trouble with script:
num_var=1
while
do
a=`echo "a=7, b=8, c=9" | awk '{print $num_var}' | cut -d= -f2`
b=`echo $a | cut -d, -f1`
echo $b
num_var=`expr $num_var + 1`... (5 Replies)