Sponsored Content
Full Discussion: Advanced printf
Top Forums Shell Programming and Scripting Advanced printf Post 302374442 by jim mcnamara on Tuesday 24th of November 2009 12:30:14 PM
Old 11-24-2009
I do not know that ANSI ct100 escape sequences could/would change underline color. Underline color is part of the font color. So I think you cannot do that for vt 100 terminal emulation.

For xterm things can be different -
Xterm Control Sequences
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Advanced For loop

Is it possible to code a FOR loop within Bourne/Korn shell of the form: for i in somelist AND j in anotherlist do echo $i $j done Basically I have two "lists", say: listA= "1 2 3 4 5" listB= "a b c d e" I want to step through these lists simultaneously and with one echo... (9 Replies)
Discussion started by: petrk1
9 Replies

2. Shell Programming and Scripting

Advanced Getopts

Hi all, I am using getops to get the arguments passed by the command line. However, I need to specify some rules regarding the parameter sent. For eg: I have script called MyScript which accept parameter d, I, E, r, u so the usage should be like this: MyScript So far, I finished... (2 Replies)
Discussion started by: stefan_hery
2 Replies

3. UNIX for Dummies Questions & Answers

Advanced LS?

My goal is simply to output a listing of all files in a directory and all subdirectories, one per line, ****with their full path****. The *** part is what I can't figure out. I can get one on a line and I like having the extra info, so I'm using ls -Rl right now. But what I get is just the... (2 Replies)
Discussion started by: bostonrobot
2 Replies

4. Shell Programming and Scripting

Advanced replace

Hello, How can I replace the following with null from a file ";var "d=e";"^x" replace "";var "d=e";"^x"" "" -- filename ; doesnot work nor if I use \ in between. Please advise. Thanks (10 Replies)
Discussion started by: fed.linuxgossip
10 Replies

5. UNIX for Advanced & Expert Users

Advanced I/O

What is Stream Devices and Stream pipes? Explain Advanced I/O ? (1 Reply)
Discussion started by: thangappan
1 Replies

6. Shell Programming and Scripting

advanced echo/printf

I want to print a colored line using bash. I want to print: Smtp status where "Smtp status" will be in yellow and will be in green. Thanks. (2 Replies)
Discussion started by: proactiveaditya
2 Replies

7. Shell Programming and Scripting

advanced awk

Hi all Input group1 user1 user2 user3 group2 user4 user5 user1 group3 user6 user7 user8 Desired output group1 group2 (12 Replies)
Discussion started by: wakatana
12 Replies

8. Programming

Books for advanced C

Simple question , what good book is next step in learning C. I finished with K&R and I want to go to the next step , so if someone has a good book please share title :D I looked for Advanced C programming by example but it is too expansive 400$ on Amazon :( So please tell me (7 Replies)
Discussion started by: solaris_user
7 Replies

9. UNIX for Advanced & Expert Users

Help with advanced wget

Hi All, I am trying to download large no of data using wget. the URLS are saved in a file. I want to want for a few seconds after every URL is downloaded so i saw the option -w with wget but it does not seem to work. Can any one give me a working usage. wget -i ../file1t -o ../Outlog.log -N -S... (2 Replies)
Discussion started by: johnasvini
2 Replies

10. Shell Programming and Scripting

EXPECT - advanced help

Hi, i need to automate installation (console) of product and found except as solution.iam new to expect and know basics of expect. i am struck with the following cases and need help for them to continue: 1) in every screen of installation at the end we have kind of buttons which we need to... (7 Replies)
Discussion started by: sai Harika
7 Replies
Tie::CPHash(3pm)					User Contributed Perl Documentation					  Tie::CPHash(3pm)

NAME
Tie::CPHash - Case preserving but case insensitive hash table VERSION
This document describes version 1.05 of Tie::CPHash, released January 20, 2012. SYNOPSIS
require Tie::CPHash; tie %cphash, 'Tie::CPHash'; $cphash{'Hello World'} = 'Hi there!'; printf("The key `%s' was used to store `%s'. ", tied(%cphash)->key('HELLO WORLD'), $cphash{'HELLO world'}); DESCRIPTION
The Tie::CPHash module provides a hash table that is case preserving but case insensitive. This means that $cphash{KEY} $cphash{key} $cphash{Key} $cphash{keY} all refer to the same entry. Also, the hash remembers which form of the key was last used to store the entry. The "keys" and "each" functions will return the key that was used to set the value. An example should make this clear: tie %h, 'Tie::CPHash'; $h{Hello} = 'World'; print $h{HELLO}; # Prints 'World' print keys(%h); # Prints 'Hello' $h{HELLO} = 'WORLD'; print $h{hello}; # Prints 'WORLD' print keys(%h); # Prints 'HELLO' The additional "key" method lets you fetch the case of a specific key: # When run after the previous example, this prints 'HELLO': print tied(%h)->key('Hello'); (The "tied" function returns the object that %h is tied to.) If you need a case insensitive hash, but don't need to preserve case, just use $hash{lc $key} instead of $hash{$key}. This has a lot less overhead than Tie::CPHash. CONFIGURATION AND ENVIRONMENT
Tie::CPHash requires no configuration files or environment variables. INCOMPATIBILITIES
None reported. BUGS AND LIMITATIONS
No bugs have been reported. AUTHOR
Christopher J. Madsen "<perl AT cjmweb.net>" Please report any bugs or feature requests to "<bug-Tie-CPHash AT rt.cpan.org>" or through the web interface at http://rt.cpan.org/Public/Bug/Report.html?Queue=Tie-CPHash <http://rt.cpan.org/Public/Bug/Report.html?Queue=Tie-CPHash>. You can follow or contribute to Tie-CPHash's development at http://github.com/madsen/tie-cphash <http://github.com/madsen/tie-cphash>. COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Christopher J. Madsen. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. perl v5.14.2 2012-01-20 Tie::CPHash(3pm)
All times are GMT -4. The time now is 05:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy