Ubuntu :: Script To Find Vowel Word (Alphabetic)
Apr 14, 2011I am writing a script to find words in a file call vowel words that have 5 or more vowels and then sort them alphabetic, this should be done using grep.
View 1 RepliesI am writing a script to find words in a file call vowel words that have 5 or more vowels and then sort them alphabetic, this should be done using grep.
View 1 RepliesI am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:
wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;
this is driving me crazy. How can i in the terminal, display only the first 5 lines of say dmesg
View 7 Replies View RelatedI want to write a small script to rename a bunch of files. Their name is of the form 'long number'|'name'|'extension', for example:
52354Football_part2.flv
2353452Nice_weather_4_ducks.flv
I would like to rename these to:
Football_part2.flv
Nice_weather_4_ducks.flv
If in my script I use something like
Code:
sed s/[0-9]//g
on each file, I will get
Football_part.flv, instead of Football_part2.flv,
and
Nice_weather__ducks.flv, instead of Nice_weather_4_ducks.flv.
how to instruct sed to only remove numbers that are in the beginning of the name in a simple way?
How to find a word from different files in linux ?
Is there any command like (find . / -name *****), that can search files in the system for a particular word in Linux?
I'm using bash under Ubuntu.Currently this works well for the current directory:catdoc *.doc | grep "specificword" But I have lots of subdirectories with .doc files.How can I search for, let's say, "specificword" recursively?
View 2 Replies View Relatedhow do I find a phrase/word recursively in a file tree in Linux?I tried find . -name ./* | grep my_phraseand I tried grep -r "register_long_arrays" *
View 5 Replies View Relatedtell me the command used to find a specific word in directories and sub-directories in linux?
View 4 Replies View RelatedI am working with a Tcl script and have some strings in the following format (RE):
[a-zA-Z]+[0-9]{6}-[0-9]
There are some leading letters, combinations of capital and lowercase. Then six digits, followed by a hyphen, then one more digit. I would like to remove all of the leading alphabetic characters from the string. The resulting string would then be in this format: [0-9]{6}-[0-9]. In other words, six numeric digits, a hyphen, then one more digit.
I have tried:
Code:
set newstr [string trimleft $origstr alpha]
But that only removes the first alphabetic character, not all of them.
I couldn't get anything with regsub to work correctly, but I am somewhat of a noob with RE's in general and regsub in particular. There are usually 5 leading letters at the beginning of these strings, and I could in most cases get away with using string replace and constant indices to extract the substring. However, my preference is for this to be robust enough to handle all cases with 1 through n leading alphabetic characters.
I'm trying to produce a alphabetic, non-repetitive list of all System service calls in all c files located in a folder. Here's what I got so far.
grep -ow '[A-Za-z]*SYS[$][A-Za-z]*' *.c | sort
Which produces all system service calls in alphabetic order I just need to find out how to make it non-repetitive.
Well, I am facing one issue:How can i read two files word by word at a time using any loop as i need word by word comparision in shell script?Please let me know pseudo code.
View 14 Replies View RelatedI have a output file look like this:
{"test1" : "test2", "test3" : "test4"},
How can I read word by word in each line?This is not working code:
a=0
while read word
do a=$(($a+1));
[code]...
Want to search for ~ and delete it as well as to append the entire line to the above line. For Ex:
1111xxxx date Sandy area is ~around this area.3222xxx date There seems to ~left side of map, the colours are accurate (showing green areas)Even if I ~zoom in, the green parks, xxx3258 date The dammed up
~away, the "other" body of water varies ~blackNatural gas leaching.
IT MUST LOOK LIKE:
1111xxxx date Sandy area is around this area. 3222xxx date There seems to left side of map, the colours are accurate (showing green areas)Even if I zoom in, the green parks, xxx3258 date The dammed up away, the "other" body of water varies blackNatural gas leaching.
I am pretty new to bash scripting...I am trying to write a script that will take an input and read it word for word and then DO something with it like echo. I have been able to find how to read word for word from a file but I don't know how to do it with input.
I was looking for something like
Code:
exit 0 The input would be A-Z a-z 0-9 and have a single space between each word.
I have to modify formsweb.cfg file in Oracle IAS.
Problem description
In formsweb.cfg file are two lines with labels archive_jini= and archive= at the beginning of line. After equal sign (=) is row of filenames of java archives delimited by coma(,). When I insert a new jar file in java directory, I have to append the very same name of jar file to both lines if that name is not yet present.
Example snippet from formsweb.cfg
I have a text file example :
word1
word2
word4
[code]...
In linux is there a way to find the next word of a particular word of a file. grep displays entire line of the particular word. But i want only the exact next word of that particular word.is there any command for that.
View 13 Replies View RelatedFound a font bug: in the Arial-KOI type, the "è" word is replaced by a "X" word...
View 3 Replies View RelatedI don't think that the regular 10.10 or 10.04 repos have XFCE 4.8, so I was wondering if anyone has any information on a PPA for XFCE 4.8 or that.
View 9 Replies View RelatedI'm very new to this , just got a acer revo 3600 with Linux but there seems to be nothing much on it apart from Internet , don't understand computers at all but am looking for word processor etc. been told to get ubuntu don't know how to or what it is also a bit stuck with the terminology.
View 9 Replies View RelatedAbiword is splitting words at the end of sentences. If I go to the end of the line and nudge the word, it will wrap but I get an extra space. I can usually delete the space. Sometime, the word will wrap correctly if I continue typing but this is not the typical case.
I know this is not a problem with OpenOffice but I don't want to install 70MB of program just to get a simple word processor.
I loose partial keyboard use after login. At first, I login, and can type about 1 word or so, then typing stops. I can use Ctl + Alt + Del to shutdown, restart or whatever. My volume and play stop, pause keys work when listening to music, but I have no pull downs. I can't use the Applications, Places, or System pull downs at all after the typing stops. However, I can still double-click things on the desktop, and I can also launch some launchers on the top system bar. I can browse the internet but no typing.
I once logged in, and did no typing for a couple hours. I just let it sit. Everything seemed normal until I started typing. Then it stopped typing, and no more pulldown menus. Another interesting fact is, I leave my computer on most of the time. I went away for 4 days and shut down my computer while I was gone. It was working fine when I shut it down, but then 4 days later when I boot back up, this crap starts. I'm using Ubuntu 10.04 on a Dell Precision 670. The keyboard is wireless, but I have recently changed the batteries.
it does not permit me use Times New Roman font! It says down the dialogue box Font on MS Word that it is not, like, installed, and that it will use the most likely one. It's not good, because the texts (all of them) get italicized when I open some on it. It was working fine before. I use Wine on Lucid Lynx, very updated.
View 4 Replies View RelatedMy fonts are all set to times new roman or something. Yet the page shows up in wingings?
View 2 Replies View RelatedMy Open Office word processor keeps closing after it's been open just a few seconds. I get to paste something I wanted to print into the word processor, and then it closes.
View 8 Replies View Relatedwhen I record something every word is repeated and it's very annoying
this is a sample(me reading the text above): [URL]
How can I install (or use if already installed) the Spanish language (Puerto Rico)?
It is not working for me.
I open the OpenOffice.Org Word Processor
I click:
-Tool
-Language
-Spanish (Puerto Rico) (For "Selection" or "For Paragraph" or "For All Text"), and nothing happens.
I am obliged o go online and use some of those "Type Spanish accents" online site to do my Spanish work. But I can't, it is too much because the accents, etc.
Also, I found some packages to download but it says that they are "Authenticated"
I know there are templates for writing cv's in word through windows.Are there any within Linux ?
View 1 Replies View RelatedI tried to install word2007 on kubuntu 9.10 with wine1.01 but everytime i got an error message in wine saying "setup cannot continue because a required file is either corrupt or not available. Run setup again from the original source disk or download location"
This is strange because in my previous installation of kubuntu 9.10 I could run word2007 without any problems.
When sending to a typical windows user a text document created in open office what must the file extension be for the MS user to be able to open it.
View 5 Replies View Related