05-14-2008
Sorry Franklin, that didn't work at all .
10 More Discussions You Might Find Interesting
1. OS X (Apple)
ive looked and couldnt find an answer...
can someone tell me how i can replace spaces and characters with an "_" on multiple folders?
thanx muchly. (1 Reply)
Discussion started by: RahJiggah
1 Replies
2. Shell Programming and Scripting
Dear forum,
I need to rename a bunch of files according to their first line, in CamelCase. I am having problems with the conversion from "normal string title" or "NST syndrome" to, respectively, "NormalString" or "NSTSyndrome".
First character of a word to uppercase and drop spaces.
I was... (1 Reply)
Discussion started by: vlf
1 Replies
3. Shell Programming and Scripting
For lists in sed, to say what to replace, is this correct:
I am hoping that this would recognise that either a "." is present, or that the substitution happens at the end of the line.
For files with extensions , my script works perfectly.
My problem is, files without extentions, i.e. . ... (1 Reply)
Discussion started by: busillis
1 Replies
4. Shell Programming and Scripting
Sun Solaris Unix Question
Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
Discussion started by: 2reperry
2 Replies
5. Shell Programming and Scripting
Hi
I am dealing with the following string:
Date: Thur, 13 March 2011 01:01:10 +0000
I asked for help in another topic that converted a similar string:
Date: Thur, 13 March 2011 9:50 AM
To a 24 hr standard. The problem is that it comes out as:
Date: Thur, 13 March 2011 9:50:00 +0000... (4 Replies)
Discussion started by: duonut
4 Replies
6. UNIX for Dummies Questions & Answers
last night our server was hit with an attack that infected every php file on the server and inserted the following code
/*god_mode_on*/eval(base64_decode with a ton of other characters after.
As it infected every php file i have been trying to clean it using a
sed command to go through... (2 Replies)
Discussion started by: derrickyoung95
2 Replies
7. Shell Programming and Scripting
how can i make find/sed to include directory names with spaces
the command is like this
for i in `find wp-content/themes -type f -print0 | xargs -0 grep -l
-iE 'e'`;do sed -i -e 's/word1/word2/gI' "$i";done
but it skips one directory names with spaces
sed: can't read ./Nova: No such... (5 Replies)
Discussion started by: vanessafan99
5 Replies
8. Shell Programming and Scripting
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
Discussion started by: dsravanam
1 Replies
9. UNIX for Beginners Questions & Answers
Dear Users,
Appreciate your help if you could help me with splitting a large file > 1 million lines with sed or awk. below is the text in the file
input file.txt
scaffold1 928 929 C/T +
scaffold1 942 943 G/C +
scaffold1 959 960 C/T +... (6 Replies)
Discussion started by: kapr0001
6 Replies
10. What is on Your Mind?
See attached video for a demo on how to move back and forth from the desktop view to the mobile view.
Currently this only works for the home page, but I will work on some new PHP code in the future to make this work with the page we are currently on.
Edit: The issue with making every page ... (2 Replies)
Discussion started by: Neo
2 Replies
LEARN ABOUT CENTOS
test::without::module
Test::Without::Module(3) User Contributed Perl Documentation Test::Without::Module(3)
NAME
Test::Without::Module - Test fallback behaviour in absence of modules
SYNOPSIS
use Test::Without::Module qw( My::Module );
# Now, loading of My::Module fails :
eval { require My::Module; };
warn $@ if $@;
# Now it works again
eval q{ no Test::Without::Module qw( My::Module ) };
eval { require My::Module; };
print "Found My::Module" unless $@;
DESCRIPTION
This module allows you to deliberately hide modules from a program even though they are installed. This is mostly useful for testing
modules that have a fallback when a certain dependency module is not installed.
EXPORT
None. All magic is done via "use Test::Without::Module LIST" and "no Test::Without::Module LIST".
Test::Without::Module::get_forbidden_list
This function returns a reference to a copy of the current hash of forbidden modules or an empty hash if none are currently forbidden. This
is convenient if you are testing and/or debugging this module.
ONE LINER
A neat trick for using this module from the command line was mentioned to me by NUFFIN and by Jerrad Pierce:
perl -MTest::Without::Module=Some::Module -w -Iblib/lib t/SomeModule.t
That way, you can easily see how your module or test file behaves when a certain module is unavailable.
BUGS
o There is no lexical scoping
CREDITS
Much improvement must be thanked to Aristotle from PerlMonks, he pointed me to a much less convoluted way to fake a module at
<http://www.perlmonks.org/index.pl?node=192635>.
I also discussed with him an even more elegant way of overriding CORE::GLOBAL::require, but the parsing of the overridden subroutine didn't
work out the way I wanted it - CORE::require didn't recognize barewords as such anymore.
NUFFIN and Jerrad Pierce pointed out the convenient use from the command line to interactively watch the behaviour of the test suite and
module in absence of a module.
AUTHOR
Copyright (c) 2003-2009 Max Maischein, <corion@cpan.org>
LICENSE
This module is released under the same terms as Perl itself.
SEE ALSO
Devel::Hide, Acme::Intraweb, PAR, perlfunc
perl v5.16.3 2009-01-18 Test::Without::Module(3)