Skip to main content
clean up grammar; improve title; remove unneeded "linux" tag (this q is not Linux-specific)
Source Link
strugee
  • 15.4k
  • 18
  • 81
  • 121

Getting file name from Downloading files over ssh based on a lsitlist of filenames

So here is what i doI have done already,:

iI have a file called abc.txt which contains list of files.Am I am using abc.txt to move those files to a folder  , tar that folder and finally iI download the tar to my local pcPC from my server(linux), which is running GNU/Linux.

it goes likeHere are the steps in list form:

1.abc.txt
2.abc.txt(files) -> folder
3.Folder -> folder.tar
4.folder.tar -> local pc.

Now i need to change this like below,

  1. abc.txt
  2. abc.txt (listed files) -> folder
  3. Folder -> folder.tar
  4. folder.tar -> local PC.

ifIf abc.txt contains 2 files namely, for example:

example1.css
example2.css

iI need to download those files from abc.txt seperatelyseparately and directly to the local pc ,PC.

sinceSince ftp or sftp need the file name to download it, how can iI read that from from abc.txt.

Please help.?

Getting file name from a lsit

So here is what i do already,

i have a abc.txt which contains list of files.Am using abc.txt to move those files to a folder  , tar that folder and finally i download the tar to local pc from server(linux).

it goes like

1.abc.txt
2.abc.txt(files) -> folder
3.Folder -> folder.tar
4.folder.tar -> local pc.

Now i need to change this like below,

if abc.txt contains 2 files namely,

example1.css
example2.css

i need to download those files from abc.txt seperately and directly to local pc ,

since ftp or sftp need the file name to download it how can i read that from abc.txt.

Please help.

Downloading files over ssh based on a list of filenames

So here is what I have done already:

I have a file called abc.txt which contains list of files. I am using abc.txt to move those files to a folder, tar that folder and finally I download the tar to my local PC from my server, which is running GNU/Linux.

Here are the steps in list form:

  1. abc.txt
  2. abc.txt (listed files) -> folder
  3. Folder -> folder.tar
  4. folder.tar -> local PC.

If abc.txt contains 2 files, for example:

example1.css
example2.css

I need to download those files from abc.txt separately and directly to the local PC.

Since ftp or sftp need the file name to download it, how can I read that from abc.txt?

Source Link
Mano
  • 299
  • 2
  • 6
  • 13

Getting file name from a lsit

So here is what i do already,

i have a abc.txt which contains list of files.Am using abc.txt to move those files to a folder , tar that folder and finally i download the tar to local pc from server(linux).

it goes like

1.abc.txt
2.abc.txt(files) -> folder
3.Folder -> folder.tar
4.folder.tar -> local pc.

Now i need to change this like below,

if abc.txt contains 2 files namely,

example1.css
example2.css

i need to download those files from abc.txt seperately and directly to local pc ,

since ftp or sftp need the file name to download it how can i read that from abc.txt.

Please help.