Search Results

Search: Posts Made By: cool.aquarian
6,721
Posted By cool.aquarian
This would work if I wanted to transmit all...
This would work if I wanted to transmit all output of awk in one HTTP POST.
But if I want to POST each record extracted by awk separately, I have to perform curl from inside the awk script.
6,721
Posted By cool.aquarian
I am using an awk script, and passing the script...
I am using an awk script, and passing the script to awk command using -f switch.
awk has a function called system() to execute shell commands.


In your answer, the string "all my post data" is...
6,721
Posted By cool.aquarian
How to avoid "Too many arguments" error, when passing a long String literal as input to a command?
Hi,

I am using awk here.
Inside an awk script, I have a variable which contains a very long XML data in string format (500kb).

I want to pass this data (as argument) to curl command using...
6,993
Posted By cool.aquarian
Hi there.. I managed to improve the...
Hi there..

I managed to improve the performance by 10-fold for real time reading.

I analysed and found that most time was being taken by
while IFS= read -r lineI replaced the while loop with...
1,980
Posted By cool.aquarian
Thanks for this. It worked for me. I have...
Thanks for this. It worked for me.
I have similar need for another use case.
Here, the variable LogText contains a JSON(which can be multiline), and I want to extract the first occurence same way:...
1,980
Posted By cool.aquarian
awk - find first occurence and replace it
Hello,

I have a requirement to replace the whole string with first occurence of value of a key-value pair.

I have to do this inside awk, as the data I need to work is inside an awk loop.
...
6,993
Posted By cool.aquarian
Thanks for your post. About what is fast...
Thanks for your post.
About what is fast enough, a delay of 30 seconds or so would be within the accepted level. But I have seen that on average, the tail command is able to read less than 70% of...
6,993
Posted By cool.aquarian
How to read a fast written log file at Real time speed?
Hello All,

I am building a real time parser for a log file in my application.
The log file is continuously written at a very fast pace and gets rolled over every 10 minutes.

I have measured...
1,846
Posted By cool.aquarian
echo " 10 2 12 1 13"...
echo " 10 2 12 1 13" | grep "^[ \t]*\d\+[ \t]*\d\+[ \t]*\d\+[ \t]*\d\+[ \t]*\d\+[ \t]*$"
2,521
Posted By cool.aquarian
Help - Infinite Loop: Error in trap function
Hi,

I was working on implementing error handling in my bash scripts, and decided to use trap to send myself an email incase of any errors. But it seems that somethings has gone wrong, and I am...
5,550
Posted By cool.aquarian
How to prevent grep command from throwing a system trap if No match is found.
Hi

How to prevent grep command from throwing a system trap(or returning error status) if No match is found in the specified file(s) ?

Consider this simple shell script:


#!/usr/bin/ksh...
7,668
Posted By cool.aquarian
Editing Binary Files in Unix
Hi,

Is there a way to edit BINARY files in Unix.

Or even are there any commands (shellscript/perl) through which I can replace all the occurences of a string inside a BINARY file with another...
10,356
Posted By cool.aquarian
I too had the same question few days back. ...
I too had the same question few days back.
Googled it, but dint find anything useful.
2,751
Posted By cool.aquarian
your script a1.sh is trying to execute T1.sh from...
your script a1.sh is trying to execute T1.sh from /ednadtu3/u01/pipe/logs directory.

Are u sure T1.sh lies in there ?
Showing results 1 to 14 of 14

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