Questions tagged [renaming]

342 questions
5
votes
3 answers

Weird behaviour in PowerShell bulk file renaming

I'm new to PowerShell and recently I try to rename 120 files in a folder and I encounter a weird behavior. What I have is files with named from 0001.txt, 0002.txt, ... 0120.txt a total of 120 files. I want to add an 'a' in front of each of the file…
L Z
  • 75
  • 1
  • 7
4
votes
1 answer

Problems with package renaming in Mercurial project

I have been using Mercurial for a while in my Java project. I work in a two man team. When I do merges, I find that file renaming has not caused many problems, but package renaming has caused major issues. Is this a known problem? Is there anything…
smuggledPancakes
  • 9,881
  • 20
  • 74
  • 113
4
votes
3 answers

Renaming HTML classes across CSS files

If I have 100 HTML files that use a set of classes that are used as selectors in CSS files, is there a utility that I can use to intelligently rename the classes? I know that every editor/IDE has a find/replace in project feature. Using sed you can…
hekevintran
  • 22,822
  • 32
  • 111
  • 180
4
votes
1 answer

Dotfuscator accessors renaming get and set

My issue is with Dotfuscator configuration for renaming. Imagine a class that would look like this: Class MyClass { private int _propertyA; private int _propertyB; public int PropertyA { get{return _propertyA;} …
user1892410
  • 381
  • 5
  • 12
4
votes
4 answers

Rename several files in the BASH

I would like to rename files numbering: I have a files with '???' format I need to put them in '????'. myfile_100_asd_4 to myfile_0100_asd_4 Thanks Arman. Not so elegant SOLUTION: #/bin/bash snap=`ls -t *_???` c=26 for k in $snap do …
Arman
  • 4,566
  • 10
  • 45
  • 66
4
votes
3 answers

Racket with-hash macro and rename transformers

I created this: (define-syntax (with-hash stx) (syntax-parse stx [(_ obj:id ((~or key:id [new-key:id hash-key:id]) ...) body:expr ...+) #'(let ([key (hash-ref obj 'key)] ... [new-key (hash-ref obj 'hash-key)] ...) …
Scott Klarenbach
  • 37,171
  • 15
  • 62
  • 91
3
votes
2 answers

cakephp routes modify controllers name / fetching controllers name

I created a route which is analog to this one: Router::connect("/backend/:controller/:action/*"); And now I want to route every controller that fits this pattern to be renamed to something like backend_:controller. Somehow like…
Dennis
  • 1,805
  • 14
  • 17
3
votes
1 answer

php file renaming loop

I run a ecommerce site, and I have tons of product images. The naming rules are simple: productid-picnumber. But sometimes theres gaps betweeen the picnumbers. Example for the pictures for product id…
Kristian Rafteseth
  • 2,002
  • 5
  • 27
  • 46
3
votes
4 answers

Does XSLT provide a means to identify xml elements by using regular expressions?

I have a sample xml file which looks like this: --- before transformation --- ... ... ... ...…
asna jarl
  • 31
  • 1
3
votes
2 answers

Kotlin class rename with upperCase gives me redeclaration error

While trying to rename the kotlin class file.from lowercase to uppercase it do the renaming but it will give run time error of redeclaration of file name. Is anybody know how to handle it.
Rama
  • 79
  • 8
3
votes
2 answers

How do I rename multiple tags in TFS

I am using TFS 2017-R3. I am needing to rename some tags. I am looking for the process to change the tags in quantity not one at a time.
Russ
  • 31
  • 2
3
votes
2 answers

Select a specific part of file name move it to the beginning

I have some video lessons that I want to rename in a specific way with Python. Here is an example file name: 3D Graphics - Crash Course Computer Science #27-TEAtmCYYKZA.en" I want to select "27" and move it to the beginning of the file name, and…
Özenç B.
  • 928
  • 3
  • 8
  • 25
3
votes
3 answers

how to rename a file in a directory using current directory

I want to rename a file (home/Desktop/ali/a/b.txt) I wrote a bash file #!/bin/bash mv a/b.txt a/c.txt and put it in ali directory,I navigate to ali directory in terminal but when I execute the bash file it can't find a/b.txt I know mv…
3
votes
1 answer

C# Replacing filenames containing "." with " " but removing the file extension

I am rename the files in a folder that contain a "." with a " ". Expected result... Before: "I.am.testing.txt", After: "I am testing.txt" Actual result... Before: "I.am.testing.txt", After: "I am testing txt" The problem is that it also removes…
Conor Egan
  • 518
  • 1
  • 3
  • 21
3
votes
0 answers

EPPlus - How to rename a named range and maintain correct formulas?

I have an Excel file with a named range (just one cell). There are other cells who's formulas use this name. I am trying to programatically rename the cell using EPPlus. My first attempt I simply removed the old name and added the…
kilkfoe
  • 445
  • 5
  • 11
1 2
3
22 23