09-28-2008
NP!
And Yes, bash and echo may seem a little limited in their abilities, but if You really want to go wild there's ANSI too!
I guess in a "real" program You would define an area for a function to write in so instead of deleteing the previous entry, one would overwrite it, but still You would have to make a lot of assumptions on screen size, ie rows/cols, and such.
/Lakris
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
When I run a third parties program from the command line (this program basically list's a whole load of stuff) and write the output to a file it splits the output, i.e. in the middle of the file appears the exit command.
If I don't redirect the output and write it to tty then the output is... (3 Replies)
Discussion started by: dbrundrett
3 Replies
2. Shell Programming and Scripting
Hello,
Is is possible to redirect stdout to a file as well as to the console/screen or display in ksh.
any thoughts suggestions/input is appreciated. Thanks. (2 Replies)
Discussion started by: jerardfjay
2 Replies
3. UNIX for Dummies Questions & Answers
What am I doing wrong? I was searching for the answer to assigning variables from output. I found this simple response
ls -l apply_want.m | read perms links owner group size mtime1 mtime2 mtime3 file
this should allow me to echo the variables
echo "$perms | $links | $owner | $group |... (2 Replies)
Discussion started by: whamchaxed
2 Replies
4. Shell Programming and Scripting
Hi, trying to store a comand involving a redirection in a variable and then run this variable. But the redirection gets lost.
Ex:
#!ksh
MYCMD="ls -l > dirlist.txt"
$MYCMD
This runs the command but displays the result in the terminal instead of redirecting it to the text file.
Can... (4 Replies)
Discussion started by: rm-r
4 Replies
5. Shell Programming and Scripting
Hi All,
How do I provide the output of a command to another command which is waiting for an input from the user ?
Ex : I need to login to a device via telnet. In the script, initially I use the "read" command to get the IP Address, Username and Password of the device from the user. Now,... (1 Reply)
Discussion started by: sushant172
1 Replies
6. UNIX for Dummies Questions & Answers
Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway?
Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Discussion started by: killaram
6 Replies
7. Shell Programming and Scripting
Alright so i got this script genpipe:
echo "$*" |sh genscript file
vi file << 'HERE'
:%s/^/echo /g
:%s/ $//g
:%s/ /&\| xargs \.\/plus /g
:wq
HERE
cat file
Which generates output like echo 1 | xargs ./plus 2 | xargs ./plus 3 and so on
Now i got the next script multiplus, who should... (3 Replies)
Discussion started by: Bertieboy7
3 Replies
8. Red Hat
I ran the following command.
cat abc.c > abc.c
I got message the following message from command cat:
cat: abc.c : input file is same as the output file
How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies
9. UNIX for Dummies Questions & Answers
Hello All,
I have the below script and output.
cat test.sh
#!/bin/bash -x
logit()
{
echo " - ${*}" > ${LOG_FILE}
}
LOG_FILE=/home/infrmtca/bin/findtest.log
VAR=`find . -type f -name "*sql"`
logit $VAR
Output:
cat /home/infrmtca/bin/findtest.log
-... (9 Replies)
Discussion started by: Ariean
9 Replies
10. Shell Programming and Scripting
Bit of a strange one.
Have a script called rapidclone_test.sh which calls Oracle rapidclone using su -c as an oracle osuser. However, if I control+c out to the calling shell anything entered is not displayed on the terminal. Any command executes successfully though.
Why is the standard... (1 Reply)
Discussion started by: u20sr
1 Replies
LEARN ABOUT DEBIAN
nyancat
NYANCAT(1) General Commands Manual NYANCAT(1)
NAME
nyancat - terminal-based Pop Tart Cat animation
SYNOPSIS
nyancat [ -hitn ] [-f frames]
DESCRIPTION
nyancat is an animated, color, ANSI-text program that renders a loop of the classic Nyan Cat animation.
nyancat makes use of various ANSI escape sequences to render color, or in the case of a VT220, simply dumps text to the screen.
OPTIONS
-i, --intro
Show introduction / about information on startup.
-t, --telnet
Enable telnet mode.
-n, --no-counter
Do not display the timer.
-s, --no-title
Do not set the titlebar text.
-e, --no-clear
Do not clear the display between frames.
-f, --frames
Display the requested number of frames, then quit.
-r, --min-rows
Crop the animation from the top.
-R, --max-rows
Crop the animation from the bottom.
-c, --min-cols
Crop the animation from the left.
-C, --max-cols
Crop the animation from the right.
-W, --width
Crop the animation to the given width.
-H, --height
Crop the animation to the given height.
-h, --help
Show help message and exit.
HOMEPAGE
Homepage: http://miku.acm.uiuc.edu/
Repository: https://github.com/klange/nyancat
AUTHOR
nyancat was written by Kevin Lange.
This manual page was written by Jonathan McCrohan <jmccrohan@gmail.com>, for the Debian project (and may be used by others).
May, 2012 NYANCAT(1)