Capitalize who Output


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Capitalize who Output
# 1  
Old 10-24-2008
Capitalize who Output

i thought it could be done with who | tr "[:upper:]"'[:lower:]"

but im not really translating anything.

I've googled sed and grep and have looked in the man pages, as well as awk but cant really find a specifc regular expression to do what i need.
# 2  
Old 10-24-2008
Code:
who | tr '[a-z]' '[A-Z]'

# 3  
Old 10-24-2008
Hammer & Screwdriver check your syntax and order

Code:
> who | tr "[:lower:]" "[:upper:]"

should work, lower to upper
# 4  
Old 10-24-2008
Capitalize or translate every character?

Code:
who|perl -lane'print join" ",map ucfirst,@F'

 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Replacing word and Capitalize words after

I have an assignment and I am not sure what to do. In Unix, I use PuTTY change the semicolon (;) to a period, and capitalize the first letter of the word immediately after it. I know change command is M-% and "." so only one semicolon is changed but I am not sure how to... (1 Reply)
Discussion started by: kathrut43
1 Replies

2. Red Hat

Command understanding the output file destination in case of standard output!!!!!

I ran the following command. cat abc.c > abc.c I got message the following message from command cat: cat: abc.c : input file is same as the output file How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies

3. Shell Programming and Scripting

Displaying log file pattern output in tabular form output

Hi All, I have result log file which looks like this (below): from the content need to consolidate the result and put it in tabular form 1). Intercomponents Checking Passed: All Server are passed. ====================================================================== 2). OS version Checking... (9 Replies)
Discussion started by: Optimus81
9 Replies

4. Shell Programming and Scripting

script to mail monitoring output if required or redirect output to log file

Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions. ... (4 Replies)
Discussion started by: aix_admin_007
4 Replies

5. Shell Programming and Scripting

Awk script to run a sql and print the output to an output file

Hi All, I have around 900 Select Sql's which I would like to run in an awk script and print the output of those sql's in an txt file. Can you anyone pls let me know how do I do it and execute the awk script? Thanks. (4 Replies)
Discussion started by: adept
4 Replies

6. UNIX for Dummies Questions & Answers

HELP, Need to capitalize all files in dir without capitalizing extensions

Hello everyone, I may sound stupid for asking this but I have files that need to be loaded onto every system at work. When loaded the files are for example.... 5peasw.sim the end result needs to be 5PEASW.sim this is for over 50 files in the directory they go to. I am trying to... (5 Replies)
Discussion started by: E404UserNotFoun
5 Replies

7. Shell Programming and Scripting

Redirect capitalize

How do i send the output from the date command to a variable called today easy: today=$(date) but how can the output be capitalized on a single command ? (2 Replies)
Discussion started by: JuankyKong
2 Replies

8. Shell Programming and Scripting

Trying to capitalize first letter of every word in Variable

Total Bash noob, have been successful in doing my script by searching and looking at examples, but I need some assitance with this one, just can't figure it out. In the Bash script I am trying to capitalize the first letter of every word in a string, ideally not changing other capitalization. ... (5 Replies)
Discussion started by: randyharris
5 Replies

9. Shell Programming and Scripting

Shell/Perl script to convert to Capitalize case

I need a shell script which will convert the given string within a <title> tag to Capitalize case. E.g "<title>hi man: check this out</title>" to "<title>Hi Man: Check This Out</title>" (11 Replies)
Discussion started by: parshant_bvcoe
11 Replies

10. Shell Programming and Scripting

how to make a line BLINKING in output and also how to increase font size in output

how to make a line BLINKING in output and also how to increase font size in output suppose in run a.sh script inside echo "hello world " i want that this should blink in the output and also the font size of hello world should be big .. could you please help me out in this (3 Replies)
Discussion started by: mail2sant
3 Replies
Login or Register to Ask a Question