Networking | Hardware | Software | Multimedia | System | Unix&Linux | MBA

Home>>Unix&Linux>>Change scroll speed of 'cat' command?

Change scroll speed of 'cat' command?

minton
04-21-2005, 01:04 PM
I have an 'xargs find' type command which searches through subdirectories of *.txt files and pipes its output to the 'cat' command. It's rougly about 150 pages full of text, and I'd like to change the scroll speed of how it shows on the screen from too-fast-to-see to something that pauses 1 second per line of text.
(And if there's a way to word-wrap the output, that would be good to know as well.)

voldenuit
04-21-2005, 01:45 PM
I'd pipe the output of the find command to a text file (ls > /private/tmp/dirlist.txt), then use less instead of cat to look at it.
You can also open the text file with an editor of your chosing to do all the word-wrapping you need.

minton
04-21-2005, 02:24 PM
I want something that scrolls unattended/ without user interaction. I would like to either setup a monitor like a dumb terminal to show this ticker-type scrolling text, although I suppose using geektool and having the text scroll on the desktop would also be an option.

dmacks
04-21-2005, 04:56 PM
I have an 'xargs find' type command which searches through subdirectories of *.txt files and pipes its output to the 'cat' command.
That sounds strange...'cat' in a pipeline is a no-op.

It's rougly about 150 pages full of text, and I'd like to change the scroll speed of how it shows on the screen from too-fast-to-see to something that pauses 1 second per line of text.
Pipe your output through perl -p -e 'sleep 1'

(And if there's a way to word-wrap the output, that would be good to know as well.)
Pipe your output through fold -s

minton
04-21-2005, 09:17 PM
That sounds strange...'cat' in a pipeline is a no-op.
Sorry, I meant to say xargs to cat - the command is 'find ~/Texts -type f -name "*.txt" | xargs cat'. I've added the pipes you suggested and it works great. Thanks for your help.


 

TOP

Windows Server Outsell
Unix Signals And C++ E

For more info

Unix Signals And C++ E
Windows Server Outsell
ssh setup for password
Bash script does not w
esc code 
ARD send unix command 
question about binarie
Scanning mail 
Issuing multiple comma
How do I install Linux

News Archive

/etc/hosts? 
Manually Start a Start
mounting missed hard d
Using Netinfo in Singl
darwin/bsd login probl
system_profiler and fi
Send mail from script 
mounting a drive 
OS X disk first aid ha
system.log shows steal

Related stories:

Application packages
Stupid Unix questions. Remove contents of directory.
Puzzlement: -bash: /sw/bin/init.sh: No such file or directory
Check that a process hasn't crashed/quit
JAVA help, please!
fat32+disk image
CUPS n00bie question

Copyright@2004-2005 www.zzcoke.com All Right Reserved

advanced web statistics