@spacebar Thanks for our reply. but i dont want all to be listed out. i want to catch a two word keyword(here it is "(" and "select" words) which may be seperated by a new line(may be searated by spaces or tab) . so "select only no (((" should not be there in the output.
@bipinajith
in the second filter, you are assuming that it ends with "select" which is not the case always. The only goal is to catch a two word keyword(here it is "(" and "select" words) which may be seperated by a new line(may be searated by spaces or tab). for example b.txt .
output should be :
Last edited by Scrutinizer; 10-27-2012 at 07:52 AM..
Reason: code tags
I am able to include a pdf file as an attachment in an email using the following:
echo "" > reports
elm -s "RW100 PDF Reports" me@myemail.com < reports
However, if I have a filename that contains some spaces, I'm not so lucky. I've tried:
echo "" > reports
but no luck. I keep getting... (1 Reply)
How do I replace only if the keyword is at the begining of a line?
Code:
--
a = “This is a print statement”
print a
--
What if I want to replace print by #print only in the second line i.e only if the line starts with that keyword.
Please help me out. I'm new to SED.
-----Post... (5 Replies)
Hi All
I am having problem in substitution of any number of spaces, or a combination of space and tab in between strings in the lines of text file. Is there any way out in Perl? Please help me.
e.g.,
Say the input is in the following format:-
XX yyy zzz... (1 Reply)
Hello All,
I am trying to remove all tabspaces and all blankspaces from my file using sed & awk, but not getting proper code. Please help me out.
My file is like this (<b> means one blank space, <t> means one tab space)-
$ cat file
NARESH<b><b><b>KUMAR<t><t>PRADHAN... (3 Replies)
Hi
I tried to extract 19 characters (default) enclosed with in tag from a file using cut command. If the characters comprises of double space, the cut command gives the output with a single spacing.
file 1
<name>Kumar Rajasekaran</name>
cut -c7-26 "file1"
the out put i received is ... (48 Replies)
Hi friends,
i just want to know the command though which i can get the next word which comes just after a particluar keyword. For example:
suppose text.out is file which contains a pl/sql procedure . i want to find out the word which falls just after the "table1" keyword.
Thank... (7 Replies)
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
I have a file which contains the data lines like below.I want to remove the tab spaces at the end of each line.I have tried with the command sed 's/\+$//' file.but it does not work.Can anyone help me on this?
15022 15022 15022 15022 15022 15022
15023 15023 15023 15023 15023 ... (16 Replies)
Hi Everyone,
Need help in extracting the hostname from the below output.
Expected output:
DS-TESTB-GDS-1.TEST.ABC.COM
DS-TESTB-GDS-2.TEST.ABC.COM
....
...
/tmp $ cat -n /tmp/patchreport
1 /usr/bin/perl /admin/bin/patch/applyPatches.pl --apply_patches... (4 Replies)
Discussion started by: thiyagoo
4 Replies
LEARN ABOUT CENTOS
jstest
jstest(1) General Commands Manual jstest(1)NAME
jstest - joystick test program
SYNOPSIS
jstest [--normal] [--old] [--event] [--nonblock] [--select] <device-name>
DESCRIPTION
jstest can be used to test all the features of the Linux joystick API, including non-blocking and select(2) access, as well as version 0.x
compatibility mode.
It is also intended to serve as an example implementation for those who wish to learn how to write their own joystick using applications.
OPTIONS --normal
One-line mode showing immediate status.
--old Same as --normal, using 0.x interface.
--event
Prints events as they come in.
--nonblock
Same as --event, in nonblocking mode.
--select
Same as --event, using select(2) call.
SEE ALSO fftest(1), jscal(1).
AUTHOR
jstest was written by Vojtech Pavlik.
This manual page was written by Stephen Kitt <steve@sk2.org>, for the Debian GNU/Linux system (but may be used by others).
jstest April 21, 2009 jstest(1)