05-07-2019
Difficult in what way? Did you try RudiC's suggestion? Did it work?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi, i want to mget a directory.
how to specify the flag that i dont want the system to prompt me?
thanks (2 Replies)
Discussion started by: yls177
2 Replies
2. Shell Programming and Scripting
I have a script that is working:
#!/bin/bash
sftp user@domain.com <<EOF
cd somedir
mget *.csv
quit
EOF
but on a crontab I want to only pull newer files, so I want to do something like:
while read ls current dir local file != true do
mget that new file
but I'm not sure the syntax... (2 Replies)
Discussion started by: unclecameron
2 Replies
3. Shell Programming and Scripting
I am a newbie and would like some help with the following -
Trying to search fileA for a string similar to -
AS11000022010 30.4 31.7 43.7 53.8 60.5 71.1 75.2 74.7 66.9 56.6 42.7 32.5 53.3
I then want to replace that string with a string from fileB - ... (5 Replies)
Discussion started by: ncwxpanther
5 Replies
4. AIX
Hi,
below are the commands I use to get many gif files from /usr/local/images directory, the command just getting stuck at mget, nothing is moving
cd /usr/local/images
binary
mget *.gif:wall:
close
quit (3 Replies)
Discussion started by: dateez
3 Replies
5. UNIX for Dummies Questions & Answers
Hi I'm trying to get all files from a directory with a script. So i'm gone paste my script here:
cd /var/www/match_demos/speedgaming/
lftp -u Gudfaren,xxxxx ftp.speedgaming.pro -e cd 89.221.243.11_27500 -e mget *.dem
exit
when i run that i get:
"File name missed. Try `help mget' for more... (2 Replies)
Discussion started by: vYN
2 Replies
6. Shell Programming and Scripting
Hi ,
I have been trying to write a perl script to do this job. But i am not able to achieve the desired result. Below is my code.
my $current_value=12345;
my @users=("bob","ben","tom","harry");
open DBLIST,"<","/var/tmp/DBinfo";
my @input = <DBLIST>;
foreach (@users)
{
my... (11 Replies)
Discussion started by: chidori
11 Replies
7. Shell Programming and Scripting
I have two files:
file 1:
hello.com neo.com,japan.com,example.com
news.net xyz.com, telecom.net, highlands.net, software.com
example2.com earth.net, abc.gov.uk
file 2:
neo.com
example.com
abc.gov.uk
file 2 are the search keys to search in file 1 if any of the search... (7 Replies)
Discussion started by: csim_mohan
7 Replies
8. UNIX for Dummies Questions & Answers
I'm trying to find a way to search a range of similar words in a file. I tried using sed but can't get it right:sed 's/\(ca01\)*//'It only removes "ca01" but leaves the rest of the word. I still want the rest of the information on the lines just not these specific words listed below. Any... (3 Replies)
Discussion started by: seekryts15
3 Replies
9. Shell Programming and Scripting
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Discussion started by: An0mander
2 Replies
10. Shell Programming and Scripting
hi Team,
I am connecting from one (A) linux server to another(C)/any linux server by sftp
on A linux server:
sftp userid@C
password:
mget is Not working fine
I am using mget to pull the files. it shows mget as invalid command.
But from (B) Linux server to (C) /to Any server Linux... (15 Replies)
Discussion started by: johnsnow
15 Replies
LEARN ABOUT DEBIAN
xml::namespacefactory
NamespaceFactory(3pm) User Contributed Perl Documentation NamespaceFactory(3pm)
NAME
XML::NamespaceFactory - Simple factory objects for SAX namespaced names
SYNOPSIS
use XML::NamespaceFactory;
my $FOO = XML::NamespaceFactory->new('http://foo.org/ns/');
print $FOO->title; # {http://foo.org/ns/}title
print $FOO->{'bar.baz-toto'}; # {http://foo.org/ns/}bar.baz-toto
ABSTRACT
A number of accessors for namespaces in SAX use the JClark notation, {namespace}local-name. Those are a bit painful to type repeatedly, and
somewhat error-prone as hash keys. This module makes life easier.
DESCRIPTION
Simply create a new XML::NamespaceFactory object with the namespace you wish to use as its single parameter. If you wish to use the empty
namespace, simply pass in an empty string (but undef will not do).
Then, when you want to get a JClark name, call a method on that object the name of which is the local name you wish to have. It'll return
the JClark notation for that local name in your namespace.
Unfortunately, some local names legal in XML are not legal in Perl. To circumvent this, you can use the hash notation in which you access a
key on the object the name of which is the local name you wish to have. This will work just as the method call name but will accept more
characters. Note that it does not check that the name you ask for is a valid XML name. This form is more general but slower.
If this is not clear, hopefully the SYNOPSIS should help :)
MAINTAINER
Chris Prather <chris@prather.org>
AUTHOR
Robin Berjon based on a suggestion by Ken MacLeod.
COPYRIGHT AND LICENSE
Copyright 2003-2010 by Robin Berjon
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-04-13 NamespaceFactory(3pm)