<b>IT Wire:</b> "One thing I like about open hardware and software is that instead of making a few people very rich it can make a lot of people a little bit richer."
Oracle Database 11gR2 offers several new Automatic Storage Management features for managing both Oracle database files as well as files stored within its new ASM Clustered File System. This article illustrates how to upgrade an Oracle database quickly and efficiently from version 11gR1 to 11gR2 and then migrate all of its database files so they’re resident within ASM-managed storage.
With just one vendor to call and one bill to pay, Charlie Schluting argues that managing a WLAN with central controllers is the way to go, and explains how that works with Cisco gear.
<b>Serious Eats:</b> "Carve Steve's head out of a block of mozzerella, add some black pepper for hair, stick on a pair of glasses, and you've got the perfect centerpiece for your iPad launch party."
<b>Fast Company:</b> "Groklaw is an attempt to get geeks and lawyers together, so they can help each other understand the other's world, with the goal of ideally getting better court results based on technical realities"
Looking for a web application stack? Find out all the important distinctions and trade-offs among the available solutions from the points-of-view of a few developer types.
<b>The H Open:</b> "Mandriva began life in July 1998 as Linux Mandrake in France in Gael Duval's bedroom after he ported a KDE 1.0 desktop onto Red Hat Linux 5.1, uploaded the result onto two FTP servers, went away on holiday, and came back to find that he had a popular and successful Linux distribution on his hands."
<b>Linux Magazine:</b> "When other mailers aren’t doing the trick, it’s time to break out Claws: An extremely configurable and extensible GUI mailer that gives you all the control you’d ever want over your mail without sacrificing ease of use."
Confused by all the options when it comes to choosing a small business printer? This handy guide provides everything you need to buy a color laser printer that suits both your needs and your budget.
<b>Linux Journal: </b>"In preparation for this year's annual motorcycle trip, I purchased an Acer Aspire One Intel Atom N450 netbook. What follows are a few notes and suggestions for installing Ubuntu Netbook Remix (UNR) 10.04 on this model."
This article reviews two popular JAX-RS frameworks, Jersey and Apache CXF, and provides some basic examples that illustrate how to build, deploy, and execute RESTful web services.
I have a bash shell script that loops through all child directories (but not files) of a certain directory. The problem is that some of the directory names contain spaces.
Here are the contents of my test directory:
$ls -F test
Baltimore/ Cherry Hill/ Edison/ New York City/ Philadelphia/ cities.txt
And the code that loops through the directories:
for f in `find test/* -type d`; do
echo $f
done
Here's the output:
test/Baltimore
test/Cherry
Hill
test/Edison
test/New
York
City
test/Philadelphia
Cherry Hill and New York City are treated as 2 or 3 separate entries.
I tried quoting the filenames, like so:
for f in `find test/* -type d | sed -e 's/^/\"/' | sed -e 's/$/\"/'`; do
echo $f
done
but to no avail.
There's got to be a simple way to do this. Any ideas?
The answers below are great. But to make this more complicated - I don't always want to use the directories listed in my test directory. Sometimes I want to pass in the directory names as command-line parameters instead.
I took Charles' suggestion of setting the IFS and came up with the following:
dirlist="${@}"
(
[[ -z "$dirlist" ]] && dirlist=`find test -mindepth 1 -type d` && IFS=$'\n'
for d in $dirlist; do
echo $d
done
)
and this works just fine unless there are spaces in the command line arguments (even if those arguments are quoted). For example, calling the script like this: test.sh "Cherry Hill" "New York City" produces the following output:
Cherry
Hill
New
York
City
Again, I know there must be a way to do this - I just don't know what it is...
This article reviews two popular JAX-RS frameworks, Jersey and Apache CXF, and provides some basic examples that illustrate how to build, deploy, and execute RESTful web services.
<b>Webreference:</b> "Following up on "Implementing One-way Encryption in PHP," my previous tutorial about using one-way encryption to build a secure online diary application, this article explores using PHP encryption for login authentication."
<b>Cyber Cynic:</b> "There's nothing like starting a technical conference, like Novell's BrainShare, off with a bang. Or, in this case telling Elliot Associates' unwelcome offer of not quite $2-billion for the company that Novell has no interest in selling out, not for that little anyway."
Check out this free service that lets you build Web forms for your small business ecommerce site. Plus, how you use Google Alerts and a streaming audio tool.