Questions tagged [file-management]
The file-management tag has no usage guidance.
104
questions
1
vote
1
answer
63
views
Find files by extension and replacing characters before and after the search pattern
I need to find a files by extensions and replace the random characters before the search pattern to the specified text (REPLACED), turn the numbers after this pattern into an increasing counter and ...
0
votes
0
answers
170
views
How to Free Up Space on Full overlay and /dev/vda1 Filesystems in a Linux Environment?
I am facing an issue where the overlay and /dev/vda1 filesystems on my server are both completely utilized, showing 100% usage. This scenario has led to operational challenges, and I am seeking advice ...
0
votes
1
answer
147
views
How can I add custom entries to "Create New" on KDE Plasma?
I'm using KDE Plasma, and frequently need to package file sets into tar.gz or zip. This usually requires opening Ark, creating a new file, and working from there, which is a run-around. It would be ...
0
votes
0
answers
84
views
Shell script to do 'cdo' operation on multiple Netcdf file embedded in multiple folders
I have a directory on my Linux machine, let's name it MYDIR, with a number of folders labeled based on the years (1982, 1983, 1984, ..., 2022). Whithin each sub-folder, there are other folders named ...
0
votes
2
answers
71
views
How can I generate a cumulative plot where I can view the number of files by the last modified date?
I have a large (millions) number of files in a folder, its subfolders and its subsubfolders that were modified over the past 15 years. I'd like to generate a cumulative plot where I can view the ...
-1
votes
1
answer
240
views
How to rename files in Linux like the ren command in Windows
I need to rename a bunch of files (more than 100) on an Ubuntu system, and want to know how to I do that when the pattern of the files is something like "Filename_01.jpg" to "...
4
votes
0
answers
133
views
Cygwin inheritance of Windows's security for cross-account file creation/modificaton?
On a Windows 10 laptop, I have an administrator account Admin, a
non-administrator account User.Name, and the default Public
account.
From either Admin or User.Name accounts, files created in the ~/
...
4
votes
3
answers
1k
views
Renaming files in Linux using perl scripting
I have a set of files with prefix, say "pre_", on a Linux machine and I just want to rename all of these files by removing that. Here is the perl code I wrote it doesn't throw any errors, ...
0
votes
2
answers
179
views
Removing certain numbers from batch of filenames
I have a batch of files that contain the numbers 21 to 29 in the middle of the file name. As I do not want to remove that number for hundreds of files by hand I tried using Terminal:
for f in *;
do ...
1
vote
1
answer
41
views
Paste files with the same names from directories and subdirectories to another directory
I'm looking for a way to paste files with the same names, contained in directories and subdirectories, to another directory with the same subdirectory structure.
For instance :
Dir1/a/a/file1
Dir2/a/a/...
1
vote
2
answers
99
views
rename first two periods to hyphens
I have the following command to change periods to hyphens in file names recursively, so long as they have another period both before and after them:
find path/to/dir -depth -type f -name '*.*' -exec ...
1
vote
0
answers
305
views
Whenever I commit and push a file to github, a duplicated ending with ~ appears in my local and remote repository
I am a beginner in Linux and I am still navigating my way aroung the terminal and file manipulation. Whenever I commit and push a file to my github, a duplicate is created alongside it. Can I delete ...
0
votes
0
answers
29
views
Is there a useful utility for managing multiple "alternatives" of a given file?
The example I'm going to give here is a simple media file conundrum.
In this example, say I have multiple versions of a given audio file:
SomeSongLibrary/
awesome-song-compressed.mp3
awesome-...
1
vote
2
answers
34
views
Number a bunch of files in a serial order with number as prefix
So, I've got 58 files on a Linux machine, with the sort of filenames given below:
Theory of Computation (TOC) | Basics of TOC | Lec 1 | GATE Computer Science⧸IT Engineering Exam [7DOPjYGtnTQ].mp4
...
2
votes
1
answer
970
views
Why is `sed '$d' file` not deleting lastlines?
Where to begin to diagnose the problem?
I don't even know where to begin to look. I'm practicing string and file wrangling, and I cannot get sed '$d' file.sh to delete the last line of a file; ...