![]() NOTE: If you are facing more complicated file and folder scenarios, this post explains find (and some alternatives) in greater detail. We use xargs with -n 2 to consume the output of sed 2 delimited strings at a time, passing these to mv (i also put the -p option in there so you can feel safe when running this).So for more complex transformations youll have to change the args to s/// (with an re still matching the entire filename)Įxample output: foo_factory.py foo_service.py after the space char, we use "\1service.py" to interpolate the string we gulped before "factory.py", followed by "service.py", replacing it. Because of this, it's vital that our RE matches the entire filename. ![]() Vnc settings Remote hostname or IP address 4.6. In the s/// replacement string, we use "
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |