
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Command-line utility for renaming numbered files.
gem install nrename
This gem does not have any external runtime dependencies, nor does it use any fancy language features/syntax, so it works on pretty much every Ruby implementation out there.
When you have a set of files like:
1.txt
2.txt
10.txt
11.txt
99.txt
100.txt
it's hard to get a list of them in order (from 1.txt
to 100.txt
). Shell of
file manager will usually sort them starting from first symbol in filename,
like this:
1.txt
10.txt
100.txt
11.txt
2.txt
99.txt
Nrename lets you rename such files so that they have equal number of digits in names:
001.txt
002.txt
010.txt
011.txt
099.txt
100.txt
$ nrename --help
Usage: nrename [OPTINS] DIR...
Options:
-X, --execute Do actual work
-R, --recursive Process given directories recursively
-N, --numbers-only Leave only numbers in file name
-D, --rename-dirs Rename only directories instead of regular files
--renumber Renumber files from starting from 1 and on
--regexp REGEXP Use REGEXP to match filenames
-v, --[no-]verbose Run verbosely
-h, --help Display this message
--version Display version
FAQs
Unknown package
We found that nrename demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.