Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I have never been to any technical site that shows concern just to anybody with problems...I look forward to also share in the future..."

Geography

Where in the world do Tek-Tips members come from?

set text to lowercase...

flavioweb (TechnicalUser)
3 Aug 12 0:56
...but in one line after a ; and if ; is not first line char. for example:
LDA COLORS ; DO A COLOR
how to set "DO A COLOR" to lowercase?
feherke (Programmer)
3 Aug 12 2:16
Hi

CODE

awk -F ';' -vOFS=';' '$2{$2=tolower($2)}1' /input/file 

Feherke.
http://feherke.github.com/

flavioweb (TechnicalUser)
3 Aug 12 4:00
thanks.
i can test it later...
just one thing, because i want to be sure, if there is a text after ; as first line char, this text is converted to lowercase?
because i need to avoid this.
just convert if ; isn't first line char.
thanks again :)
feherke (Programmer)
3 Aug 12 4:03
Hi

Post sample input and desired output.

Feherke.
http://feherke.github.com/

PHV (MIS)
3 Aug 12 4:52
I'd try this:

CODE

awk -F ';' -vOFS=';' '$2 && substr($0,1,1)!=";"{$2=tolower($2)}1' /input/file 

Hope This Helps, PH.
FAQ219-2884: How Do I Get Great Answers To my Tek-Tips Questions?
FAQ181-2886: How can I maximize my chances of getting an answer?

flavioweb (TechnicalUser)
3 Aug 12 7:02

CODE

awk -F ';' -vOFS=';' '$2 && substr($0,1,1)!=";"{$2=tolower($2)}1' /input/file 
This one worked as well.

Thanks a lot !

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close