Quantcast
Channel: Search for a files that matches another file name in another folder - Ask Ubuntu
Browsing latest articles
Browse All 4 View Live

Answer by Jacob Vlijm for Search for a files that matches another file name...

I believe this is exactly doing what you describe. The script below seems a bit verbose, but a great part of it is taken by the necessary information the user has to give in this somewhat complicated...

View Article


Answer by Lety for Search for a files that matches another file name in...

Create a simple file copyFile.sh as follow: #!/bin/bash kodeFile=$(basename $1 | sed -e 's/_code_c/_kode_c/') modeFile=$(basename $1 | sed -e 's/_code_c/_mode_m/') find FolderB -name "$modeFile" -exec...

View Article


Answer by evilsoup for Search for a files that matches another file name in...

Let's say you're in your $HOME, and you have four directories -- folderA and folderB, as in your question; folderK, where you want to move the 'kode' files to; and folderM, where you want to move your...

View Article

Search for a files that matches another file name in another folder

I have some files in a folder, which are named ***_code_c**** (where * represents any letter or number). I have another folder that have many files, folders and subfolders inside it. What I want to do...

View Article
Browsing latest articles
Browse All 4 View Live