Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

How to track the filenames that are moving to another location ??

VoltarGomes

Newbie
Joined
Nov 21, 2020
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
10
Hello,

A directory contains 100 files and a folder with 10 files. For some task, i have to move all 10 files to sit along with 100 files, by using command as:

mv ./directory/folder/*.v ./directory.

After perfoming my task on all these 110 files. i want to move processed 10 files (that i bought) to their original location without mentioning filenames explicitly.

how can i do this ? I think i have to track those file names initially and use that info back again afterwards. but help me with some syntax.
 

BradtheRad

Super Moderator
Staff member
Joined
Apr 1, 2011
Messages
13,720
Helped
2,717
Reputation
5,430
Reaction score
2,631
Trophy points
1,393
Location
Minneapolis, Minnesota, USA
Activity points
102,384
Can you create an alias of files or folders? Macintosh lets you do this easily. In Windows you create a shortcut. Linux has its own syntax of course.

Later you just delete the alias without losing the original.
 

dick_freebird

Advanced Member level 5
Joined
Mar 4, 2008
Messages
6,947
Helped
2,035
Reputation
4,074
Reaction score
1,881
Trophy points
1,393
Location
USA
Activity points
55,678
You could make a 'foreach fname(*)' loop in which
any sort of shell-script logic could be applied to
pick files, and you could emit those selected
files' names to a log file and then move them.

foreach() is a lot more flexible & powerful than
simple wildcarding of a single shell command.
 

Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top