Hi Guys,
I had file as
typedef struct {
char TrailerType1;
char TrailerTxt1;
}Trailer;
typedef struct {
char PfigMoneyType;
char PfigMoneyvalue;
}PfigMoney;
i need to print the lines within the search pattern. if i give the search pattern as... (3 Replies)
Hi,
I want to echo the 15th line from a file named as abc.txt, also i want to echo only the values in that line not the line number.
Thanks in advance:) (4 Replies)
Hi All,
I have almost 1000+ files and I want to search specific pattern. Looking forwarded your input.
Search for: word1.word2 (Which procedure contain this word, I need procedure name in output.
Expected output:
procedure test1
procedure test2
procedure test3
procedure test4
... (7 Replies)
I have two files abc.dat and sant.dat (Big file 60k rows)
for every line's 1,4 of abc.dat need to seach if this is present on 28,4 of sant.dat every line.
if its present the output needs to go to bde.dat
Example:
contents abc.dat
aaaa
bbbb
cccc
dddd
contents sant.dat
this is... (4 Replies)
Hi,
I need to extract <APPNUMBER> tag alone, if the <college> haas IIT Chennai value. college tag value will have spaces embedded. Those spaces should not be suppresses.
My Source file
<Record><sno>1</sno><empid>E0001</empid><name>Rejsh suderam</name><college>IIT ... (3 Replies)
one.txt
ONS.820.log:V 20Oct2010:GP ^ ^
ONS.123.log:V 21Oct2010:GP ^ ^
ONS.820.log:V 30Oct2010:GP ^ ^
want to make new file from existing one with addition.
20Oct2010 User KV001 has name tk003 with buffer- 338-1
21Oct2010 User KV003 has name tk002 with buffer- 338-2
30Oct2010 User KV002... (5 Replies)
I'm still beginner and maybe someone can help me.
I have this input:
the great warrior a, b, c
and what i want to know is, with awk, how can i detect the string with 'warrior' string on it and print the a, b, and c seperately, become like this :
Warrior Type
a
b
c
Im still very... (3 Replies)
Input file:
pattern1 100 250 US
pattern2 50 3050 UK
pattern3 100 250 US
pattern1 70 1050 UK
pattern1 170 450 Mal
pattern2 40 750 UK
.
.
Desired Output file:
pattern1 100 250 US
pattern2 50 3050 UK
pattern1 170 450 Mal
pattern2... (3 Replies)
Discussion started by: cpp_beginner
3 Replies
LEARN ABOUT BSD
getmntinfo
GETMNTINFO(3) Library Functions Manual GETMNTINFO(3)NAME
getmntinfo - get information about mounted file systems
SYNOPSIS
#include <sys/param.h>
#include <sys/mount.h>
int
getmntinfo(mntbufp,flags)
struct statfs **mntbufp;
int flags
DESCRIPTION
The getmntinfo() function returns an array of statfs structures describing each currently mounted file system (see statfs(2).
The getmntinfo() function passes its flags parameter transparently to getfsstat(2).
RETURN VALUES
On successful completion, getmntinfo() returns a count of the number of elements in the array. The pointer to the array is stored into
mntbufp.
If an error occurs, zero is returned and the external variable errno is set to indicate the error. Although the pointer mntbufp will be
unmodified, any information previously returned by getmntinfo() will be lost.
ERRORS
The getmntinfo() function may fail and set errno for any of the errors specified for the library routines getfsstat(2) or malloc(3).
SEE ALSO getfsstat(2), statfs(2), mount(2), mount(8)HISTORY
The getmntinfo() function first appeared in 4.4BSD.
BUGS
The getmntinfo() function writes the array of structures to an internal static object and returns a pointer to that object. Subsequent
calls to getmntinfo() will modify the same object.
The memory allocated by getmntinfo() cannot be free(2)'d by the application.
4.4 Berkeley Distribution December 26, 1995 GETMNTINFO(3)