anyone good with text?

From: Foptop (youknow_at_idont.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 02:27:19 GMT

i want to edit a line of text, such as a filename, so that all the words
have the first character capitalised and the rest is in lowercase. also i
want to only use bash. the cases of the words can be in any order - all
uppercase, all lowercase, alternate etc. the words in the filename are
separated with underscores, "_". i cannot find a way so far to edit parts
of words like the first character and am wondering what possibilities does
linux offer - i'm sure there are more than 20. i have explored hundreds of
ways to edit text - all seem to just do words, files, lines, paragraphs
etc , but nothing that can really pick out individual characters. 'sed'
can match patterns in words, but i have not found out ways to pick out
letters.



Relevant Pages

  • Re: anyone good with text?
    ... > i want to edit a line of text, such as a filename, so that all the words ... > have the first character capitalised and the rest is in lowercase. ...
    (comp.os.linux)
  • Re: anyone good with text?
    ... > have the first character capitalised and the rest is in lowercase. ... > uppercase, all lowercase, alternate etc. the words in the filename are ... Had a similar hard time with Bash so here's code Stephane wrote that I ...
    (comp.os.linux)
  • Bash text editing problem
    ... convert the first letter of each word in a filename to uppercase. ... it won't change the other characters to lowercase. ... with the first character and the rest of the word separately. ...
    (comp.os.linux)
  • Re: Word 2007 files corrupted by displayed equations
    ... Might I suggest that in the meantime, you create and edit your EQs in a separate empty document and save with an EQ# as the file name so you know which is which. ... the Save As dialog box> opens. ... > file error has occured". ... > If I enter a different filename and click OK, ...
    (microsoft.public.word.application.errors)
  • Re: How force FILENAME field code to update?
    ... unless you also edit the document text. ... Microsoft Word MVP ... I have used the field code FILENAME in the footer of a document. ...
    (microsoft.public.word.newusers)