10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I am trying to find a way to change first letter in a word from lower case to upper case. It should be done for each first word in text or in paragraph, and also for each word after punctuation like
. ; : ! ?I found the following command
sed -i 's/\s*./\U&\E/g' $@ filenamebut... (7 Replies)
Discussion started by: georgi58
7 Replies
2. Shell Programming and Scripting
Hello,
I have a list of files in a directory whose names are all in uppercasse, including the file format for eg *.MP3 . I would like to convert these to the normal way we write it ie ABC.MP3 to be converted to Abc.mp3 . I know that this can be done manually by using a lot of "mv" or rename... (6 Replies)
Discussion started by: ajayram
6 Replies
3. Shell Programming and Scripting
I want to make the first character of some words to be uppercase. I have a file like the one below.
uid,givenname,sn,cn,mail,telephonenumber
mattj,matt,johnson,matt johnson,mattj@gmail.com
markv,mark,vennet,matt s vennet,markv@gmail.com
mikea,mike,austi,mike austin,mike@gmail.com
I want... (3 Replies)
Discussion started by: matt12
3 Replies
4. Shell Programming and Scripting
Hi guys,
I have a file separated by ",". I´m trying to change to upper case the first letter of each word in column 2 to establish a standard format on this column.
I hope somebody could help me to complete the SED or AWK script below.
The file looks like this:
(Some lines in column 2... (16 Replies)
Discussion started by: cgkmal
16 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
i have a file and i want to convert all uppercase letters to lowercase letters which are in my file.
how can i do this.
Thanx (3 Replies)
Discussion started by: temhem
3 Replies
6. UNIX Desktop Questions & Answers
I just started to learn unix...
and i needed to make a basic script.
i need to
1. read a file (.txt)
2. count the words of EVERY sentece
3. sentences with odd number of words need to be converted into lowercase
sentences with even number of words need to be converted into uppercase
... (6 Replies)
Discussion started by: chilli1988
6 Replies
7. Shell Programming and Scripting
Hello,
can sed be used to convert all letters of a file from uppercase to lowercase and vice versa?i know tr command can be used but with sed is it possible?
i came up with this :-
sed 'y///' file1
actually the above command is also not working! Please help me. Thanks in advance :) (6 Replies)
Discussion started by: salman4u
6 Replies
8. UNIX for Dummies Questions & Answers
i have no variable and no file
i just want to convert AJIT to ajit
with some command in UNIX
can anybody help (4 Replies)
Discussion started by: ajit.yadav83
4 Replies
9. AIX
Inside a script I have 2 variables COMP=cy and PT=t. further down the same script I require at the same line to call those 2 variables the first time uppercase and after lowercase ${COMP}${PT}ACE,${COMP}${PT}ace. Can somebody help me
Thanks in advance
George Govotsis (7 Replies)
Discussion started by: ggovotsis
7 Replies
10. Shell Programming and Scripting
Greetings & Happy New Years To All!
A client of mine FTP'ed their files up to the server and it all ended up being in UPPERCASE when it all should be in lowercase. Is there a builtin command or a script anyone knows of that will automagically convert all files to lowercase?
Please advise asap... (4 Replies)
Discussion started by: webex
4 Replies