10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have this text file with these words and I need help with removing words with repeated letter from these lines.
1 ama
5 bib
29 bob
2 bub
5 civic
2 dad
10 deed
1 denned
335 did
1 eeee
1 eeeee
2 eke
8... (4 Replies)
Discussion started by: crepe6
4 Replies
2. Shell Programming and Scripting
Hi,
I have written the following python snippet to store the capital letter starting words into a dictionary as key and no of its appearances as a value in this dictionary against the key.
#!/usr/bin/env python
import sys
import re
hash = {} # initialize an empty dictinonary
for line in... (1 Reply)
Discussion started by: royalibrahim
1 Replies
3. UNIX for Dummies Questions & Answers
I have a word file that looks like:
pens
binder
spiral
user
I want to delete all the words without the letter /s/, so output looks like:
pens
spiral
user
I tried using sed:
sed '//d' infile.txt > out.txt (5 Replies)
Discussion started by: pxalpine
5 Replies
4. Shell Programming and Scripting
I need to use bash to convert sentences where all words start with a small letter into one where all words start with a capital letter.
So that a string like:
are utilities ready for hurricane sandy
becomes:
Are Utilities Ready For Hurricane Sandy (10 Replies)
Discussion started by: locoroco
10 Replies
5. Shell Programming and Scripting
Hello,
I need a script to do the following:
I have a file filled of lines like:
valu -> value
confirmaton -> confirmation
I need a script to compare the first and last letters of the words, for example for the line:
valu -> value
compare "v" to "v" and "u" to "e" and print the line... (7 Replies)
Discussion started by: bojomojo
7 Replies
6. Shell Programming and Scripting
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
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
8. Shell Programming and Scripting
hi,
if i have a string of letters and seperatly i have a single letter. how do i check whether that specific letter is in my string aswell? any ideas? (2 Replies)
Discussion started by: Furqan_79
2 Replies
9. Shell Programming and Scripting
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
10. Shell Programming and Scripting
Hi,
I want to be able to list all the names in a file which begin with a capital letter, but I don't want it to list words that begin a new sentence. Is there any way round this?
Thanks for your help. (1 Reply)
Discussion started by: kev269
1 Replies