10-30-2013
Replacing word and Capitalize words after
I have an assignment and I am not sure what to do.
In Unix, I use PuTTY
change the semicolon (
to a period, and capitalize the first letter of the word immediately after it.
I know change command is M-% and "." so only one semicolon is changed but I am not sure how to capitalize the first letter after it.
Help please
Thanks
10 More Discussions You Might Find Interesting
1. Programming
I'm trying to write a program that will open an existing file supplied by the command line argument and then replace words with "We" or "we" by "I" and "a" or "A" by "The". When I run the program it reads the file, changes the word but re writes it on a new line with only the replaced words not the... (1 Reply)
Discussion started by: adam85
1 Replies
2. Shell Programming and Scripting
I really hate to do this, but I am completely stumped. I have to create a sed script that will change the abbreviations in a file to the full word. I really just have no idea where to start. All I want is a starting point as well no actual complete answer. Thank you for your time in advance.
... (4 Replies)
Discussion started by: mauler123
4 Replies
3. Shell Programming and Scripting
Hi,
I have a file that looks like this:
br0
br0
br1
br10
br11
br12
br13
br14
br15
br15
br2
br2
br3
br4
br5
br6
br7 (5 Replies)
Discussion started by: phil_heath
5 Replies
4. UNIX for Dummies Questions & Answers
I have a File with the below contents
File1
I have no prior experience in unix. I have just started to work in unix.
My experience in unix is 0. My Total It exp is 3 yrs.
I need to replace the first word in each line with the last word for example
unix have no prior experience in... (2 Replies)
Discussion started by: kri_swami
2 Replies
5. Shell Programming and Scripting
Hi, I have am using a file that contains names that I want to replace.
Basically file 1 looks like this
jack
joe
james
john
I have another file (file 2) that looks like this
jack 2345
joe 6848
james 3342
john 3432
Basically I want to replace column1 from file1... (4 Replies)
Discussion started by: kylle345
4 Replies
6. Shell Programming and Scripting
Total Bash noob, have been successful in doing my script by searching and looking at examples, but I need some assitance with this one, just can't figure it out.
In the Bash script I am trying to capitalize the first letter of every word in a string, ideally not changing other capitalization.
... (5 Replies)
Discussion started by: randyharris
5 Replies
7. Shell Programming and Scripting
Hello All
Probably this is very simple for you but I cant figure it out
I have to replace "No Header" with "Output Field Names"
I/P file
<ATTRIBUTE NAME ="Header Options" VALUE ="No Header"/>
O/P needed
<ATTRIBUTE NAME ="Header Options" VALUE = "Output Field Names"> (4 Replies)
Discussion started by: Pratik4891
4 Replies
8. Shell Programming and Scripting
Hi Folks,
Could you please advise what will be the SED command to replace a word in all xml's under a particular directory
for example let say I rite now at the following below location
$ cd /ter/rap/config
now under config directory there will be lots of xml file , now my objective is to... (1 Reply)
Discussion started by: punpun66
1 Replies
9. Shell Programming and Scripting
I have a sample text file with file name: sample.txt
The text file has the following text.
this is an example text where we have to extract certain words before and after certain word these words can be used later to get more information
I want to extract n (a constant) words before and... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
10. Shell Programming and Scripting
Dear ALL,
I have sample file :
IDcentos-forum,bash,linuxCentOS,GNome
IEfedora-milis,cli,linuxRedhat,KDE
IRfreebsd-milis,aix,unixbsd,pyton
required output:
centos,bash,linuxCentOS,GNome
fedora,cli,linuxRedhat,KDE
freebsd,aix,unixbsd,pyton
Can you help me pls.. (1 Reply)
Discussion started by: gnulyn
1 Replies
LEARN ABOUT DEBIAN
net::hotline::fileinfoitem
Net::Hotline::FileInfoItem(3pm) User Contributed Perl Documentation Net::Hotline::FileInfoItem(3pm)
NAME
Net::Hotline::FileInfoItem - File object used internally by Net::Hotline::Client
SYNOPSIS
use Net::Hotline::FileInfoItem;
$file = new Net::Hotline::FileInfoItem;
$file->name("smile");
$file->comments("A happy file.");
...
DESCRIPTION
Net::Hotline::FileInfoItem is a simple class for storing and retrieving file information, You should never have to create your own
Net::Hotline::FileInfoItem objects when using Net::Hotline::Client. Getting and (to a lesser extent) setting attributes is all that should
be necessary.
CONSTRUCTION
new Creates a new Net::Hotline::FileInfoItem object with all attributes set to undef.
METHODS
All the Net::Hotline::FileInfoItem methods are simple attribute get/set routines. If given an argument, they set an attribute. In all
cases, they return the current value of the attribute.
comment TEXT
The file comments (as seen in the Mac OS Finder).
ctime NUM
The creation time of the file, given as a Mac OS native time value. Add the constant Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME
to it to change it to seconds since the Unix epoch.
creator TEXT
The file creator, given as a four-letter Mac OS creator code ("TTXT", "SIT!", etc.)
name TEXT
The file name.
icon
The file icon given as a four-letter code.
mtime NUM
The modification time of the file, given as a Mac OS native time value. Add the constant
Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME to it to change it to seconds since the Unix epoch.
ctime NUM
The creation time of the file, given as a Mac OS native time value. Add the constant Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME
to it to change it to seconds since the Unix epoch.
size NUM
The size of the file in bytes.
type TEXT
The file type, given as a four-letter Mac OS type code ("TEXT", "PICT", etc.), Net::Hotline::Constants::HTLC_INFO_FOLDER_TYPE for
folders, and Net::Hotline::Constants::HTLC_INFO_FALIAS_TYPE for folder aliases.
AUTHOR
John C. Siracusa (siracusa@mindspring.com)
COPYRIGHT
Copyright(c) 1999 by John Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
perl v5.10.1 2002-11-27 Net::Hotline::FileInfoItem(3pm)