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 DEBIAN
explain_statfs_or_die
explain_statfs_or_die(3) Library Functions Manual explain_statfs_or_die(3)NAME
explain_statfs_or_die - get file system statistics and report errors
SYNOPSIS
#include <libexplain/statfs.h>
void explain_statfs_or_die(const char *pathname, struct statfs *data);
int explain_statfs_on_error(const char *pathname, struct statfs *data);
DESCRIPTION
The explain_statfs_or_die function is used to call the statfs(2) system call. On failure an explanation will be printed to stderr, obtained
from the explain_statfs(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_statfs_on_error function is used to call the statfs(2) system call. On failure an explanation will be printed to stderr,
obtained from the explain_statfs(3) function, but still returns to the caller.
pathname
The pathname, exactly as to be passed to the statfs(2) system call.
data The data, exactly as to be passed to the statfs(2) system call.
RETURN VALUE
The explain_statfs_or_die function only returns on success, see statfs(2) for more information. On failure, prints an explanation and
exits, it does not return.
The explain_statfs_on_error function always returns the value return by the wrapped statfs(2) system call.
EXAMPLE
The explain_statfs_or_die function is intended to be used in a fashion similar to the following example:
explain_statfs_or_die(pathname, data);
SEE ALSO statfs(2)
get file system statistics
explain_statfs(3)
explain statfs(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2009 Peter Miller
explain_statfs_or_die(3)