Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Including Hash / in sed command filter Post 303030647 by bakunin on Wednesday 13th of February 2019 07:03:59 AM
Old 02-13-2019
Quote:
Originally Posted by Xtreme
Thanks for your valuable and detailed input. I have tried both of the above options you mentioned but its not working.
WHAT is not working? Sorry, but i cannot see you monitor and if i should explain to you something i need to know what it is. Post your screen output (surrounded by CODE-tags) so that i can see what you have done and what the result was.

Quote:
Originally Posted by Xtreme
The reason I want to use more is
more is a paginator program, nothing more, nothing less. That means: if you have a long file and you type:

Code:
cat /this/file

it would rush all the lines through you terminal window at a high speed (far too fast to read along) and only the last lines would finally be visible, all the lines before would have scrolled off the screen. Instead using

Code:
more /this/file

will pause after each screen full of text and only continue (for exactly one other screen full) after you press a key. This is what more does. I can't see how that relates to your problem at all.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed or other tool to manipulate data, including email addresses

I have a list of names and email addresses, like this. The <tab> markers are actually tabs. joe.blow <tab> joe.blow@wherever.com tom.t.hall <tab> tom.t.hall@wherever.com john.r.smith <tab> john.r.smith@wherever.com sally.jones <tab> sally.jones@state.or.us I want to parse the data so that... (3 Replies)
Discussion started by: manouche
3 Replies

2. Shell Programming and Scripting

How to use sed to remove html tags including text between them

How to use sed to remove html tags including text between them? Example: User <b> rolvak </b> is stupid. It does not using <b>OOP</b>! and should output: User is stupid. It does not using ! Thank you.. (2 Replies)
Discussion started by: alphagon
2 Replies

3. Shell Programming and Scripting

Insert a line including Variable & Carriage Return / sed command as Variable

I want to instert Category:XXXXX into the 2. line something like this should work, but I have somewhere the wrong sytanx. something with the linebreak goes wrong: sed "2i\\${n}Category:$cat\n" Sample: Titel Blahh Blahh abllk sdhsd sjdhf Blahh Blah Blahh Blahh Should look like... (2 Replies)
Discussion started by: lowmaster
2 Replies

4. Shell Programming and Scripting

How to filter only comments while reading a file including line break characters.

How do I filter only comments and still keep Line breaks at the end of the line!? This is one of the common tasks we all do,, How can we do this in a right way..!? I try to ignore empty lines and commented lines using following approach. test.sh # \040 --> SPACE character octal... (17 Replies)
Discussion started by: kchinnam
17 Replies

5. Shell Programming and Scripting

sed: remove characters between and including 2 strings

I have the following line: 4/23/2010 0:00:38.000: Copying $$3MSYDDC02$I would like to use sed (or similiar) to remove everthing between and including $ that appears in the line so it ends up like this. 4/23/2010 0:00:38.000: Copying 3MSYDDC02I have been trying these but i'm really just... (5 Replies)
Discussion started by: jelloir
5 Replies

6. Shell Programming and Scripting

Filter date and time form a file using sed command

I want to filter out the date and time from this line in a file. How to do this using sed command. on Tue Apr 19 00:48:29 2011 (12 Replies)
Discussion started by: vineet.dhingra
12 Replies

7. Shell Programming and Scripting

Problem with filter data using sed command

Hi, I am using the following command(sed) to get the key/value pair from the string String="{ "test":"test message", "testmessage":"subscription is active, charge successfully} " }" status=$( echo $String | sed -e 's/^.*\("testmessage":*\).*$/\1/') echo $status i am getting this... (2 Replies)
Discussion started by: nanthagopal
2 Replies

8. Shell Programming and Scripting

sed - remove begin of line up to the third and including occurence of character

hello. How to remove all characters in a line from first character ( a $ ) until and including the third occurrence of that character ( $ ). Any help is welcome. (10 Replies)
Discussion started by: jcdole
10 Replies

9. Shell Programming and Scripting

Remove bracket including text inside with sed

Hello, I could not remove brackets with text contents myfile: Please remove the bracket with text I wish to remove: I tried: sed 's/\//' myfile It gives: Please remove the bracket with text A1 I expect: Please remove the bracket with text Many thanks Boris (2 Replies)
Discussion started by: baris35
2 Replies

10. Shell Programming and Scripting

Issue with user input including * (glob) and sed

Hello All, I have created a script that searches for different things and "sanitizes" the findings from files. Currently the user is required to put in a hostname (server.serverfarm.abc) one at a time to replace. I would like the user be able to use *.*.abc in grep and then pipe into sed to... (1 Reply)
Discussion started by: jvezinat
1 Replies
XROOTCONSOLE(1) 					    BSD General Commands Manual 					   XROOTCONSOLE(1)

NAME
xrootconsole -- display a file (or stdin) to a transparent window SYNOPSIS
xrootconsole [options] [file] DESCRIPTION
xrootconsole is a small utility which displays its input in a transparent text box on X's root window. It will read from any file listed on the command line or, by default, from stdin. It is most useful when it reads from a FIFO; this allows you to redirect multiple commands to the FIFO and monitor their output. The options are as follows: -fg color This option specifies the color to use for displaying text. The default is ``black.'' -bg color This option specifies the color to AND with the root window, for shaded transparency. The default is ``clear.'' -bw number This option specifies the width of the border around xrootconsole in pixels. The default is 0. -bd color This option specifies the color to use for the border of the window. The default is ``black.'' -fn font This option specifies the font to use for displaying text. The default is ``fixed.'' -c number This option produces output that is number columns wide. Text is written vertically down each column in the order in which text is received from the input file. The default is 1. --topdown Forces xrootconsole to display new lines from its input at the top of the screen, scrolling previous lines down. Default behav- ior is to insert new lines at the bottom and scroll the previous lines up. --wrap Rather than truncating long lines, this option specifies that xrootconsole should wrap excess text to the following line or lines, as necessary. --ansi-color Enable color support by parsing ANSI escape sequences. -geometry geometry This option specifies the preferred size and position of the window; see X(1). The default is ``80x10+0+0.'' -h, --help Displays a detailed usage message and exits. -v, --version Displays the program version and exits. file Optionally specifies a file from which to read input; by default, xrootconsole reads from the standard input. DIAGNOSTICS
Exit status is 0 on success, and 1 if the command fails for any reason. AUTHORS
Eric Youngblut is the original author of xrootconsole. Bob Galloway <bob@de-fac.to> is the current maintainer. Alexandre Duret-Lutz elimi- nated flicker by storing the background pixmap and drawing off-screen. This manual page was written by Zak Johnson <zakj@i.am>. BSD
May 19, 2000 BSD
All times are GMT -4. The time now is 11:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy