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
352 views Asked by Thomas Bishop At
1
There are 1 answers
Related Questions in FIND
- How can I replace a word in SQL but only if it is the last word in the string for a scalar-valued function?
- Find, Replace and adjust image in PDF's using python
- Move Sublime Text find panel
- Batch - How to find strings from the first file in the second file and print which strings from the first file don't exist in the second one?
- index.js:1 Warning: unstable_flushDiscreteUpdates: Cannot flush updates when React is already rendering
- Check if product bundle has bundle-upsells ( optional items ) or simple bundled items
- Find and Replace Word Doc from Excel Tables
- VBA issue with Find function
- Add quotation to start and end of each line in Xcode
- Remove the digit(s), the comma and the space at the left part of the line
- VS Code : find next occurrence shortcut
- Tar: Cannot stat: No such file or directory
- Looping over Hyperlink cells
- How to enable Google Play Games on PC option for published google play games
- Button to find elements in an Array
Related Questions in CYGWIN
- "Config.guess failed to determine the host type" when trying build binutils-2.7 with Cygwin
- Installing the C compiler for LC3
- On cygwin I get errors containing -lintl and -liconv when running gcc
- Compile latest openssl with mingw64 within cygwin on Windows 11 vs install prefix path definition
- jq: C:/cygwin64/bin/jq.exe: error while loading shared libraries: ?: cannot open shared object
- I compiled LibreOffice on Windows using Cygwin, but after running 'C:/cygwin64/opt/lo/bin/make', I encountered numerous errors
- Install SoC EDS and create .o file using Cygwin
- What is ".cygwin" extension file? I can't get any result from Google&Bing SEs and file-ext.org
- Hive schematool Could not find or load main class PC"
- Scipy in Cygwin
- Error installing package in Octave Portable on Windows 10
- What is the latest version of Cygwin's Setup that will run in Windows 7?
- Issues with conda activate and deactivate in Cygwin
- Installing TreeTagger on Windows with Cygewin to use with Python
- SDL3 CMake linkage problem undefined reference for SDL
Related Questions in CP
- cp -r versus -R flag
- Getting Error: "No such container" using docker cp command
- aws s3 cp - Copy only specific subfolder tree using awscli
- docker cp reports error about Lchown but copies file anyway
- Monitoring average buffer content from interval variables using docplex.cp
- How make to correctly logical implication in CP's Cplex
- mobaXterm copy after grep
- kubectl cp command is encrypted or not like sftp
- scarping cp website codes error with request
- Backing up file with cp fails when using variable
- Is there a direct way to "send" a file from one user to another in Linux
- gsutil command error - [No space left on device. This can happen if gsutil is configured to save tracker files to an unwritable directory]
- Cant copy file with cp on Android, Skipped, Cross-device link
- Relationship between CPO and the number of constraints
- How to copy objects across gcp buckets preserving metadata. gsutil cp drops custom metadata keys wilth null values
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?
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)
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.