Ubuntu :: Script To Capitalize Words
Jun 13, 2010
I am trying to write organize songs on my computer and ran out to the problem that some songs had names with underscores instead of spaces(which I had no problems removing, using awk). But i had some troubles with capitalizing first letters of the words. I think that it is not a big problem, but I don't know how to do it.
View 9 Replies
ADVERTISEMENT
Feb 19, 2011
i have this file, and considering it's obnoxiously huge i'd prefer not to have to do this manually. Is there some way i can manipulate sed or awk to change every other letter in all the words in a file to capital letters?
View 7 Replies
View Related
May 9, 2011
I'm trying to use Sed to change all "l" letters with "I" in capitalized words something like this:
1. ONlON -> ONION
- and as opposite change the all "I" with "l" in a word in small letters such as:
2. DiIbert -> Dilbert
For the first case I'm using the below sentence which unfortunately changes words such as "let" in "It"
Code:
sed 's/[:upper:]*l[:upper:]*/I/g' test.srt
For the second case the below command seems to work but it might have a side effect as the one used in the first case:
Code:
sed 's/[:lower:]*I[:lower:]*/l/g' test.srt
View 7 Replies
View Related
May 18, 2010
Just installed 10.04. When I'm using empathy, the spell checker says all sorts of correctly spelled words are incorrect, such as "eventually" and "examples".Does empathy use the system's dictionary or it's own? Is there a way to download a better dictionary?
View 1 Replies
View Related
Nov 29, 2010
I am looking for a program that will allow me to type a command to quickly define a word. Something like this: Code: dic piquant
1. Having a pleasantly sharp taste or appetizing flavor.
2. Pleasantly stimulating or exciting to the mind
View 3 Replies
View Related
Apr 28, 2011
Is there a command that could be used to find word content in a file? I.e I want to find all files containing the word 169.254.0.0 in /etc directory.
View 4 Replies
View Related
Nov 14, 2010
i waas wondering if anyone knew of a script or program that removes duplicate words in a txt file. im making an install script and the install list has gotten a bit long so i want to ensure there are no duplicates in the file
View 2 Replies
View Related
Jan 31, 2011
the browser i'm using is operaand this is the only site that looks like this but it's a very important onethere should be arabic words there i tried to change the language encoding to arabic windows-1256 tried to install arabic in language support
View 1 Replies
View Related
May 22, 2011
I have goldendict and I want it to pronounce words,how can I do that?
View 2 Replies
View Related
Dec 21, 2010
I need to grep a dictionary file.Only the words that contain 2 or more z's and only 1 b needs to be listed.
View 1 Replies
View Related
Mar 3, 2011
For example if i have the following "OneThree" and i want to add the word "Two" between "one" and "three". To have "OneTwoThree" How can i do this?
View 2 Replies
View Related
Dec 7, 2010
I just typed several long lines into vi but I only want it to have 80 columns. How can I set this in vi?
View 1 Replies
View Related
Sep 24, 2010
This array is supposed to contain 12 elements (names of the month) What I want to achieve is that depending on some user input (a number 1-12) a full name of one of the months will be displayed, eg.
Code:
scanf("%d", &month);
printf("The month is %c", months_names[month]);
View 6 Replies
View Related
Mar 7, 2010
How could someone remove all double or more spaces from a group of words? Is there a GUI program or CLI method or both? Example: I like to turn this:
[Code]...
View 2 Replies
View Related
Sep 1, 2010
So theres this command
Code:
man -k mail
Which lists commands that contain the keyword "mail" in their description.I want the output of this command in less and the words highlighted by grep. Something like
Code:
man -k mail | grep mail | less
The command doesn't work, how do I fix it?
View 2 Replies
View Related
Apr 27, 2011
I have a list of approximately 50 words that I'd like to search documents for and delete those words. I was wondering if there is some type of automated process for removing multiple words rather than me manually putting each word into 'find and replace'
On that note I guess I could write the Macro in python if there isn't anything out there that does this. However I read that open office only works with python 2.3.5 or something of that nature, and I have already installed 3.1. Is that still going to be an issue?
View 2 Replies
View Related
Jul 6, 2010
I am using Oracle Enterprise Linux version 4 update 7.
Sometimes I have to access large files with thousands of lines in them and I would like to locate a particultar word. e.g.
vi /etc/passwd.
The contents of file passwd are displayed.I want to find a username of joe assuming the passwd file is 2000 lines long.
I would like to use a linux command that will locate joe and highlight in the passwd file as to where word joe is.
Is there a linux command that can do this?
View 5 Replies
View Related
Mar 8, 2010
I exported a spreadsheet file into cvs format.
The cvs file is formatted this way
field1,field2,field3,..etc
I want it to be in a Quote delimited format like so
"field1","field2","field3",..etc
View 2 Replies
View Related
Feb 15, 2010
How can I display the no. of lines, words and characters for each file in current directory and in sub directory.
wc . * shows errornous result as there are some executable files in that directory.
View 2 Replies
View Related
Apr 23, 2010
I am looking for this `struct messages_sdd_t` and I need to search through a lot of *.c files to find it.However, I can't seen to find a match as I want to exclude all the words 'struct' and 'messages_sdd_t'. As I want to search on this only 'struct messages_sdd_t' The reason for this is, as struct is used many times and I keep getting pages or search results.The directory I am searching in, has another directories so it will have to search recursively.I have been doing this without success:Code: find . -type f -name '*.c' | xargs grep 'struct messages_sdd_t'and thisCode: find . -type f -name '*.c' | xargs egrep -w 'struct|messages_sdd_t'
View 3 Replies
View Related
Dec 2, 2010
15 for(i = 0; i < N; i++) I want to replace "i" with "test" in the line above,whose line number is 15. When I tried this command :15s/i/test/ Line 15 turned to be this: for(test = 0; i < N; i++) It only replace the first "i",but I want to change all "i" in line 15.
View 3 Replies
View Related
Sep 9, 2010
I want to grep any line with "john" or "jack". How to do that? I tried
grep john | grep jack
but it didn't work
View 2 Replies
View Related
May 26, 2011
I want to search lines with these stings with one or more spaces..
e.g
Code:
a b
a b
a b
a b
How will I achieve this by egrep ?
View 14 Replies
View Related
Jun 16, 2010
User submits a ms word file, and the php can recognize the number of words? Is it only possible for ms win server?
View 1 Replies
View Related
May 6, 2011
When I'm using KWord and I try to highlight text or even click to another line, it doesn't show the highlight or the cursor.I ran the program via Konsole and got the following output:
Code:
(Soprano::Redland::BackendPlugin) creating model of type "hashes" with options "hash-type='memory',contexts='yes'"
[code]...
View 1 Replies
View Related
May 27, 2010
I just want to search file names, not their content.
Using gnome-search-tool, if I search for "word1 word3" I can't find "word1 word2 word3.txt" but I do find it (and too many others) if I just search for "word1"
I would have thought a boolean AND search would just be automatic, but I guess not. I've already come across searchmonkey, but I'm not smart enough to figure out how to set it up to do this - i.e. I don't want to have to use regular expressions or be typing "*" all over the place.
P.S. I do use google desktop search, but I hate using it as the results are way too narrow to be of any use and haven't been able to figure out how to widen it.
P.P.S. I also found this: In terminal type gconf-editor and find gnome-search-tool in the Apps. Then look for the field quick_search_second_scan_excluded_paths and change the slash to nothing, i.e. delete the "/".
It worked for my ubuntu 10.04 pc, but not this one (ubuntu 9.1) - so I thought maybe there's another way...
View 5 Replies
View Related
Jun 2, 2011
I am trying to use grep to only tell me files that include both words matching in a pattern file. However when i specify:
grep -f <pattern file> <file>
It pulls out anything that matches one or the other.
Not both.
how to get it to match AND not OR.
View 9 Replies
View Related
Jun 28, 2010
I am creating a documentation (in English) where I need to write some Sanskrit words. My OS is debian-5.0.4. I have texlive-latex3 and have installed latex-sanskrit. Problem is what US-English keyboard will produce the Sanskrit letters. My 'Latex-A Document Preparation System' by Leslie Lamport gives the commands for some Western languages - Greek, Swedish, French. Is any document/manual available to suit my purpose?
View 5 Replies
View Related
Jan 12, 2011
I tried Suse five or six years ago and ran into an issue that was not comfortable to work with so I went back to windows. The problem was open spaces between words was not permitted with my music files. I have transferred all of my CDs and LPs to MP3 and have a tremendous number of them and the Suse of five years ago required I convert a title like Foggy Mountain Special.mp3 into something resembling Foggy_Mountain_Special.mp3
I don't care to convert literally a hundred thousand titles to fit the latter format. Does the current version of Suse allow the use of spaces between the words or is the 'no open space' convention still required?
View 9 Replies
View Related
Jun 29, 2011
I use gtranslator to translate po files. Gtranslator worked fine on 11.3 but when I installed 11.4 it crashed. I opened a Bug report here. Although I followed instructions, I couldn't solve it. Now I use Gnome 3. I installed gtranslator from the page where it says about Gnome 3. Now my gtranslator is 2.90. Now when I open a file, it returns the following image The numbers you see below are the words. I don't see a thing. I can move to next word but I still cannot see anything.
View 1 Replies
View Related