How to export multiple files to database using shell script?

294 views Asked by At

Hi everyone I have some files to be copied to database. but for every time I should write "cp .csv'/tmp" so suggest me command in shell script so that I can copy all the files at once. Thank you

1

There are 1 answers

3
AudioBubble On
#!/bin/sh

file=/pathtoyour/textfile.txt

while read line
do
    cp $line /tmp/
done < $file