Okay so I want to know how I would go about doing this, using grep to locate .txt files named "cocacola1", "cocacola2", "cocacola3" & then copying them to another directory. So searching for files named "cocacola" &/even if it contains other characters within the file name to then copy them to another directory/location.
Cygwin or Gnuwin - Find .txt files named* copy & paste to specific directory
348 Views Asked by Thomas Bishop At
1
There are 1 best solutions below
Related Questions in FIND
- Multiple commands with find and xargs, also accounting for special characters
- Find all files contained into directory named
- How to find strings between two specified texts
- Cakephp Find all WHERE in two categories
- how to ignore directory in find by full path
- Using Bash, how do I feed a file list into a 'ln -s' without using 'find'?
- find a string in text file and create bytes from The rest of the file c#
- How do I find any string Perl?
- Where is the cupsctl terminal executable on MacOSX?
- issue Find command Linux
- UnderscoreJS : filter part of string
- find and remove all closed files that are not modified in some-time
- Check if item exists in XML with AS3
- How to perform this query in mongoose?
- UNIX Command Line - How to "find" directories using embedded wildcard
Related Questions in CYGWIN
- How to add directories to Cygwin gcc default search path
- Cygwin failing to open .git/config
- What is the meaning of environment variable !::=::\
- Error in Dired sorting on Windows (with Cygwin Emacs)
- Eclipse not recognizing CygWin gcc
- Getting gcloud to work in Cygwin Windows
- Facing issue while listing file contents in cygwin
- Error while installing HBase on windows
- How do i change the modification/creation date of a folder
- Relationship between gcc, g++, cygwin, and wingw?
- Linking error with LAPACK under cygwin
- Error loading D:\cygdrive\d\path\to\my\file.pdf
- Unable to connect to SSH after generated public key and private key
- wget not displaying all website data
- How to run pyinstaller correctly on cygwin?
Related Questions in CP
- Bahs - How To Copy Files From A Directory To Multiple Directories?
- C implementation of cp
- How do I get the full path of a copied file?
- Cygwin or Gnuwin - Find .txt files named* copy & paste to specific directory
- Why I get the "omitting directory" error using globbing in cp command?
- Using gzip to compress files to transfer with aws command
- Recursively copy contents of directory to all target directories
- UNIX/ copy directory to new directory
- use cp to copy and change name of a file reading from a filelist.file
- recursively move, rename and zip files
- SEEK_HOLE always point to the end of file
- how to use cp to copy a file to to a file named the same as one directory name in a directory?
- How to escape characters like colon : and comma , in for loop?
- Intro to Linux cli; output redirection
- `cp` vs `rsync` vs something faster
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can just use unix
find. Assuming the files you're searching for are in 'source' and you want to copy to 'destination':I put the wildcard '*' before and after cocacola since you said other characters might exist in the file name.