Sponsored Content
The Lounge What is on Your Mind? Where Is Your Favorite Continent? Post 302126217 by Neo on Tuesday 10th of July 2007 04:12:12 PM
Old 07-10-2007
Quote:
Originally Posted by blowtorch
BTW, when you say "enjoy life", I assume that you mean a vacation or something. Not that I would mind staying and working in Europe though. Smilie
Enjoy life, in this poll context, is individually relative - purely subjective on a personal basis.

There is no spoon....
 

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

What's your favorite Xscreensaver?

Out of the 100s of screensavers in xscreensaver, what is your favorite? I think mine is definitely juggle. I can sit and watch that juggler forever. I haven't looked into the code, but it must be amazingly complex to deal with all that's going on. From the random throwing pattern, to the arm... (0 Replies)
Discussion started by: tjlst15
0 Replies

2. What is on Your Mind?

Favorite UNIX-like OS for laptop

First, a hello to all of you out there. Quick introduction since I'm new here before I ask my question. I'm a Computer Science major who has an unnatural love of operating systems. :) In fact, I'm looking on building a new computer that will have enough RAM to let me have some fun with several VMs... (7 Replies)
Discussion started by: ViperChief
7 Replies

3. Shell Programming and Scripting

CPAN Configuration: Hung at "Select your continent"

Going through the CPAN configuration on a Solaris systems and I keep getting stuck at: Select your continent (or several nearby continents) ? It offers no choices to select from. I have tried using the default PERL installing with Solaris, and installing PERL packages from Blastwave. I... (0 Replies)
Discussion started by: bisbell
0 Replies

4. UNIX and Linux Applications

Favorite Firefox tweaks

Can everyone please list there favorite firefox tweaks? These are my favorite tweaks. Config.trim_on_minimize true Allow Windows to swap out memory when the program is minimized. false Prevent Windows from swapping out memory when the program is minimized. (Default) Enter... (0 Replies)
Discussion started by: cokedude
0 Replies

5. Web Development

What is Your Favorite Web Browser?

OK, please vote on your favorite web browser and comment why! Only currently supported browers please! Thanks. PS: I am a big FireFox fan. FireFox add-ons rock! (61 Replies)
Discussion started by: Neo
61 Replies

6. What is on Your Mind?

What is your favorite TED talk?

The TED talk (Technology Entertainment Design) non-profit initiative started many years ago as a platform for sharing knowledge to a wide audience. Since 2006 the talks are available online under a Creative Commons license. There are now 1000+ TED talks from a wide range of subjects and I wanted to... (3 Replies)
Discussion started by: figaro
3 Replies

7. UNIX for Dummies Questions & Answers

What is your favorite terminal?

And how does one executes a command there? Mine is: lxterminal -e ./script.sh (23 Replies)
Discussion started by: sea
23 Replies
SHELL-QUOTE(1p) 					User Contributed Perl Documentation					   SHELL-QUOTE(1p)

NAME
shell-quote - quote arguments for safe use, unmodified in a shell command SYNOPSIS
shell-quote [switch]... arg... DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands or files with embedded white space or shell globbing characters safely. Here are a few examples. EXAMPLES
ssh preserving args When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and passes them to "$SHELL -c". This doesn't work as intended: ssh host touch 'hi there' # fails It creates 2 files, hi and there. Instead, do this: cmd=`shell-quote touch 'hi there'` ssh host "$cmd" This gives you just 1 file, hi there. process find output It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote: eval set -- `find -type f -print0 | xargs -0 shell-quote --` debug shell scripts shell-quote is better than echo for debugging shell scripts. debug() { [ -z "$debug" ] || shell-quote "debug:" "$@" } With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can. save a command for later shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are things the user can't pass through), you can do something like this: user_switches= while [ $# != 0 ] do case x$1 in x--pass-through) [ $# -gt 1 ] || die "need an argument for $1" user_switches="$user_switches "`shell-quote -- "$2"` shift;; # process other switches esac shift done # later eval "shell-quote some-command $user_switches my args" OPTIONS
--debug Turn debugging on. --help Show the usage message and die. --version Show the version number and exit. AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions. AUTHOR
Roderick Schertler <roderick@argon.org> perl v5.8.4 2005-05-03 SHELL-QUOTE(1p)
All times are GMT -4. The time now is 08:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy