On Sat, Nov 13, 2010 at 01:33, Mehul Ved <[email protected]> wrote: > On Fri, Nov 12, 2010 at 12:32 PM, Tha.Suresh <[email protected]> wrote: >> Print a row of 25 hyphens >> >> $ <alt+25>- >> >> In bash, by pressing ALT+n and then a character x, x will be printed n times > > Isn't there a way to type say 10, 1's? > If I press alt+1+0+1 it will take it as alt+101 >
For Emacs: http://www.cs.cmu.edu/cgi-bin/info2www?(emacs)Arguments You can use a numeric argument to insert multiple copies of a character. This is straightforward unless the character is a digit. To prevent the digit from becoming part of the argument, type another `C-u'. That terminates the argument. If you then type another digit, then the digit acts as a self-inserting character and uses the argument as a repeat count. For Bash, there doesn't seem to be a way to do this. http://www.gnu.org/software/bash/manual/html_node/Numeric-Arguments.html#Numeric-Arguments -- http://about.me/rosh _______________________________________________ ILUGC Mailing List: http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
