11-26-2002
Humm.... I was under the impression that Grep worked the same under any flavour of Unix ...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have one situation. I have some 6-7 no. of files in one directory & I have to extract all the lines which exist in all these files. means I need to extract all common lines from all these files & put them in a separate file.
Please help. I know it could be done with the help of... (11 Replies)
Discussion started by: The Observer
11 Replies
2. Shell Programming and Scripting
Hi,
my xml files looks something like this
<Instance Name="New York">
<Description></Description>
<Instance Name="A">
<Description></Description>
<PropertyValue Key="false" Name="Building A" />
</Instance>
<Instance Name="B">
... (4 Replies)
Discussion started by: tententen
4 Replies
3. Shell Programming and Scripting
Hi all,
I am looking for a quick solution for this:
I have many log files of an iterative program, and I would like to display the parameters of the last three iteration from each of those files. Relevant lines have the keyword: ITER
I am using:
tac ~/modeling*/fitting.log | grep -m 3 -e... (2 Replies)
Discussion started by: pnemeth
2 Replies
4. Shell Programming and Scripting
Hello all,
I have been struggling to get grep work to my requirements. Basically I have to filter out patterns spread across multiple lines over hundreds of .gz files in a folder. And the output needs to be piped to a file.
Here is the example:
folder name: logs
files in this folder:... (4 Replies)
Discussion started by: mandhan
4 Replies
5. Shell Programming and Scripting
I need to grep all lines for "yesterday" in /var/log/messages. Dates are in the format "YYYY-MM-DD". (5 Replies)
Discussion started by: Padmanabhan
5 Replies
6. UNIX for Dummies Questions & Answers
When I try with patern matching in a file with below code works
cat scj_drive_commands | egrep '/app/oracle/build_lib/pkg32|/app/oracle/build_lib/pkg33'
But when I have code with patern searching using of below does not work !
cat scj_drive_commands | egrep... (3 Replies)
Discussion started by: Siva SQL
3 Replies
7. UNIX for Dummies Questions & Answers
I am trying to find files that have lines in them that end in an r. I have been able to locate files by using the following command:
find . -type f -name "*RECORDS"| xargs grep -l r$
However, I now want to find files that don't end in r anywhere. That means that no sentences or lines in... (9 Replies)
Discussion started by: newbie2010
9 Replies
8. Shell Programming and Scripting
Hi
I need to find files in a specified folder where are two specified lines of text and delate that lines. It looks like this"
35. ?>NL
36. <iframe>.......</iframe>NLThe problem is that "?>" is in the other lines and id should not be removed if the next line is not like "<iframe>....."
So... (4 Replies)
Discussion started by: androwida
4 Replies
9. Shell Programming and Scripting
Hi,
I need help to grep a specific part of a log file (bold).
24/2/2017-16:57:17.056 frosti-1 M3UA-Tx: }
24/2/2017-16:57:17.056 frosti-1 M3UA-Tx: extensionContainer <Not Present>
24/2/2017-16:57:17.056... (8 Replies)
Discussion started by: vasil
8 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I am running the following:
PASS="username/password"
sqlplus -s << EOF | grep -v "^$"
$PASS
set feedback off
set heading off
set termout off
select name from v\$database ;
exit
EOF
Which gives
ERROR:
ORA-28002: the password will expire within 5 days
PSMP1 (1 Reply)
Discussion started by: newbie_01
1 Replies
LEARN ABOUT DEBIAN
synce_info_new
SYNCE_INFO_NEW(3) http://www.synce.org/ SYNCE_INFO_NEW(3)
NAME
synce_info_new - allocate a new SynceInfo struct
SYNOPSIS
#include <synce.h>
SynceInfo *synce_info_new(const char *device_name);
void synce_info_destroy(SynceInfo *info);
const char *synce_info_get_name(SynceInfo *info);
bool synce_info_get_os_version(SynceInfo *info, int os_major, int os_minor);
int synce_info_get_build_number(SynceInfo *info);
int synce_info_get_processor_type(SynceInfo *info);
const char *synce_info_get_os_name(SynceInfo *info);
const char *synce_info_get_model(SynceInfo *info);
const char *synce_info_get_device_ip(SynceInfo *info);
const char *synce_info_get_local_ip(SynceInfo *info);
int synce_info_get_partner_id_1(SynceInfo *info);
int synce_info_get_partner_id_2(SynceInfo *info);
const char *synce_info_get_object_path(SynceInfo *info);
pid_t synce_info_get_dccm_pid(SynceInfo *info);
const char *synce_info_get_transport(SynceInfo *info);
const char *synce_info_get_password(SynceInfo *info);
int synce_info_get_key(SynceInfo *info);
DESCRIPTION
The synce_info_new() function returns a pointer to a newly allocated and populated SynceInfo struct for a mobile device.
If device_name is non-NULL, the returned struct relates to a mobile device with that name, or NULL if no device of that name is connected.
If device_name is NULL, the exact behaviour depends on the flavour of dccm daemon in use. When using vdccm(1) or the deprecated dccm(1),
the current active device is selected. This is usually the last device connected, specifically that described in the active_connection file
which is by default in the ~/.synce/ directory. With odccm(1) the first device connected will be returned. With synce-hal this depends on
the device(s) in question, and should be considered undefined.
This struct should be freed with synce_info_destroy(3).
typedef struct _SynceInfo {
pid_t dccm_pid; /* process id of dccm daemon */
char* device_ip; /* device ip address */
char* local_iface_ip; /* local interface ip address */
char* password; /* device password */
int key; /* device pass key */
int os_major; /* device OS major version */
int os_minor; /* device OS minor version */
int build_number; /* OS build number */
int processor_type; /* device processor */
int partner_id_1; /* first sync partner id number */
int partner_id_2; /* second sync partner id number */
char* name; /* device name */
char* os_name; /* device OS name eg. PocketPC */
char* model; /* device hardware name */
char* transport; /* interface type */
char* object_path; /* path to device's information */
} SynceInfo;
These fields must be accessed with the synce_info_get_ functions. The particular fields populated depend on the flavour of dccm daemon in
use.
The use of dccm(1) is deprecated. When using vdccm(1) all fields are populated except for local_iface_ip and os_minor. With odccm(1) and
synce-hal, dccm_pid, password, key, build_number, partner_id_1 and partner_id_2 are not used. odccm(1) also does not populate
local_iface_ip.
RETURN VALUE
The synce_info_new() function returns a pointer to the allocated SynceInfo struct, or NULL if an error occured.
SEE ALSO
synce(7), odccm(1), vdccm(1)
The SynCE Project 2007-08-26 SYNCE_INFO_NEW(3)