Sponsored Content
Top Forums Programming Adding ucwords() To The Following Code? Post 302723907 by AimyThomas on Wednesday 31st of October 2012 02:06:06 AM
Old 10-31-2012
Adding ucwords() To The Following Code?

Hi,

I'm trying to add ucwords() to the following code so that is uses upper-cases for the words that $name spits out.
Code:
 
  $TMPL['title'] = ''.$name.' - Actor - Trailerpulse';

I've tried implementing it myself but can't seem to figure out the correct implementation.

Any suggestions
Thanks in Advance

Last edited by vbe; 10-31-2012 at 06:50 AM.. Reason: code tags...
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

adding zero's

Hi I am comparing two files, 100th column have formatting issue i mean 1 file have scale 4 and anothe file scale 2 ,if scale 2 need to add two zeros.Please any idea how to add two zers to 100th coulmn if scale is 2 file 1 .................1234.2000 file2 ................1234.20 ... (3 Replies)
Discussion started by: mohan705
3 Replies

2. UNIX for Dummies Questions & Answers

adding

Hi All i need a add recored like DateOfDU2=245,Time=00326 (in milli secounds ) DateOfDU2=245,Time=00347 DateOfDU2=245,Time=00258 DateOfDU2=246,Time=00325 DateOfDU2=246,Time=00408 DateOfDU2=246,Time=00257 DateOfDU2=247,Time=00037 DateOfDU2=247,Time=00417 DateOfDU2=247,Time=00420... (1 Reply)
Discussion started by: nalakaatslt
1 Replies

3. Shell Programming and Scripting

Adding new lines to a file + adding suffix to a pattern

I need some help with adding lines to file and substitute a pattern. Ok I have a file: #cat names.txt name: John Doe stationed: 1 name: Michael Sweets stationed: 41 . . . And would like to change it to: name: John Doe employed permanently stationed: 1-office (7 Replies)
Discussion started by: hemo21
7 Replies

4. AIX

adding new ip

Hi Admins, I was told to add new ip,mask and gateway to my 3rd nic.so i prepared a plan doing the same via smitty. now i need to know do i plumb and unplumb before adding ip. plz suggest Regards newaix (1 Reply)
Discussion started by: newaix
1 Replies

5. Shell Programming and Scripting

Adding incomplete HTML code to a file

Hi folks, I am scraping data from the Internet that has the format similar to what's on this page -- Trigger Notice Report The code I've written for scraping and storing results works fine when the HTML code is well written, but not when there are mistakes. In particular, the code breaks when... (4 Replies)
Discussion started by: ksk
4 Replies

6. UNIX for Dummies Questions & Answers

Adding

my shell script: #!/bin/ksh date +%d > /tmp/day.log day=`tail /tmp/day.log` ############################ for example: date +%d shows me 05 i want to add 14 days to 05 into my above script. bc 5+15 19 but i am not sure how to put into above script. (5 Replies)
Discussion started by: lawsongeek
5 Replies

7. Shell Programming and Scripting

Adding the code after searching the string

Hi All, please suggest me.. How to add the text from one file to another file and need to add the code after 3 lines of below searched line . sample code in standard file: <corecom:Description xml:id="id_2607"> <xsl:value-of... (6 Replies)
Discussion started by: vijayko
6 Replies

8. UNIX for Beginners Questions & Answers

Adding to an array in an external file, and adding elements to it.

I have an array in an external file, "array.txt", which contains: char *testarray={"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};I want to be able to add an element to this array, and have that element display, whenever I call it, without having to recompile... (29 Replies)
Discussion started by: ignatius
29 Replies
deweb(1)						      General Commands Manual							  deweb(1)

NAME
deweb - strips away C & CWEB commands from CWEB sources SYNOPSIS
deweb [ file1 file2 ... ] DESCRIPTION
deweb filters away all C & CWEB commands from a CWEB source code. This leaves only the LaTeX code. This stripped code, in turn, may then be passed to a suitable syntax checker for LaTeX, like ChkTeX and lacheck, or spell-checkers like ispell. The chkweb tool, included in the ChkTeX distribution will do just this; writing similar scripts should be trivial. When deweb strips away the C code from your CWEB source, it tries to preserve line breaks. This means that the error reports from <your favorite tool> will be correct regarding to line numbers. In most cases, the column position will also be correct. This significantly sim- plifies finding the errors in the LaTeX source (in contrast to the output from cweave, which output is truly difficult to figure anything out from). deweb accepts a list of filenames on the argument line, and will send its output to stdout. If no filenames are given, it will read from stdin, acting as a filter. No options are currently accepted. Macho users may try to pipe the output from deweb directly into LaTeX, theoretically, this should work. This would ease the debugging of the LaTeX code significantly, as when LaTeX complains about wrong syntax, you'll be able to find the erroneous line much more easily. Don't expect that the output looks very much like the final one, though. deweb should now understand all correct CWEB opcodes. If it complains about not understanding a correct opcode, please inform the author. DISTRIBUTION
Copyright (C) 1996 Jens T. Berger Thielemann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ENVIRONMENT
No environment variables are used. FILES
None. AUTHOR
Jens T. Berger Thielemann, <jensthi@ifi.uio.no> SEE ALSO
cweave(1), perl(1), chktex, lacheck(1), ispell(1) BUGS
Doesn't even compile under Perl versions before perl v5. Unfortunately, this means that we can't even tell the user why we failed; Perl will just complain about not being able to compile the regexps. The program will try to swallow the whole input file at once, instead of processing it on a line-by-line basis. 7th Edition June 8, 1996 deweb(1)
All times are GMT -4. The time now is 07:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy