ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi friends,
I need to write an shell script that has to print characters at certain locations on the screen. say print ("Hi",2,10)
should print "Hi" in row 2 and column 10 in my shell.
Any shell curses libraries available? or can I do it somehow without including any external library?
When not to use shell scripts
resource−intensive tasks, especially where speed is a factor (sorting, hashing, etc.)
procedures involving heavy−duty math operations, especially floating point arithmetic, arbitrary
precision calculations, or complex numbers (use C++ or FORTRAN instead)
cross−platform portability required (use C instead)
complex applications, where structured programming is a necessity (need typechecking of variables,
function prototypes, etc.)
mission−critical applications upon which you are betting the ranch, or the future of the company ·
situations where security is important, where you need to guarantee the integrity of your system and
protect against intrusion, cracking, and vandalism
project consists of subcomponents with interlocking dependencies
extensive file operations required (Bash is limited to serial file access, and that only in a particularly
clumsy and inefficient line−by−line fashion)
need multi−dimensional arrays
need data structures, such as linked lists or trees need to generate or manipulate graphics or GUIs
need direct access to system hardware
need port or socket I/O
need to use libraries or interface with legacy code
proprietary, closed−source applications (shell scripts are necessarily Open Source)
I can't say an absolute NO, but i've never seen something like that.
you can use "clear" to clear the screen and use tabs (\t) and new lines (\n) and programs like "banner" to give a nice output. You may also combine your scripts with high-level programming languages programs, but if a nice interface is your priority you probably shouldn't use bash.
...Just my opinion
Last edited by perfect_circle; 12-02-2004 at 08:14 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.