STRSTR(3) Library Functions Manual STRSTR(3)NAME
strstr - locate a substring in a string
char *big, *little;
The strstr() function locates the first occurrence of the null-terminated string little in the null-terminated string big. If little is
the empty string, strstr() returns big; if little occurs nowhere in big, strstr() returns NULL; otherwise strstr() returns a pointer to the
first character of the first occurrence of little.
SEE ALSO index(3), memchr(3), rindex(3), strchr(3), strcspn(3), strpbrk(3), strrchr(3), strsep(3), strspn(3), strtok(3)STANDARDS
The strstr() function conforms to ANSI C X3/159-1989 (``ANSI C'').
4.4 Berkeley Distribution January 15, 1996 STRSTR(3)
I have a big file, which vi opens it with message not sufficient space with file system.
I am not adding any data in the file but changing some values within.
To make these changes effective, it asks for forced write (w!), even after doing this,
I see this particular record, change is not... (4 Replies)
How can i print a big character in Unix text mode? any build in unix command to do that? I see some expert produce this one.
ie. character 'L' which is mkae of letter L.
L L L L L L
Thank a lot. (4 Replies)
I have several big size file arround 900 MB. From the file I need to delete some common strings but without opening the file. here is example- in file
<?xml version='1.0' encoding='ISO-8859-1' standalone='no'?>
... (6 Replies)
My requirement is that I should search for a particular string and display the string only once if there is more occurrence of the same string in a file.
e.g In the given below log file,the string AMQ5037 comes twice.I want to search for this string and display it only once.grep will... (5 Replies)
my application (actually library) indexes a file of many GB producing tables (arrays of offset and length of the data indexed) for later reuse. The tables produced are pretty big too, so big that I ran out of memory in my process (3GB limit), when indexing more than 8GB of file or so.... (9 Replies)
Hi every body,
well, i made quite a big mistake... In a script, I created a directory called "$PWD" ( it was unwanted...). nothing very frightening with that. The problem is that I wanted to remove it and I used the command
rm -f -r $PWD
And here is the big mistake!! Rather than deleting... (5 Replies)
I have 4 big files which contains one big line containing formatted character records, I need to format each file in such way that each File will have 95 Characters per line. Last line of each file will have newline character at end.
File Name:- File1.dat
102 121340560... (10 Replies)
I have stuck with this problem for some days.
I have a very big file, this file can not open by vi command.
There are 200 loops in this file, in each loop will have one line like this:
GWA quasiparticle energy with Z factor (eV)
And I need 98 lines next after this line.
Is... (6 Replies)
I need to know all IP range (ip_prefix), associated with us-west-2 region only from this link - https://ip-ranges.amazonaws.com/ip-ranges.json (it can be opened in wordpad for better visibility)
Please suggest, how would I do it. If vi, awk or sed is needed, I have downloaded it on my... (7 Replies)
Appended a particular string after occurrence of particular string in a file.
my file abc.sql as below
create or replace function f1(p_cust_no IN VARCHAR)
RETURN number IS
select... (4 Replies)