Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1770  / 2 Years ago, mon, october 31, 2022, 3:16:04

I have a strange situation that I need to solve. In a server I have several files stored, which are named:



Area01 Area01.hst Area01.rst ... Area02 Area02.hst Area02.rst ... etc.



With some other files in there too. In order to retrieve those files, I would generally use



scp server:~/Area* location/in/my/computer.



The problem is, what if I only need to retrieve the files AreaXX (without extension)?



The only solution I can figure out is assigning an extension to those files and then retrieve them using



scp server:~/Area*.newextension location/in/my/computer



Any other ideas?



Thanks in advance.


More From » ssh

 Answers
7

What about scp server:~/Area?? /location/to/your/computer



This should find any instance of "Area" followed by any two characters "??"


[#28008] Wednesday, November 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
truwom

Total Points: 101
Total Questions: 99
Total Answers: 100

Location: Ivory Coast
Member since Tue, Sep 15, 2020
4 Years ago
truwom questions
;