I have a directory that I want to copy from a remote server to my desktop. In this directory there is a 40Gb subdirectory that I want to exclude from copying. Until now I used the scp command but there is no -exclude option or anything similar in the man page. By looking online I found a bunch of different
Tag: copy
Copy file only after all directories are copied
I have a folder A. It contains another folders data and opt, which contains many folders and files. And a complete.txt file, which denotes all files in data and opt are correct. I need to copy folder A completely. But the complete.txt file should copy only after all other files and folders are copied. Is there any linux command to
How to achieve a mirror copy in Linux?
I want to make two directories synchronized. I know there is a robocopy /MIR command in Windows that can achieve this. Ex: When there is a file updated or deleted, the backup directory can keep synchronization. I have tried in Linux through the rsync command like this: but when I delete a file under /usr/test and then run this command,
Linux: Extract a specified number of lines from text file based on match
I have a text file with multiple datasets. I have written a code that searches for certain values (top left 4-letter code) in a text file but, now I need to be able to have the script copy out data from a set number of lines AFTER the match (“PHHI, etc”) is found. The data values are all formatted the