Programming :: Change To Capital First Letter Of Every Word Over Specific Column
May 1, 2010Trying to change to upper case first letter of every word over a specific column.
View 10 RepliesTrying to change to upper case first letter of every word over a specific column.
View 10 Repliesi'm trying to make a folder on fat32 partition named NEW by typing in console mkdir NEW, then i open PCMan file manager then go to that folder at first the folder name was NEW but after i doubleclick it and go back the folder name was changed to 'new'then i tried to rename it to NEW but it says file exist then i tried to rename it to 'not new' (this time inside PCMan) and it work then i rename it again to NEW, go into that folder and go back again... the folder name changed to 'new' again.anyone know why this happen?? this doesn't happen if i make the folder name more than one word such as 'NEW NEW'
View 2 Replies View Relatedfor example
else {
for fileDOC in $location/*.doc
do
[code]...
I have an old-address-list file which is having around 1500 entries. I need to convert this addresses in to a specific format.
The old-address-list file>
# cat old-address-list-file
dn: CN=Muhammad Hadhi K.M,OU=IT Dept,OU=Example Company H.O,DC=example,DC=com
cn: Muhammad Hadhi K.M
[code]....
ive searched around about this for a bit, but have been unable to find a working and suitable solution for me to do, what i require is to be able to change a string such as:hIs Is a TeSt to --> This Is A Test - AND place it in a variable - so far ive only succesfully been able to make the whole sentence uppercase or lowercase.
View 2 Replies View RelatedI have a large tab delimited text file, about 17gb. It only has 6 column. On column number 4, it is all numbers. Ranging from 1-1000. I want to count how many times each number occured. So the output I want is in 2 columns, first one is a number, second column is how many times it occured. I tried
head -n 1000 coverage | cut -f 4 | uniq -c
Didn't work for me, the first column returned is not unique.
I had recently installed Bisigi Themes and Cairo dock after which the letter Capital A has gone ... it just appears as a black box with some smudges on it...i dont know which of the two caused it... bfore installing them the letter was visible ...
View 3 Replies View RelatedIm tryng to replace in specific column and line number within a file where its 3erd column contain the same string in all lines.
[code]....
My goal is to replace only first and last ocurrences of "Normal player", with the following desired output:
[code]....
Im not sure how to use the "IF" and "AND" conditions together. I�ve tryed with the code below, but the script replaces the string for every line.
[code]....
how to replace values for specific column in first and last lines within same AWK script, without taking reference data in other columns?
so i have a file that has the following
file1.txt
ID1 age_11 dog_n3 parent_dog_n1
ID1 age_7 dog_n4 parent_dog_n3
ID1 dog_n5 age_4
ID1 dog_n6 age_4
[Code].....
As you can see i would like the output file to be just the dogs, not the otehr information. But because the information is mixed up how can i extract only the dogs? (i cant do and awk '{print }' because the dogs are found in colounm 2 or 3 or sometimes even 4.
I need a command to find the all files which filename contains the text "SomeText" and to delete that files!From /home/movie/wp-content/uploads/this folder I have lots of files and folders .Also I need that for folders and subfolders who contains some text in folder name "someTextInFolderName"
View 13 Replies View Relatedi want to make a script that change the names of files and folders into small letter because they are all in capital and more than 1000 fileit is impossible to do that with my hand
View 14 Replies View RelatedWhen I highlight a word then delete it, the word is erased as expected. But when I highlight a word and begin typing a word to replace it (instead of deleting or hitting backspace), the first letter of the unwanted word does not erase... so I am required to watch my text very closely when editing.
For example: I'll type the word "fungus" and then highlight it and type the replacement word "mold" and when I look at the text, the word is "fmold". Am I the only one with this odd situation?
i have a compiled data as follows:
c1
0
0
0
[Code]......
for some obscure reason black squares appear instead of a specific letter. Not always the same letter - it just seems to pick a letter different every time.
View 9 Replies View RelatedI have a multicolumn datas, like
a1 b1 ... f1
a2 b2 ... f2
. . ... .
[code]...
I would like to make a file with all these data in one column, like
a1
a2
.
.
[code]....
Can it be done with awk or some other command? Also, is it possible then do add another column in front of this one with numbers of the lines (for every previous column), like
1 a1
2 a2
. .
. .
[code].....
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]...
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.
Im trying to use awk to do matching in only a specific column
example.txt:
www.google.com www.example.com
www.google.com/search www.example2.com
i used:
awk '{ (if $1 == "http://www.google.com") print $2}' example.txt
this awk statement only returns the first line, and i cant seems to make it perform in a way to match based on keywords like GREP. Is there any way to make display the other lines which contains "google" also?
I want to change the resource limits for a specific processOr to create a new process and give it limits as I want, There is a function setrlimit, Which is possible to change it but for a programmatic I want to apply it to another Process, The problem is that this function does not receive process ID for example. I read in most books on the subject of The Linux system programming
View 1 Replies View Relatedshell commands for such two goals?
In a tab-delimited file,
Code:
1aIa11aa
2bIIa22aa
1cIIIaabcaa
4dIVaabcaa
1. How can I find the non-unique values in the 1st column (1, in this case)?
2. How can I find the non-integer values in the 5th column (abc, in this case)?
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 Relatedtell me the command used to find a specific word in directories and sub-directories in linux?
View 4 Replies View RelatedI know their are several threads pre-taining to keyboard remapping, I own a Toshiba X205 S7483 laptop running Ubuntu 10.10 32 bit with the latest updates installed. I like this os overall but here is my question.
My laptop keyboard letter, "b" has broke and Im copying and pasting when I need to use it. Is there a way how I can change either the assigned b letter key to like one of the alt keys or windows menu keys or fn key?
Not sure why this won't work, any thoughts?echo enter the letter A or the letter B
read letter
if["$letter" = "A"]; then
echo "coolit's an A"
[code]....
I have a string such as "helLo wOrlD". I'd like to transform this into "Hello World", ie. capitalise the first letter of every word, and transform the rest into small letters, both being compulsory.
View 9 Replies View RelatedI need to search a bunch of files in a specific folder for a specific number and add all the numbers together to a total sum. I use Rsync everyday, everytime I run rsync i get a logfile (rsync output) witch contains the textstring "Total bytes sent: xxxxxx".
The "xxxxx" can vary in lenght. I need to extract the "xxxxxx" from each file and add the numbers together to a total size over a week or a month. Is this possible? And I wish to only use bash. One way of doing stuff at a time my friends .
i need to calculate the number of words containing letter e in a textfile.
View 9 Replies View RelatedI want to replace specific character in a file after every specific line. example as follows.
O 000000000000000000
A 111111111111111111
C 222222222222222222
[code]...
i am new to scriptingi have a file : file.dat with following data
Code: STORAGE PERCENTAGE FLAG:
/storage_01 64% 0
/storage_02 17% 1
[code]...