Seems you want lines which have strings either UNKNOWN or CRITICAL in single line. The method used by you will look for a line which has both strings in it, since there is no line like that in input file provided by you so result is correct which is NULL, use below and let me know if that helps you.
Output is as follows.
Thanks,
R. Singh
Hi,
I have to search those statements from the file which starts from "shanky"(only shanky, shanky09 or 09shanky is not allowed) and ends with ");". These two string can be in a same line or different line. And also i have to negate those lines which starts with #.
Can any one please give me... (2 Replies)
How can I pass $var_find variable as argment to find command?
test.sh
var_find=' \( -name "*.xml" -o -name "*.jsp" \) '
echo "${var_find}"
find . -type f ${var_find} -print
# Below statement works fine.. I want to replace this with the above..
#find . \( -name "*.xml" -o -name... (4 Replies)
Hello All,
I have a file which is having below type of data,
Jul 19 2011 | 123456
Jul 19 2011 | 123456
Jul 20 2011 | 123456
Jul 20 2011 | 123456
Here I wanted to grep for date pattern as below, so that it should only grep "Jul 20" OR "Jul ... (9 Replies)
user 10
values
content is:
musage.py
yes
value
user 11
values
content is:
gusage.py
yes
value
how to print "user" string line by searching "content is:" string and "usage.py" string in perl (8 Replies)
Hello :)
I have this file
cat employee_list
Name : jack
Gender: m
ID : 4512
DOB : 03/27/1980
hire date : 04/23/2012
Nationality: US
marital status : single
=====================
Name : mick
Gender: m
ID : 1256
DOB : 03/27/1970
Hire date : 012/10/2011
Nationality: US
Marital... (4 Replies)
Want to fetch a column with multiple pattern using awk.
How to achieve the same.
Tried
cat test
address : 10.63.20.92/24
address : 10.64.22.93/24
address : 10.53.40.91/24
cat test | awk '{print $3}' |awk -F "/" '{print $1}'
10.63.20.92
10.64.22.93
10.53.40.91
Is there any... (2 Replies)
I am working on AIX operating system.
I want to search list of Article Id for given Set Date (which are present in a seperate file input.txt)
art_list.csv
------------
"Article ID" |"Ad Description" |"Pyramid"|"Pyramid Desc "|"ProductTypeId"|"Set Date "|... (3 Replies)
#!/usr/bin/ksh
a="Run successfully"
cd $APPS
ls -l *.txt | while read $txt
do
if then
cp $APPS/$txt cp $hist/$txt
else
rm $APPS/$txt
echo "Files has been removed"
fi
done
New in shell script please help me out
Around 100 txt files in $APPS dir i want to search pattern from... (8 Replies)
Discussion started by: Kalia
8 Replies
LEARN ABOUT MOJAVE
curlopt_cookiefile
CURLOPT_COOKIEFILE(3) curl_easy_setopt options CURLOPT_COOKIEFILE(3)NAME
CURLOPT_COOKIEFILE - file name to read cookies from
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_COOKIEFILE, char *filename);
DESCRIPTION
Pass a pointer to a zero terminated string as parameter. It should point to the file name of your file holding cookie data to read. The
cookie data can be in either the old Netscape / Mozilla cookie data format or just regular HTTP headers (Set-Cookie style) dumped to a
file.
It also enables the cookie engine, making libcurl parse and send cookies on subsequent requests with this handle.
Given an empty or non-existing file or by passing the empty string ("") to this option, you can enable the cookie engine without reading
any initial cookies.
This option only reads cookies. To make libcurl write cookies to file, see CURLOPT_COOKIEJAR(3).
Exercise caution if you are using this option and multiple transfers may occur. If you use the Set-Cookie format and don't specify a
domain then the cookie is sent for any domain (even after redirects are followed) and cannot be modified by a server-set cookie. If a
server sets a cookie of the same name then both will be sent on a future transfer to that server, likely not what you intended. To address
these issues set a domain in Set-Cookie (doing that will include sub-domains) or use the Netscape format.
If you use this option multiple times, you just add more files to read. Subsequent files will add more cookies.
The application does not have to keep the string around after setting this option.
DEFAULT
NULL
PROTOCOLS
HTTP
EXAMPLE
TODO
AVAILABILITY
As long as HTTP is supported
RETURN VALUE
Returns CURLE_OK if HTTP is supported, and CURLE_UNKNOWN_OPTION if not.
SEE ALSO CURLOPT_COOKIE(3), CURLOPT_COOKIEJAR(3),
libcurl 7.54.0 December 21, 2016 CURLOPT_COOKIEFILE(3)