Skip to content

Rforge

Smart Computing with R ++

  • Home
  • CoxGAM
  • Random rants about

Content

  • Amazon Web Services (3)
  • Backup (9)
  • BASH (11)
  • Database (17)
  • Emacs (6)
  • LaTeX (2)
  • misc (1)
  • Statistics (12)
  • Ubuntu (36)
  • Use R! (25)

Find

Latest posts

  • Remove Color Channels from TIFF Using Command Line
  • Command line method to copy all files out of a folder tree
  • Windows Server 2008 Remote Desktop access from Ubuntu client
  • Slow MySQL 5.5.22 database engine
  • Data Backup in the AWS Cloud with rsync
  • R function to transform continuous variable to categorical factor cut at n-tiles
  • Find BIOS version in Ubuntu
  • BASH: Convert Uppercase to Lowercase letters

capitals

capitalslowercasesed

Replacing capitals with normal letters using SED

Needed to change CAPITAL variable names to normal in a long SQL-syntax file. Sourceforge had a way to do it with SED.

GSED 4.+ supports the \L& and \U& switches to transform everything to lowercase or uppercase respectively:

sed 's/MyRegExp/\L&/g'

changes the regular expression MyRegExp into lowercase.

Comment May 30, 2010 rforge
Create a free website or blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • Rforge
    • Already have a WordPress.com account? Log in now.
    • Rforge
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar