Hello everyone,
I'm a unix noob. I have a powerbook running mac os x 10.4 and for one of my classes I need to install the latest version of php (5.0.5). I'm following the instructions at http://developer.apple.com/internet/opensource/php.html to install but I've run into a problem.
The... (2 Replies)
Hi,
I have a file with the following contents
# Lines that start with a # are comments.
#
# Calling TOAD like this will perform a comparison from command line :
#
# "C:\Program Files\Quest Software\Toad for Oracle 9.6\toad.exe" -c... (2 Replies)
Hi,
I am new to this world of shell programming. I am facing a problem that is :
I have directory which has many sub directories at different depth. say
A/B/C/files
A/B/files
A/B/C/D/files
In this directory structure there exists a file called ".project" in some of the sub... (2 Replies)
Hi
I have two path as follows
system/console/bin/code/sample/testfile.txt
system/console/bin/database/files/new/dbfile.txt
I need the output as
code/sample in first case
database/files/new in second case
That is I am omitting system/console/bin and the filename(s) in both... (2 Replies)
I know this is probably simple, but the brain cells that originally stored my shell scripting classes from 10+ years ago have long since been drowned in beer.
I need to create a string (to append to a file) containing a path derived from the current path. Basically, I want to append "/something"... (3 Replies)
This is the way
sed -i 's/home/$USER/.config/hello_there//g' /home/$USER/.gnomerc
But, as far as I saw you cannot add any "/" in the string you want to remove....
So, what should I do in order to remove this path (which contains "/") ?:confused: (7 Replies)
I have an issue while determing whether given string is unix path or not
There is a text file which is normally a report in that at some place
we have unix path as shown below
/opt/smart/dev/eur/sources/sqr and
not unix path as shown below
Threshold Year/Month/Ref/ActLine/OUC
Is there... (3 Replies)
Hi all,
i've a string
$DIR=/u/user/NDE/TEST_LOGS/20110622_000005_TEST_11_HD_120/HD/TEST_11_HD_120/hd-12
i need to extract string from 2011.... i.e i need it as 20110622_000005_TEST_11_HD_120 as matched string, and in turn i need to split values 20110622_000005_TEST_11_HD_120 into two.... (6 Replies)
Hi All,
I am trying to find a particular string in a path, but able to do so.
I tried through grep command but its taking so long time which is not appropriate.
e.g:
Path : /oct/oracle/apps/OMEC/appl/xxaterp/1.0/reports/US/
Suppose in this path we have 10 .rdf file and I want to... (2 Replies)
Discussion started by: Vikash163
2 Replies
LEARN ABOUT MOJAVE
cpanplus::internals::utils5.18
CPANPLUS::Internals::Utils(3pm) Perl Programmers Reference Guide CPANPLUS::Internals::Utils(3pm)NAME
CPANPLUS::Internals::Utils - convenience functions for CPANPLUS
SYNOPSIS
my $bool = $cb->_mkdir( dir => 'blah' );
my $bool = $cb->_chdir( dir => 'blah' );
my $bool = $cb->_rmdir( dir => 'blah' );
my $bool = $cb->_move( from => '/some/file', to => '/other/file' );
my $bool = $cb->_move( from => '/some/dir', to => '/other/dir' );
my $cont = $cb->_get_file_contents( file => '/path/to/file' );
my $version = $cb->_perl_version( perl => $^X );
DESCRIPTION
"CPANPLUS::Internals::Utils" holds a few convenience functions for CPANPLUS libraries.
METHODS
$cb->_mkdir( dir => '/some/dir' )
"_mkdir" creates a full path to a directory.
Returns true on success, false on failure.
$cb->_chdir( dir => '/some/dir' )
"_chdir" changes directory to a dir.
Returns true on success, false on failure.
$cb->_rmdir( dir => '/some/dir' );
Removes a directory completely, even if it is non-empty.
Returns true on success, false on failure.
$cb->_perl_version ( perl => 'some/perl/binary' );
"_perl_version" returns the version of a certain perl binary. It does this by actually running a command.
Returns the perl version on success and false on failure.
$cb->_version_to_number( version => $version );
Returns a proper module version, or '0.0' if none was available.
$cb->_whoami
Returns the name of the subroutine you're currently in.
_get_file_contents( file => $file );
Returns the contents of a file
$cb->_move( from => $file|$dir, to => $target );
Moves a file or directory to the target.
Returns true on success, false on failure.
$cb->_copy( from => $file|$dir, to => $target );
Moves a file or directory to the target.
Returns true on success, false on failure.
$cb->_mode_plus_w( file => '/path/to/file' );
Sets the +w bit for the file.
Returns true on success, false on failure.
$uri = $cb->_host_to_uri( scheme => SCHEME, host => HOST, path => PATH );
Turns a CPANPLUS::Config style "host" entry into an URI string.
Returns the uri on success, and false on failure
$cb->_vcmp( VERSION, VERSION );
Normalizes the versions passed and does a '<=>' on them, returning the result.
$cb->_home_dir
Returns the user's homedir, or "cwd" if it could not be found
$path = $cb->_safe_path( path => $path );
Returns a path that's safe to us on Win32 and VMS.
Only cleans up the path on Win32 if the path exists.
On VMS, it encodes dots to _ using "VMS::Filespec::vmsify"
($pkg, $version, $ext) = $cb->_split_package_string( package => PACKAGE_STRING );
Splits the name of a CPAN package string up into its package, version and extension parts.
For example, "Foo-Bar-1.2.tar.gz" would return the following parts:
Package: Foo-Bar
Version: 1.2
Extension: tar.gz
perl v5.18.2 2014-01-06 CPANPLUS::Internals::Utils(3pm)