Posted June 13th, 2008 by Editor
Linux
Linux has powerful text conversion programs built in. Proper name and article title are a few examples of words that should have the first letter capitalized. If this needs to be done with large volumes of text, a shell script can save time.
phrase=”text to be converted here“;
capitals=$(for i in $phrase; do convert=`echo -n “${i:0:1}” | tr “[:lower:]” “[:upper:]“`; echo -n “${convert}${i:1} “; done | sed ’s/^[ \t]*//;s/[ \t]*$//’)
echo $capitals;
output=”Text To Be Converted Here”
Posted June 6th, 2008 by Editor
Linux
Locating any file on a linux operating system can be done quickly from the command line.
Step 1
Index your file system with updatedb. This makes a list of files so that later searches won’t have to look in the entire span of directories each time. The process can later be added to a cronjob and happen automatically. Run the Command:
prompt$: updatedb
Step 2
Once the directory has been updated, the way to find the location of a desired file is with locate. An alternative is the find command, which can take a longer time to finish searching the entire system.
prompt$: locate filename
Its that [...]