11-11-2011
There is an extra double quote in your command.
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
Can somebody explain to me how set up a basename and dirname variable to simplify this script. I currently have a 'infile' with the contents of FTTPDataPVC_ & BaaisDSLFeed. I need to add a basename and or dirname variable so that any additions can be made through the infile and not... (1 Reply)
Discussion started by: liketheshell
1 Replies
2. Shell Programming and Scripting
I need to get the full path of a file minus the hostname... anyone have an easy way to do this?
What I have is:
//ourhostname/ourfullpath/filename
What I need is:
/ourfullpath/filename
hostname evaluates to 'ourhostname'
dirname evaluates to '//ourhostname/ourfullpath'
basename... (2 Replies)
Discussion started by: tink
2 Replies
3. Shell Programming and Scripting
Hi guys, last cry for help for today. I appreciate the help so far.
ok so I have a program that dumps a path into my script as a variable ($1)
This path is an example
/home/xbmc/sab_downloads/video/tv/grey's anatomy/season 3
So in order to search thetvdb.com for a show, I need to extract... (6 Replies)
Discussion started by: tret
6 Replies
4. Shell Programming and Scripting
Hi all,
my problem:
(little extract from my bash-script)
I want to move each file (.mov) from one directory (and many Subdirectories) to another directory (only one);
after moving i want to create hardlinks to the old directories.
Thatīs no problem, but now:
source-directories... (4 Replies)
Discussion started by: tubian
4 Replies
5. Programming
Hi
I faced with some interesting behavior of basename and dirname functions from libgen.h: they changes the value of argument! Here is the declaration:
char *basename(char *);
char *dirname(char *);It makes some tiresome to use them... I am new to C and maybe I do something wrong, but to... (4 Replies)
Discussion started by: Sapfeer
4 Replies
6. UNIX for Dummies Questions & Answers
Hi, okay, the following command was given to me in a script, but it's not working and there's little to no help on dirname. What is wrong with the following line? I'm just trying to save the current directory to use later in subsequent scripts.
MYAPPDIR=$(dirname $(dirname $0))
Thanks. (2 Replies)
Discussion started by: rebazon
2 Replies
7. Shell Programming and Scripting
Hello,
I have a list of files generated like this:
find dir -type f > file_list
I want to get a list of just the unique directories. I can't create a temporary file. So the idea is to do a working equivalent to this:
cat file_list | dirname | uniq
But of course that doesn't... (4 Replies)
Discussion started by: brsett
4 Replies
LEARN ABOUT OSX
ppi::token::quote::double
PPI::Token::Quote::Double(3) User Contributed Perl Documentation PPI::Token::Quote::Double(3)
NAME
PPI::Token::Quote::Double - A standard "double quote" token
INHERITANCE
PPI::Token::Quote::Double
isa PPI::Token::Quote
isa PPI::Token
isa PPI::Element
DESCRIPTION
A "PPI::Token::Quote::Double" object represents a double-quoted interpolating string.
The string is treated as a single entity, PPI will not try to understand what is in the string during the parsing process.
METHODS
There are several methods available for "PPI::Token::Quote::Double", beyond those provided by the parent PPI::Token::Quote, PPI::Token and
PPI::Element classes.
Got any ideas for methods? Submit a report to rt.cpan.org!
interpolations
The interpolations method checks to see if the double quote actually contains any interpolated variables.
Returns true if the string contains interpolations, or false if not.
simplify
For various reasons, some people find themselves compelled to have their code in the simplest form possible.
The "simply" method will turn a simple double-quoted string into the equivalent single-quoted string.
If the double can be simplified, it will be modified in place and returned as a convenience, or returns false if the string cannot be
simplified.
SUPPORT
See the support section in the main module.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
Copyright 2001 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.16.2 2011-02-25 PPI::Token::Quote::Double(3)