Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Posts by ShadowsRanger‭

12 posts
77%
+5 −0
Q&A Recursively remove files with the same name as the ones that end in .part

I want to remove all files with the ".part" extension in the current directory and its subdirectories, including files with the same name but different extension. Is this correct? find . -name '*...

3 answers  ·  posted 3y ago by ShadowsRanger‭  ·  last activity 3y ago by jimbobmcgee‭

Question find remove
75%
+4 −0
Q&A Remove last N lines from a text file in Linux

How can I delete a specific number of lines from the end of a text file using Linux command-line tools?

2 answers  ·  posted 11mo ago by ShadowsRanger‭  ·  last activity 7mo ago by jhnc‭

Question shell bash text-processing
71%
+3 −0
Q&A Remove last N lines from a text file in Linux

Use head to keep all but the last N lines, overwriting the file: head -n -N input.txt > tmp && mv tmp input.txt Example: remove last 3 lines head -n -3 file.txt > tmp && ...

posted 11mo ago by ShadowsRanger‭  ·  edited 11mo ago by ShadowsRanger‭

Answer
71%
+3 −0
Q&A How can I print both "before" and "after" filenames when batch-renaming files?

I'm trying to bulk-rename files in a directory and its subdirectories. I want to print each file's name before and after renaming, ideally on the same line in the form: original_filename -> new...

1 answer  ·  posted 1y ago by ShadowsRanger‭  ·  last activity 1y ago by ShadowsRanger‭

Question arch-linux renaming
71%
+3 −0
Q&A How can I efficiently create a collage of video thumbnails on Linux?

I want to create a collage of 20 screenshots from a video, arranged in a 5x4 grid, regardless of the video’s length. How can I do this efficiently on a Linux system? Specifically, I’d like a way t...

2 answers  ·  posted 2y ago by ShadowsRanger‭  ·  last activity 2y ago by GeraldS‭

Question bash
71%
+3 −0
Q&A Getting a Module Error When Running Pytest Even Though the Module is Installed in the Current Virtual Environment

Hello everyone, I am encountering an issue when running pytest in my virtual environment. Although I have installed the required modules in my virtual environment using pip, I am still getting a M...

2 answers  ·  posted 3y ago by ShadowsRanger‭  ·  last activity 2y ago by Karl Knechtel‭

Question manjaro python
66%
+2 −0
Q&A How can I print both "before" and "after" filenames when batch-renaming files?

perl-rename -nv 'regex' **/* Breakdown: -n: Dry run—no files are actually renamed; it only shows what would happen. -v: Verbose—prints each renaming operation. 'regex': Your Perl regex desc...

posted 1y ago by ShadowsRanger‭  ·  edited 1y ago by ShadowsRanger‭

Answer
60%
+1 −0
Meta How can we grow this community?

There could be Lemmy communities that automatically repost Codidact category RSS feeds to increase reach. Host them on bot-friendly instances such as ibbit.at, or run a dedicated Lemmy instance for...

posted 11mo ago by ShadowsRanger‭

Answer
60%
+1 −0
Q&A How to identify and separate standalone applications from libraries in Linux package lists?

I want to generate a list of trending Arch/AUR packages that focuses on user-facing applications rather than background libraries and dependencies. I wrote a script that uses the data from pkgstat...

1 answer  ·  posted 3y ago by ShadowsRanger‭  ·  last activity 3y ago by alx‭

Question arch-linux packages
57%
+2 −1
Q&A How to automatically change to the first matching directory using fuzzy search and cd?

I want the cd command to automatically change to the first directory that matches a fuzzy search, without prompting me to select between multiple options. This is what I've tried: cd() { loc...

1 answer  ·  posted 3y ago by ShadowsRanger‭  ·  last activity 3y ago by jimbobmcgee‭

Question shell-scripting cd fzf
50%
+0 −0
Q&A How to programmatically determine which zsh startup file to set ZDOTDIR and XDG_CONFIG_HOME?

I want to configure zsh to read its config from ~/.config/zsh by setting ZDOTDIR=$XDG_CONFIG_HOME/zsh and ensuring XDG_CONFIG_HOME is defined early. Currently my script appends exports to three glo...

0 answers  ·  posted 6mo ago by ShadowsRanger‭  ·  edited 6mo ago by ShadowsRanger‭

Question zsh dotfiles
50%
+0 −0
Q&A Why is Helix auto-formatting my CSS files on save?

Hi everyone, I recently set up Helix and noticed that every time I save a CSS file, it gets automatically formatted. I didn’t enable any formatter for CSS in my configuration, only for Python. My ...

0 answers  ·  posted 11mo ago by ShadowsRanger‭  ·  edited 11mo ago by ShadowsRanger‭

Question text-processing