I have a log file with the lines in the below format.
I want to split the line based on the " %SYS-7-CLI_SCHEDULE: " value.
The criteria is the should store the word that starts with % i.e., %SYS-7-CLI_SCHEDULE:
now
$left should contain Jul 1 23:00:51 10.212.3.251 SS:
$matched should contain %SYS-7-CLI_SCHEDULE:
$right should contain some error
Could anyone please help with the perl script with regular expression to get out of this.
i was wondering if anyone can help me, how could i write in perl a a script that would look through a log file and print onscreen the contents of the log file excluding lines that contain '192.168.1.' and entries that contain directory paths that arent in the directory /usr/local/httpd/htdocs/ i... (4 Replies)
I have written down a simple perl program to replace a string from a word file. My script does'nt seem to work. Any pointers to make it work will be appreciated. The code is given below.
#!/usr/bin/perl
while (<>) {
open(FILE,$_);
while (<FILE>) {
s/This/I did it/g;
}... (6 Replies)
I have a file in which there are strings given below:
inode 1138932c(mqsiadm)
inode 1257904c(mqsiadm)
I want to get the nos. only form these.
The o/p should be
1138932
1257904
How to filter this out ?? (11 Replies)
I have following string in a variable:
str="sstring garbage adfsdf tab.col1 lkad rjfj tab2.col2 adja tab2.col4 garbage"
I want to filter "word.word" pattern from it. I assume the pattern won't occur in start or end of the string. Output shoud be:
tab.col1 tab2.col2 tab2.col4
Can this be... (7 Replies)
Hello All,
I am currently having an issue displaying a exponent value using perl,
I have a perl program which generates an xls file. This xls is populated with values from a database. But for a certain column which I have made explicitely text and also implemented keep_leading_zeroes()... (3 Replies)
I have input like this :
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 07-FEB-2012 04:19:45
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/t3local_apps/apps/oracle/product/11.2.0/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve... (3 Replies)
Hi,
I have a long log file. Out of which I want to filter particular occurrences where APC=4-033-0.
Please help how it can be done.
Input :
+++ ELEMENT 12-05-27 23:15:06 CC 3482 #040185 >
REPT APB TPE=C7NTL SM=22 OPC=4-003-7 APC=4-033-4 inaccessible
END OF REPORT #040185 ++-
... (7 Replies)
Using ksh, I am using SQLPlus to execute a query with a filter using a string variable.
REPO_DB=DEV1
FOLDER_NM='U_nmalencia'
FOLDER_CHECK=$(sqlplus -s /nolog <<EOF
CONNECT user/pswd_select@${REPO_DB}
set echo off heading off feedback off
select subj_name
from subject
where... (5 Replies)
My argument has data as below.
10.9.9.85
-rwxr-xr-x user1 2019-10-15 17:40 /app/scripts/testingscr5.scr 127869538
-rwxr-xr-x user1 2019-10-15 17:40 /app/scripts/testingscr56scr 127869538
....... (note all these between lines will start with hyphen '-' )
-rwxr-xr-x user1 2019-10-15 17:40... (3 Replies)
Discussion started by: mohtashims
3 Replies
LEARN ABOUT DEBIAN
dnsubmit
DNDEL(1) General Commands Manual DNDEL(1)NAME
dnsubmit - Submit a batch job on a VMS system
dnprint - Print a file on a VMS system
SYNOPSIS
dnsubmit [options] file-name
dnprint [options] file-name
Options:
[-vh]
DESCRIPTION
dnprint and dnsubmit send files to a VMS machine for printing or batch execution. These command behave similarly to the VMS PRINT/REMOTE
and SUBMIT/REMOTE commands in that you get very little control of the queueing mechanism.
dnprint always prints to the queue SYS$PRINT and dnsubmit always submits to SYS$BATCH. Of course you can always redirect these queues using
logical names.
See the man page for dncopy for a discussion of VMS file specifications.
OPTIONS -T connect timeout
Specifies the maximum amount of time the command will wait to establish a connection with the remote node. a 0 here will cause it to
wait forever. The default is 60 seconds
-h -? Displays help for using the command.
-V Show the version of the tools package that the program comes from.
EXAMPLES
dnsubmit 'myvax::myjob.com'
dnprint 'tramp"christine pjc123"::file.lis'
SEE ALSO dntype(1), dndir(1), dncopy(1), dntask(1), dndel(1)DECnet utilities October 2 1998 DNDEL(1)