Sponsored Content
Full Discussion: matching a letter in a word
Top Forums Shell Programming and Scripting matching a letter in a word Post 302202739 by shamrock on Thursday 5th of June 2008 01:45:28 PM
Old 06-05-2008
Another...

Code:
STRGZ="hello world!!!"
LTR="w"
echo $STRGZ |  awk -vc="$LTR" '{if(gsub(c,"")) print "Found";else print "Not Found"}'

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to filter the words, if that word contains the expected letter

Hi, I am trying to filter the words from a file which contain 'abc'. But I am unable to. Could any one help me. For eg: The file contents are 123ab 12hnj1 123abc456 123cgbcahjkf23 23134abchfhj43 gc32abc abc1 2abc3 sd uiguif fhwe 21242 uh123 jkcas124d123 u3hdbh23u ffsd8 Output... (3 Replies)
Discussion started by: venu_eie
3 Replies

2. Shell Programming and Scripting

First letter of each Word from a line

Hello All, I am new to UNIX, how do i get the First letter of each Word from a line in shell scripting. For Example line = "The Jack In The Box" I want to reterive The letters T for The, J from Jack, I from In, T from The and B from Box. and store in another string. Can anyone... (5 Replies)
Discussion started by: maxmave
5 Replies

3. Shell Programming and Scripting

Shell - Matching 3 letter file names

Hi I am running a shell script with bdf command and want to match all files with length 3 inside a specific partitions. How do i do that say for example if i want to list all files with length 3 in /home/jimmy partition, bdf /home/jimmy the output i need is xyx abc yyy amp ... (4 Replies)
Discussion started by: PrasannaKS
4 Replies

4. Shell Programming and Scripting

Taking letter from a word

Hi All, I am new to UNIX and i am trying to write a script.My requirement is that from the following logs i need to get the following outputs: abc_lifecycle.log bcde_enjoy.log abc_twinkle.log Output expecting: lifecycle enjoy twinkle Could you please help me in getting this? (9 Replies)
Discussion started by: JeiPrakash
9 Replies

5. UNIX for Dummies Questions & Answers

grep only word matching the pattern

Hi gurus, A file contains many words in format "ABC.XXXX.XXXX.X.GET.LOG" (X->varying). Now my shell script want this list (only words in formatABC.XXXX.XXXX.X.GET.LOG ) to continue the process. Pls help me. Thanks, Poova. (8 Replies)
Discussion started by: poova
8 Replies

6. 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

7. Shell Programming and Scripting

Convert to upper case first letter of each word in column 2

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

8. Shell Programming and Scripting

SED (or other) upper to lowercase, with first letter of first word in each sentence uppercase

The title pretty much defines the problem. I have text files that are all in caps. I would like to convert them to lowercase, but have the first letter of the first word in each sentence in uppercase. I already have SED on the server for fixing / tweaking text files, but I'm open to other... (5 Replies)
Discussion started by: dockline
5 Replies

9. Shell Programming and Scripting

Change first letter of a word from lower case to upper case

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

10. Shell Programming and Scripting

Replace specific letter in a file by other letter

Good afternoon all, I want to ask how to change some letter in my file with other letter in spesific line eg. data.txt 1 1 1 0 0 0 0 for example i want to change the 4th line with character 1. How could I do it by SED or AWK. I have tried to run this code but actually did not... (3 Replies)
Discussion started by: weslyarfan
3 Replies
yodlletter(7)						    Your Own Document Language						     yodlletter(7)

NAME
yodlletter - Yodl's `letter' document type SYNOPSIS
letter(language)(date)(subject)(opening)(salutation)(author) The letter document type was implemented to write LaTeX letters. DESCRIPTION
The letter document type was specifically implemented to write LaTeX letters, using LaTeX's brief.cls document class. It is available only for the LaTeX (yodl2latex(1)) converter. This manual page briefly describes Yodl's letter document type. This document type is specific enough that it warrants a separate man- page. letter documents do not allow you to use the `standard' sectioning commands (e.g., sect() and subsect()). You can, however, use macros that are normally used within such sections, such as description(), itemization(), bf() or em(). Several specific macros, to be used in the preamble, are available for the letter document type. They are: o AfourEnlarged(): Enlarges the usable height of A4 paper by 2 cm.: the top margin is reduced by 2 cm. o letteraddenda(type)(value): Adds an addendum at the end of a letter. type should be bijlagen (i.e., appendices), cc or ps. Use nl() within the value section if multiple addenda of a certain type are used. o letteradmin(yourdate)(yourref): Puts yourletterfrom and yourreference elements in the letter. If left empty, two dashes are inserted. o letterfootitem(name)(value): Puts a footer at the bottom of letter-pages. Up to three will usually fit. For example, o letterreplyto(name)(address)(zip city): Defines the `reply to' address. o letterto(element): Adds element as an additional line to the address of the addressee. Use one element for each line of the addressee's address. Up to five lines will usually fit. A sixth line may be squeezed in, if necessary. The letter) macro itself requires the following arguments: o language: select english, dutch, or another language supported by the babel.sty style; o date: the letter's date. Use your own date-convention. The text specified here will be used as the letter's date; o subject: a short indication as to why you wrote the letter o opening: the letter's opening, e.g., Dear Linus,; o salutation: the letter's closing phrase, e.g., Kind regards,; o author: the name of the letter's author. nl() macros can be used here, but the brief class will also restrict the width of the author-lines by itself. SEE ALSO
latex(1), yodlstriproff(1), yodl(1), yodlbuiltins(7), yodlconverters(1), yodlletter(7), yodlmacros(7), yodlmanpage(7), yodlpost(1), yodlverbinsert(1). BUGS
- AUTHOR
Frank B. Brokken (f.b.brokken@rug.nl), yodl_3.00.0.tar.gz 1996-2010 yodlletter(7)
All times are GMT -4. The time now is 03:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy