filenames Questions

7

Solved

I tried gedit, nano, vi, leafpad and other text editors , it won't open, I tried cat and other file looking commands, and I ensure you it's a file not a directory!
Hornswoggle asked 12/2, 2017 at 12:3

10

Solved

I'd like to batch rename files in a folder, prefixing the folder's name into the new names. i.e. files in C:\house chores\ will all be renamed house chores - $old_name.
Meshuga asked 2/1, 2014 at 0:58

4

My bash script receives a filename (or relative path) as a string, but must then read from that file. I can only read from a filename if I declare it as a literal directly in the script (without qu...
Raimondo asked 23/5, 2013 at 0:13

9

Solved

I'm using the Python requests library to get a PDF file from the web. This works fine, but I now also want the original filename. If I go to a PDF file in Firefox and click download it already has ...
Bonnibelle asked 4/8, 2015 at 8:54

4

Solved

inside a Folder I have a file, named `111-aaaaaa aa aaaa-,._aaaaaaa; aaaaaaaa, aa aaaaaaaaaa, aaaaaaaaa aaaaaaaa. 03.01.10. 38.38 aaaaa.txt` when I browse that directory with PHP (or trying to ...
Angwantibo asked 9/2, 2015 at 10:27

9

Solved

What special characters are allowed for file names on Android? ~!@#$%^&*()_+/\., Also, can I save file with Unicode name?
Dunning asked 21/4, 2010 at 1:10

7

Solved

I need to pass a file path name to a module. How do I build the file path from a directory name, base filename, and a file format string? The directory may or may not exist at the time of call. F...
Whitener asked 20/8, 2011 at 15:53

4

Solved

When I clone my repository via GitHub Desktop it throws error that there is a file which name is too long ,I know that the file limit is 255 and I disabled it from regedit and from policy editor bu...
Burgwell asked 28/7, 2018 at 13:59

23

Solved

Can anyone recommend a safe solution to recursively replace spaces with underscores in file and directory names starting from a given root directory? For example: $ tree . |-- a dir | `-- file wit...
Conclusion asked 25/4, 2010 at 18:53

3

Solved

In Ruby I have an arbitrary string, and I'd like to convert it to something that is a valid Unix/Linux filename. It doesn't matter what it looks like in its final form, as long as it is visually re...
Tomboy asked 12/7, 2011 at 23:0

28

Solved

I have a string that I want to use as a filename, so I want to remove all characters that wouldn't be allowed in filenames, using Python. I'd rather be strict than otherwise, so let's say I want t...
Earl asked 17/11, 2008 at 9:2

40

Solved

I want to get the filename (without extension) and the extension separately. The best solution I found so far is: NAME=`echo "$FILE" | cut -d'.' -f1` EXTENSION=`echo "$FILE" | cut -d'.' -f2` Th...
Coltin asked 8/6, 2009 at 14:0

4

Okay, so I was following a MERN stack tutorial and the tutor wrote out some lines of code but didn't really explain them well. this is the code: const path = require("path"); const { file...
Scapolite asked 4/1, 2023 at 10:37

2

My site draws a column chart. I have a button to save it as a PDF file showing it before saving. The way it works now is this. google.visualization draws the chart. html2canvas takes a screenshot ...
Ganley asked 9/8, 2020 at 18:7

17

Solved

I've got a string like "Foo: Bar" that I want to use as a filename, but on Windows the ":" char isn't allowed in a filename. Is there a method that will turn "Foo: Bar" into something like "Foo- B...
Ranchero asked 6/3, 2009 at 22:5

3

Solved

I want to compactly encode a large unsigned or signed integer having an arbitrary number of bits into a base64, base32, or base16 (hexadecimal) representation. The output will ultimately be used as...
Bobker asked 11/1, 2019 at 19:19

5

Solved

If I have a content-type, how can I get its default file extension? For example, given one of these content-types, I should get the following file extensions: +------------------------+----------...
Calley asked 10/1, 2012 at 9:58

6

Solved

When I clone the repo using msysgit, all the files with spaces in the filename are not brought down, and then show as deleted in the status. The filenames looks something like this: styles-ie (1:...
Detector asked 13/5, 2011 at 12:26

9

Solved

I keep getting myself in knots when I am manipulating paths and file names because I don’t follow a naming standard for path components. Consider the following toy problem (Windows example, but hop...

6

Solved

Using ack (sometimes packaged as ack-grep) I know that I can find paths that contain a specific string by doing: ack -g somestring But what if I only want files which have "somestring" in their fi...
Relationship asked 8/10, 2011 at 18:26

3

Whenever I start a project, I have to think of a name for the first Python file I start with. More often than not, I simply give it the same name as the project folder (i.e. if the folder nam...
Penhall asked 13/5, 2016 at 19:20

20

Solved

I know that / is illegal in Linux, and * " / \ < > : | ? are illegal in Windows. What else am I missing? I need a comprehensive guide that also accounts for double-byte characters.
Listed asked 29/12, 2009 at 18:11

7

Solved

The day came when I had to write a BASH script that walks arbitrary directory trees and looks at arbitrary files and attempts to determine something regarding a comparison among them. I thought it ...
Bucella asked 19/12, 2009 at 20:56

22

Solved

I would like to create a method which takes either a filename as a string or a FileInfo and adds an incremented number to the filename if the file exists. But can't quite wrap my head around how to...
Southsouthwest asked 3/7, 2009 at 6:33

3

Solved

My Eclipse workspace has two projects, one using CVS, the other Git. When modifying a file in the CVS project and save, a pop-up window appear saying An internal error occurred during: "Computing ...
Quadrature asked 14/3, 2014 at 18:52

© 2022 - 2025 — McMap. All rights reserved.