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)
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)
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)
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)
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)
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)
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)
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)
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)
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)