Skip to main content

Questions tagged [perl]

Perl is a language optimized for scanning arbitrary text files, extracting information from those text files, and printing reports.

2 votes
0 answers
75 views

Replace real path with symlink

zoxide is a replacement for cd that allows fuzzy matching against commonly accessed directories (e.g., ...
404 Name Not Found's user avatar
5 votes
1 answer
107 views

Bash/perl function to search `lsblk` for drives whose partitions all match a filter

The following function searches for disks whose partitions all have an attribute that match a filter when listed with lsblk. Comments are in TomDoc format. ...
mikeLundquist's user avatar
3 votes
1 answer
100 views

Bash/perl function for filtering and formatting `/etc/fstab`

The following function filters and formats /etc/fstab for future use. Comments are in TomDoc format. ...
mikeLundquist's user avatar
5 votes
1 answer
525 views

A file renamer in Perl that gets rid of spaces, commas, dots, and dashes

I often find myself working with files I get from other users that mostly work on Windows machines (I, myself, am on a macOS) and they tend to name their files in all sorts of (weird & difficult ...
baduker's user avatar
  • 1,378
6 votes
2 answers
773 views

Python Package Index recursive package dependency resolver

My work has an isolated network that developers write applications to run inside of. These developers often write Python code. This Python code often requires modules from the Python Package Index (...
Erin S.'s user avatar
  • 63
5 votes
1 answer
190 views

Processing large blocklists with GNU Parallel

This is an ongoing project that has undergone a major update to speed up list processing. Here is the homepage for anyone interested. It processes lists defined in ...
T145's user avatar
  • 3,159
5 votes
0 answers
209 views

Dijkstra's algorithm in Perl

I have this Perl module project. My implementation of the Dijkstra's algorithm follows: ...
coderodde's user avatar
  • 32k
5 votes
1 answer
107 views

Bidirectional Dijkstra d-ary heap

This is my very first data structure written in Perl for a d-ary heap: ...
coderodde's user avatar
  • 32k
4 votes
2 answers
167 views

ds - directory switcher - a *nix command line utility for tagging the directories and switching between them via tags (Perl + bash)

I have this program for tagging directories and switching between the folders via tags. The front end is written in Bash (version 4.4.23) and the back end in Perl (5.26.1). Critique request Since this ...
coderodde's user avatar
  • 32k
7 votes
1 answer
799 views

Remove duplicate lines without sorting or removing empty lines

I am using the following one-liner to remove duplicate non-empty lines without sorting: perl -ne 'if ( /^\s*$/ ) { print } else { print if ! $x{$_}++}' Empty (...
Ahmad Ismail's user avatar
5 votes
1 answer
500 views

Converting IDN domains to Punycode in Perl

Description This script takes any domain input from STDIN and converts unicode domains into punycode. Features Any domains that throw an error get ignored. When fed any ASCII domains, they just pass ...
T145's user avatar
  • 3,159
3 votes
2 answers
204 views

Amplifying this DDoS code

I am trying to make a DDoS code, and here's what I have so far. I am trying to make it more efficient and powerful, just for testing purposes. I'm new, and I was wondering if I could do that. Is ...
zAndrewi's user avatar
8 votes
1 answer
372 views

Parse data from Input file and print results

I have written a script which does parsing to the input file and take out some values from them with respect to the node and print the data accordingly. Below is my script, and it works as expected: <...
vkk05's user avatar
  • 183
9 votes
1 answer
346 views

Is possible to use script for dependencies in c++?

I wanted to make a script that would parse a main file (with int main()) look in its #include "..." local headers, and ...
milanHrabos's user avatar
12 votes
4 answers
3k views

Simple C transpiler

I wrote a simple transpiler (that may be a bit of a stretch) in perl to cut down on some boiler plate code. I'm very new to perl, this being maybe my third ever project in it. My main question would ...
Shipof123's user avatar
  • 353

15 30 50 per page
1
2 3 4 5
16