should be a simple question, I am trying to uppercase every first character in a word on the list.
abc
google
cnn
services
My first thought was sed 'y/^/^/', but it changed all the characters, not just the first character.
any thoughts? (7 Replies)
I try to write a small script that looks in the file tt for all the words that start with m in lowercase and in which there is no uppercase.
#!/bin/sh
grep ^m\.*\.\.* tt (4 Replies)
how do i print uppercase words in a string in PERL
For example
$str=" welcome to UNIX programming"
should print UNIX
$str="WELCOME to unix programming"
should print WELCOME
i itried the following
/\s+\w+\b/ $str
Can u help me in to get a uppercase word in PERL (3 Replies)
Another frustrating scripting problem from a biologist trying to manipulate a file with several millions line. For each of the line I need to compare the uppercase A or C or G or T with the lowercase a or c or g or t. If there are more uppercases, a + should be added to a new column, otherwise a -... (10 Replies)
Hi,
I have a file which has the following
/usr/new/xyz/abc
/us1/neb/yxr/def
/usr/bin/cloud1/fgh
/net/bin1/txt1/kdq
I want to do something like this
/usr/new/xyz/abc xyz
/us1/neb/yxr/def yxr
/usr/bin/cloud1/fgh cloud1
/net/bin1/txt1/kdq txt1
I need to add the 2nd last word to the... (3 Replies)
Hi All,
After reading that the sort command in Linux can be made to use many processor cores just by using a simple script which I found on the internet, I was wondering if I can use similar techniques for programs like the awk and sed?
#!/bin/bash
# Usage: psort filename <chunksize>... (7 Replies)
The title pretty much defines the problem. I have text files that are all in caps. I would like to convert them to lowercase, but have the first letter of the first word in each sentence in uppercase.
I already have SED on the server for fixing / tweaking text files, but I'm open to other... (5 Replies)
Hello,
in a AIX system : AIX CDRATE01 2 7 00FAB3114C00
my following commande give the result :
LISTE /tmp/RESS
****************************************************************
Liste
TYPE = XXXXXXX
EX = YYYY
VER ... (13 Replies)
Discussion started by: sam01
13 Replies
LEARN ABOUT OSX
moosex::declare::util
MooseX::Declare::Util(3) User Contributed Perl Documentation MooseX::Declare::Util(3)NAME
MooseX::Declare::Util - Common declarative utility functions
DESCRIPTION
This exporter collection contains the commonly used functions in MooseX::Declare.
All functions in this package will be exported upon request.
FUNCTIONS
outer_stack_push
outer_stack_push (Str $file, Str $value)
Pushes the $value on the internal stack for the file $file.
outer_stack_pop
outer_stack_pop (Str $file)
Removes one item from the internal stack of the file $file.
outer_stack_peek
outer_stack_peek (Str $file)
Returns the topmost item in the internal stack for $file without removing it from the stack.
SEE ALSO
o MooseX::Declare
AUTHORS
o Florian Ragwitz <rafl@debian.org>
o Ash Berlin <ash@cpan.org>
o Chas. J. Owens IV <chas.owens@gmail.com>
o Chris Prather <chris@prather.org>
o Dave Rolsky <autarch@urth.org>
o Devin Austin <dhoss@cpan.org>
o Hans Dieter Pearcey <hdp@cpan.org>
o Justin Hunter <justin.d.hunter@gmail.com>
o Matt Kraai <kraai@ftbfs.org>
o Michele Beltrame <arthas@cpan.org>
o Nelo Onyiah <nelo.onyiah@gmail.com>
o nperez <nperez@cpan.org>
o Piers Cawley <pdcawley@bofh.org.uk>
o Rafael Kitover <rkitover@io.com>
o Robert 'phaylon' Sedlacek <rs@474.at>
o Stevan Little <stevan.little@iinteractive.com>
o Tomas Doran <bobtfish@bobtfish.net>
o Yanick Champoux <yanick@babyl.dyndns.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.16.2 2011-08-23 MooseX::Declare::Util(3)