Skip to content
Code Snippets
Useful code to copy and paste
  • ALL
  • Acquia
  • Acquia API
  • Acquia Cloud IDE
  • Acquia Cloud Site Factory
  • Bash
  • Bootstrap
  • C#
  • CSS
  • curl
  • Drupal 8-9
  • Drupal Modules
  • Drush
  • HTML
  • JavaScript
  • jQuery
  • Lando
  • MacOS
  • PHP
  • Raspbian
  • Terminal
  • Unity
  • Website Templates
  • WordPress

Category: Bash

Linux: Convert a text file with URLs to a HTML file with clickable links

July 25, 2021 Leonardo Signorelli

We have a file called URLs.txt with URLs: http://www.google.com http://www.reddit.com We want to create an HTML file with clickable URLs:…

Continue Reading →

Posted in: Bash, Terminal, Uncategorized Filed under: Bash, linux, perl, terminal, wget

Scrape a site with wget using a sitemap.xml

Leonardo Signorelli

The following wget command will create a file called urls.txt containing all the URLs found in a site’s sitemap.xml file.…

Continue Reading →

Posted in: Bash, Terminal, Uncategorized Filed under: Bash, linux, terminal, wget

BASH: Open a new terminal window and run a command

October 22, 2019 Leonardo Signorelli

Open a terminal shell and run: nano main.sh Copy the following code and save the script: #!/bin/bash echo “Going to…

Continue Reading →

Posted in: Bash Filed under: Bash
  • ALL
  • Acquia
  • Acquia API
  • Acquia Cloud IDE
  • Acquia Cloud Site Factory
  • Bash
  • Bootstrap
  • C#
  • CSS
  • curl
  • Drupal 8-9
  • Drupal Modules
  • Drush
  • HTML
  • JavaScript
  • jQuery
  • Lando
  • MacOS
  • PHP
  • Raspbian
  • Terminal
  • Unity
  • Website Templates
  • WordPress
Copyright © 2023 Code Snippets — Escapade WordPress theme by GoDaddy