Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to grep the word and display only the second word from it Post 302262973 by prsam on Sunday 30th of November 2008 12:16:20 AM
Old 11-30-2008
can anyone please explain the above command????
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grep a word and display its column

Hi, I need idea about this, say I have this line: 05 21 * * 0,6 /user/clean.desktop.sh > /tmp/desktop_rpt 2>&1 I would need to grep the word desktop and display the /user/clean.desktop.sh and not the whole line. And if I have some more lines say, 05 21 * * 0,6 /user/clean.desktop.sh >... (1 Reply)
Discussion started by: Orbix
1 Replies

2. UNIX for Dummies Questions & Answers

how to grep for a word and display only the word

Hi, When we "grep" for a word in a file, it returns the lines containing the word that we searched for. Is there a way to display only the words and not the entire line containing them. Thanks Ananth (6 Replies)
Discussion started by: ananthmm
6 Replies

3. Shell Programming and Scripting

How to Grep for particular word and display..

Hi Guru's.... I've one log file in all my systems which writes the backup information.. I'have written a command like this: ssh -l ora${sid} ${primaryhost} "tail -50 /oracle/$ORACLE_SID/newbackup/END_BACKUP.log" |grep 'insert' |tail -1| awk '{print $7}' We have nearly 50 systems in our... (2 Replies)
Discussion started by: suri.tyson
2 Replies

4. Shell Programming and Scripting

grep display word only

Folks, is it possible to display only words with grep (or any built-in ultility)? I have more than 1 pattern to search, say apple & orange The text goes like this: So I need to display all the words starting with apple or orange The output should be: Any idea? (7 Replies)
Discussion started by: bsddaemon
7 Replies

5. Shell Programming and Scripting

Grep out specific word and only that word

ok, so this is proving to be kind of difficult even though it should not be. say for instance I want to grep out ONLY the word fkafal from the below output, how do I do it? echo ajfjf fjfjf iafjga fkafal foeref afoafahfia | grep -w "fkafal" If i run the above command, i get back all the... (4 Replies)
Discussion started by: SkySmart
4 Replies

6. Shell Programming and Scripting

grep part of word or Another word from a string

Hi all, FileOne family balance >>>>> 0 0 0 0 java.io.FileNotFoundException: Settings.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) .. .... ..... ..... java.lang.NullPointerException ... ..... ...... Stacktrace: at... (2 Replies)
Discussion started by: linuxadmin
2 Replies

7. UNIX for Dummies Questions & Answers

Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word

I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL. I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies

8. Shell Programming and Scripting

Grep word after last occurance of string and display next few lines

Hi, I wanted to grep string "ERROR" and "WORNING" after last occurrence of String "Starting" only and wanted to display two lines after searched ERROR and WORNING string and one line before. I have following cronjob log file "errorlog" file and I have written the code for same in Unix as below... (17 Replies)
Discussion started by: nes
17 Replies

9. Shell Programming and Scripting

Grep for a word or word with underscore

I have a file "test" with following contents: cat test abc abcd_efg abc_abc I want to only grep for abc or abc_ without getting other results, how do I achieve this? If I use grep -w abc test option I get only abc and not abc_. If I use egrep "abc|abc_" test its still printing... (3 Replies)
Discussion started by: ctrld
3 Replies

10. Shell Programming and Scripting

How to grep for a word and display last transection?

Hi, When we "grep" for a word in a file, it returns the last lines containing the word that we searched for. Is there a way to display last line to grep. Thanks Ex log. Ex. logname.log 2015-07-29 06:43:07.023|BETA |2015-07-29... (5 Replies)
Discussion started by: ooilinlove
5 Replies
cdk_marquee(3)						     Library Functions Manual						    cdk_marquee(3)

NAME
cdk_marquee - curses marquee widget SYNOPSIS
cc [ flag ... ] file ... -lcdk [ library ... ] #include <cdk.h> int activateCDKMarquee ( CDKMARQUEE *marquee, char *message, int delay, int repeat, boolean box); void deactivateCDKMarquee ( CDKMARQUEE *marquee); void destroyCDKMarquee ( CDKMARQUEE *marquee); void drawCDKMarquee ( CDKMARQUEE *marquee, boolean box); void eraseCDKMarquee ( CDKMARQUEE *marquee); boolean getCDKMarqueeBox ( CDKMENTRY *mentry); void moveCDKMarquee ( CDKMARQUEE *marquee, int xpos, int ypos, boolean relative, boolean refresh); CDKMARQUEE *newCDKMarquee ( CDKSCREEN *cdkscreen, int xpos, int ypos, int fieldWidth, boolean box, boolean shadow); void positionCDKMarquee ( CDKMARQUEE *marquee); void setCDKMarqueeBackgroundAttrib ( CDKMARQUEE *marquee, chtype attribute); void setCDKMarqueeBackgroundColor ( CDKMARQUEE *marquee, char * color); void setCDKMarqueeBox ( CDKMENTRY *mentry, boolean boxWidget); void setCDKMarqueeBoxAttribute ( CDKMARQUEE *marquee, chtype character); void setCDKMarqueeHorizontalChar ( CDKMARQUEE *marquee, chtype character); void setCDKMarqueeLLChar ( CDKMARQUEE *marquee, chtype character); void setCDKMarqueeLRChar ( CDKMARQUEE *marquee, chtype character); void setCDKMarqueeULChar ( CDKMARQUEE *marquee, chtype character); void setCDKMarqueeURChar ( CDKMARQUEE *marquee, chtype character); void setCDKMarqueeVerticalChar ( CDKMARQUEE *marquee, chtype character); DESCRIPTION
The Cdk marquee widget creates a pop-up marquee window. The following functions create or manipulate the Cdk marquee widget. AVAILABLE FUNCTIONS
activateCDKMarquee activates the marquee widget. The marquee parameter is a pointer to a defined marquee widget. The delay parameter states how long to wait between movements. This value is highly dependent on each machine the program runs on. The repeat value tells the marquee wid- get how many times to display the given message. The box option draws the widget with or without a box. This function returns -1 if the message passed is NULL, 0 otherwise. deactivateCDKMarquee deactivates the marquee widget. destroyCDKMarquee removes the widget from the screen and frees memory the object used. drawCDKMarquee draws the marquee widget on the screen. If the box parameter is true, the widget is drawn with a box. eraseCDKMarquee removes the widget from the screen. This does NOT destroy the widget. getCDKMarqueeBox returns true if the widget will be drawn with a box around it. moveCDKMarquee moves the given widget to the given position. The parameters xpos and ypos are the new position of the widget. The parameter xpos may be an integer or one of the pre-defined values TOP, BOTTOM, and CENTER. The parameter ypos may be an integer or one of the pre- defined values LEFT, RIGHT, and CENTER. The parameter relative states whether the xpos/ypos pair is a relative move or an absolute move. For example, if xpos = 1 and ypos = 2 and relative = TRUE, then the widget would move one row down and two columns right. If the value of relative was FALSE then the widget would move to the position (1,2). Do not use the values TOP, BOTTOM, LEFT, RIGHT, or CENTER when relative = TRUE. (weird things may happen). The final parameter refresh is a boolean value which states whether the wid- get will get refreshed after the move. newCDKMarquee creates a marquee widget and returns a pointer to it. Parameters: screen is the screen you wish this widget to be placed in. xpos controls the placement of the object along the horizontal axis. It may be an integer or one of the pre-defined values LEFT, RIGHT, and CENTER. ypos controls the placement of the object along the vertical axis. It may be an integer or one of the pre-defined values TOP, BOTTOM, and CENTER. width controls the width of the field. If you provide a value of zero for the width, the widget uses the width of the screen. If a negative value is provided, then the widget uses the width of the screen less the value provided. shadow turns the shadow on or off around this widget. If the widget could not be created then a NULL pointer is returned. positionCDKMarquee allows the user to move the widget around the screen via the cursor/keypad keys. See cdk_position (3) for key bindings. setCDKMarqueeBackgroundAttrib sets the background attribute of the widget. The parameter attribute is a curses attribute, e.g., A_BOLD. setCDKMarqueeBackgroundColor sets the background color of the widget. The parameter color is in the format of the Cdk format strings. For more information see cdk_display (3). setCDKMarqueeBox sets whether the widget will be drawn with a box around it. setCDKMarqueeBoxAttribute sets the attribute of the box. setCDKMarqueeHorizontalChar sets the horizontal drawing character for the box to the given character. setCDKMarqueeLLChar sets the lower left hand corner of the widget's box to the given character. setCDKMarqueeLRChar sets the lower right hand corner of the widget's box to the given character. setCDKMarqueeULChar sets the upper left hand corner of the widget's box to the given character. setCDKMarqueeURChar sets the upper right hand corner of the widget's box to the given character. setCDKMarqueeVerticalChar sets the vertical drawing character for the box to the given character. SEE ALSO
cdk(3), cdk_binding(3), cdk_display(3), cdk_position(3), cdk_screen(3) cdk_marquee(3)
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy