how to use scp with metacharacter


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to use scp with metacharacter
# 1  
Old 10-15-2009
how to use scp with metacharacter

hi i have a file name : file^name
that i need to scp to different machine without changing the name

scp file^name user@machine/file^name

its throwing the error
cant use ^name(Something like this)

any solution i already tried differnt combinations like
"user@machine/file^name"
user@machine/"file^name"
user@machine/file\^name

but no one is working

SmilieSmilieSmilieSmilieSmilieSmilie
# 2  
Old 10-15-2009
How about
Code:
scp file^name user@machine:/file^name

The colon is mandatory.
# 3  
Old 10-15-2009
Quote:
Originally Posted by pludi
How about
Code:
scp file^name user@machine:/file^name

The colon is mandatory.
i used the colon also actually i forgot colon in my question
but the error is still with the
^name(some thing like this)
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Find command with Metacharacter (*) Should match exact filename

Hi, Below is list of files in my directory. -rw-rw-r--. 1 Roots Roots 0 Dec 26 06:58 12345_kms_report.csv -rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59 12346_kms_report.csv -rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59 12347_kms_report.csv -rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59... (2 Replies)
Discussion started by: Balraj
2 Replies

2. UNIX for Dummies Questions & Answers

How to use scp?

How to copy multiple directories using single command on solaris 10 from server A to server B. I tried scp but its working only one directory at atime How to acheive this with simple and short solution????? (6 Replies)
Discussion started by: buzzme
6 Replies

3. Homework & Coursework Questions

metacharacter

how to list all filenames consisting of two lower case letters using metacharacters? (1 Reply)
Discussion started by: rathankumar
1 Replies

4. Shell Programming and Scripting

How to remove metacharacter while using wget command

Hi All, While using below command I am getting some unusual character in Release.txt file.How could I remove or stop them to go into Release.txt file wget -q http://m0010v.prod.wspan.com/nggfmonatl/Default.aspx cat Default.aspx|egrep -in "EFS|HOTFIX" | awk -F/ '{print $(NF-1)}'|cut -d... (1 Reply)
Discussion started by: anuragpgtgerman
1 Replies

5. Shell Programming and Scripting

grep'ing a variable that contains a metacharacter ($) with a while loop

This is driving me crazy, and I'm hoping someone can help me out with this. I'm trying to do a simple while loop to go through a log file. I'm pulling out all of the lines with a specific log line, getting an ID from that line, and once I have a list of IDs I want to loop back through the log and... (2 Replies)
Discussion started by: DeCoTwc
2 Replies

6. Shell Programming and Scripting

read metacharacter [ and ]

i have command sed sed '/^*$/ d' which don't recognize the how can i solve it? (2 Replies)
Discussion started by: kamel.seg
2 Replies

7. Shell Programming and Scripting

What is scp-ed over?

Hi all, i have a directory in server A. the directory path is /home/kevin. I need to scp the directory to another server B. i would like to ask, when i do a scp of the /home/kevin , i can expect all the files from A to go B. However, how about the hidden files? for example the ssh keys in the... (4 Replies)
Discussion started by: new2ss
4 Replies

8. UNIX for Advanced & Expert Users

Scp

I am trying to transfer a 10g files using scp, but I am getting timeout errors is there anywhere that I can modify a config file or something to increase the time. (4 Replies)
Discussion started by: rbizzell
4 Replies

9. Shell Programming and Scripting

Null metacharacter?

Ok, here's what I'm trying to do: I'm trying to formulate an <expression> that will match any of the following: *.jpeg *.jpg *.JPEG *.JPG for a 'find <directory> -name <expression> ' command. I'd like to do *., but don't know what the null character is, or even if it exists. Any... (6 Replies)
Discussion started by: kidcharles
6 Replies
Login or Register to Ask a Question