I have a file containing following records:
Say suppose the name of the file is test4.txt
When i fire this command on linux
The value in "ret" is blank could you all please help me in troubleshooting this where as i want that "ret" variable should contain output like this
Hi all,
I am trying to perform a simple task with grep, this is what I execute:
grep -i -n 'error|fail|warning' cl_less.out
when I execute it it does not give any errors, as in the command worked and back to the command prompt, but if I run each grep independently the I do get a real fail:
... (8 Replies)
Hello,
I run this command from a solaris box and it works just fine. It gives me the kind of output in my file I am looking for which would be for example...
sb1p
rdop
ot2p
ot3p
eimp
However when I do the same thing from a Linux box...
ps -ef | grep nco_p_syslog | grep -v grep |... (19 Replies)
I am trying to use grep -w something as shown below.
grep -w "$a" $LOG1
It is not giving me neither any error nor any data. I am facing the issue while i run this command inside a script. But i am getting the data if i run the above command outiside the script.
here $a=08/11/2009 21
i... (13 Replies)
Hi,
As you know we can capture paragraph information using -ip command with grep option in AIX and other OS. Is there anything similar to this command in linux to capture paragraph infroamtion?
coammnd:
cat a.out | grep -ip "Word1"
Thanks
---------- Post updated at 07:38 PM... (4 Replies)
Hi All
I am trying to run a script in linux wherein i have a command like this
grep ^prmAttunityUser= djpHewr2XFMAttunitySetup_ae1_tmp
djpHewr2XFMAttunitySetup_ae1_tmp is a temporary file in which the user value is stored but this command in the script returns me balnk value whereas it has a... (4 Replies)
Hi,
I have a file f1 wi the following data
f1.txt
========
Report ID
Report Name
-----------------------------------------------------------------
Post Requests : 2 Post successes : 2
=============================================
I need to search for the... (2 Replies)
Hi All,
we have an issue in bind mounting LINUX.
we are able to see the bound mounts in mount command and
df -h <file system name> but they are not visible in normal df -h command.
all these mounts are local mounts.
we have a /xyz is mount and abc is a directory in /xyz ( /xyz/abc )
... (1 Reply)
Is there an environment issue that would not allow the following not store and pass the value into this field:
underScorePresent=`echo $USER | grep "_" | wc -l`
It is running on a new redhat 6.5 OS. The value $USER is set to cpac. It is a vendor code and they are saying it is environment... (1 Reply)
Hi Team,
I am facing issue while using Xalan & Xerces for my application.
Below are my environment details i am using :-
Platform:- Oracle Linux 6.6
Compiler :- solarisstudio12.3 C++ compiler for Linux
Below are the versions of Xalan & Xerces source code used to build the shared object... (0 Replies)
I have a file xyz with the following content
PPPL 0123
PPPL 0006
POFT 0923
POFT 1111
WENT 2323
SEND 2345
I also have another file named MasterFile where it contains the above mentioned data million times with different digits at the end for example some times it contains SEND 9999 or WENT... (4 Replies)