[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Which list
From: |
Chris F.A. Johnson |
Subject: |
Which list |
Date: |
Sun, 13 Jun 2004 21:26:30 -0400 (EDT) |
There are some features I'd like to see added to bash:
read -tN: accept fractional values for N, as well as 0
Parameter expansion, upper and lower case conversion:
var=aez
${var^} --> Aez ## convert first alpha character to upper case
${var^^} --> AEZ ## convert all alpha characters to upper case
${var^[a-e]} --> Aez ## convert first alpha character matching the pattern
${var^^[a-e]} --> AEz ## convert all alpha characters matching the pattern
${var_...} ## as above, but convert to lower case
${var#...} ## as above, but convert lower to upper and upper to lower
--
Chris F.A. Johnson http://cfaj.freeshell.org
=================================================================
Everything in moderation -- including moderation
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Which list,
Chris F.A. Johnson <=