03-24-2014
Blank Blank Blank
Last edited by pvibien; 06-14-2014 at 01:47 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
Can you tell me how to change the prompt color (only the path part) when I chnange directory with "cd"?
I use the sequence below in ".bashrc" (Solaris 8) to change my prompt colors and I'd like to modify it to change the path color when I cange directory.
PSC() { echo -ne "\"; }... (0 Replies)
Discussion started by: majormark
0 Replies
2. Shell Programming and Scripting
Hi:
I have a requirement as below:
I have some standard Unix commands modified and kept them in a directory say /usr/clsh/bin. For example I have a script named "ls" kept here which is modified version of "ls" (say it always gives long listing i.e. ls -l).
When any user logs on and types... (2 Replies)
Discussion started by: ramesh_samane
2 Replies
3. Shell Programming and Scripting
Hi
I need a script which will remove a path from PATH environment variable. For example
$echo PATH
/usr/local/bin:/usr/bin:test/rmve:/usr/games
$echo rmv
test/rmve
Here I need a shell script which will remove rmv path (test/rmve) from PATH... (9 Replies)
Discussion started by: madhu84
9 Replies
4. Shell Programming and Scripting
Hi,
Could anyone help me in writing a single line code by either using (sed, awk, perl or whatever) to extract a specific path from the PATH environment variable?
for eg: suppose the PATH is being set as follows
PATH=/usr/bin/:/usr/local/bin:/bin:/usr/sbin:/usr/bin/java:/usr/bin/perl3.4
... (2 Replies)
Discussion started by: royalibrahim
2 Replies
5. Shell Programming and Scripting
Hello Folks,
I want to append a path in user's PATH variable which should be available in current session.
Background
Numerous persons will run a utility.
Aim is to add the absolute path of the utility the first time it runs so that next runs have the PATH in env & users can directly run... (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies
6. Shell Programming and Scripting
Hi I'm trying to select text between two lines, I'm using sed to to this, but I need to pass variables to it. For example
start="BEGIN /home/mavkoup/data"
end="END"
sed -n -e '/${start}/,/${end}/g' doesn't work. I've tried double quotes as well. I think there's a problem with the / in the... (4 Replies)
Discussion started by: mavkoup
4 Replies
7. Shell Programming and Scripting
Hi ,
Iam changing the path in weblogic
from /opt/user/shared/mydomain
to
/opt/users/shared/multidomain
i have to change the below configuration files by using scripting am using for loop and sed to change the below files.
for i in ${b}startWebLogic.sh... (1 Reply)
Discussion started by: sam1226
1 Replies
8. Shell Programming and Scripting
Hi frnds!
i m installing a software named 'Gamit' by using bash.
bt i recieved the follwoing error:
.. removing any existing Makefiles or archive files from libraries directories
/root/Documents/ISP/Gamit_10.4/com/rmfresh: Permission denied.
.. removing any existing Makefiles or... (1 Reply)
Discussion started by: Engr. Shoaib
1 Replies
9. UNIX for Dummies Questions & Answers
I have many html files in a directory tree and want to change the a path declaration within the files.
Files will look as below
I want to remove "geopdf/" so I get as example
href=../../../geo1937/geo02n01/geo0201r00010016.pdf
rather than keeping the entry as
... (1 Reply)
Discussion started by: kristinu
1 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
LEARN ABOUT CENTOS
cpan::changes::spec
CPAN::Changes::Spec(3) User Contributed Perl Documentation CPAN::Changes::Spec(3)
NAME
CPAN::Changes::Spec - Specification for CPAN Changes files
VERSION
version 0.01
SYNOPSIS
Revision history for perl module Foo::Bar
0.02 2009-07-17
- Added more foo() tests
0.01 2009-07-16
- Initial release
DESCRIPTION
This document describes version 0.1 of the specification for Changes files included in a CPAN distribution.
It is intended as a guide for module authors to encourage them to write meaningful changelogs as well as provide a programmatic interface
to reliably read and write Changes files.
DATA TYPES
Version
Versions should be formatted as described in "Version-Formats" in CPAN::Meta::Spec.
Date
A date/time in the format specified by <http://www.w3.org/TR/NOTE-datetime> aka W3CDTF.
STRUCTURE
Required Elements
In its simplest form, the only required elements are a version, a date and the noted changes. Blank lines between the "Version" line and
the first "Change" line are optional. Blank lines between "Change" lines are also optional.
<Version>(whitespace)<Date>
(whitespace)<Change>
"Change" lines have no specific format. Commonly, authors will use a dash "-" followed by a space to start a new change, and indent
subsequent lines for multi-line changes. Example
- Simple Change
- This is a very very very long
change line
Preamble
Any amount of text before the first "Version" line will be considered part of the preamble. Most existing distributions include something
along the lines of:
Revision history for perl module My::Module
Groups
Changelog entries may be grouped under headings. Heading lines begin with an opening square bracket ("["), and end with a matching square
bracket ("]"). When parsing group headings, leading and trailing whitespace inside the brackets should be discarded.
(whitespace)[Grouping Name]
(whitespace)<Change>
Since empty lines hold no special meaning, all "Change" lines will fall under the current group until a new group heading is found.
Example:
[ First Group ]
- First Change
- Second Change; in first group
[ Second Group ]
- First Change; in second group
EXAMPLES
Basic Example
0.01 2009-07-16
- Initial release
Example with a preamble
Revision history for perl module Foo::Bar
0.02 2009-07-17
- Added more foo() tests
0.01 2009-07-16
- Initial release
Example with groups
Revision history for perl module Foo::Bar
0.03 2009-07-18
[Important Security Information]
- This release fixes critical bug RT #1234
[Other Changes]
- Added some feature
0.02 2009-07-17
- Added more foo() tests
0.01 2009-07-16T19:20:30+01:00
- Initial release
SEE ALSO
o CPAN::Changes
o Test::CPAN::Changes
AUTHOR
Brian Cassidy <bricas@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2011-2012 by Brian Cassidy
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.16.3 2012-04-30 CPAN::Changes::Spec(3)