I have a text file which has list of file names, I want to search these file names in a folder which has thousands of files and move the matching files to different location on linux.
Kann mir jemand mit dem Befehl dazu helfen.Befehl zum Suchen nach Dateien in einem Ordner und Verschieben der Dateien an einen anderen Speicherort
Unten ist der Code, ich bin mit
#!/bin/bash
file="/home/BILEKJ/Reprocess/data.txt"
while IFS= read -r line
do
mv "/home/BILEKJ/Reprocess/EDI855/$line" "/home/BILEKJ/Reprocess/Final855" >/dev/null 2>&1
done <"$file"
wie "groß" ist, dass * Liste von Dateinamen *? – RomanPerekhrest
Die Liste hat etwa 4000 Dateinamen – user2231076