256 Kilobytes

All Content > BASH

Type All Category All Tag BASH

Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

Currently: Python, Bash

MoreSee: Correct Horse Battery Staple from XKCD, if somehow you haven't seen this before. There's also a generator that can be used here. How to...
🗨 0
🐏 1
👁 225
Profile Photo - August R. Garcia

The Basics to Web Scraping with cURL and XPath

Articles in Web Scraping, Data Analysis | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyBump. Some more cURL, used to determine the quality of proxygo's proxies: for i in {1..48} ; do curl https://www.blackhatworld.com/seo/ssl-proxi... August R. Garcia,

Bump. Some more cURL, use...

Thu, 29 Aug 2019 18:31:09 -070010 months ago1
🗨 4
🐏 2
👁 18,711
Profile Photo - August R. Garcia

[Solved, Basically] Nautilus - Open Multiple Tabs from Command Line?

Answers in Shell Scripting | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

How to open multiple GUI file manager ta...

MoreThe answer is that there's no built in option to do this in Nautilus, although there are Stack Exchange threads discussing ghetto hack workarounds....
🗨 0
🐏 2
👁 285
Profile Photo - August R. Garcia

[BASH, cURL] Yellow Pages Scraper: Fully Functional Script with Source Code

Articles in Web Scraping, Data Analysis | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

What a nice, free YellowPages scraper.

MoreEdit: When trying to scrape indefinitely (~100+ pages), there's some buggy behavior with exit conditions currently. If/when an updated script is poste...
🗨 0
🐏 1
👁 544
Profile Photo - August R. Garcia

[cURL, BASH] How to Crawl and Scrape DuckDuckGo Search Results

Articles in Web Scraping, Data Analysis | By August R. Garcia

Published | Last Update

Profile Photo - August R. Garcia

You can use these same concepts to build...

MoreAs discussed recently, it is relatively easy to scrap various arbitrary pieces of data using cURL (and XPath). You can use these same concepts to buil...
🗨 0
🐏 1
👁 1,985
Profile Photo - Whisky Fren
Profile Photo - Whisky Fren

Now I can use tab completion on my celeb...

MoreThe answer is that you're out of storage space. Possibly because of temporary files, but also possibly your hard drive is close to full. Or your serve...
🗨 0
🐏 0
👁 317
Profile Photo - August R. Garcia

Generating Fake Reddit Comments with Markov Chains

Articles in Scripting and Automation | By August R. Garcia

Published | Last Update

Profile Photo - Some Guy

Last ReplyYeah that should be doable. The only thing would be that you would have to make sure those KWs are in the word_dict so that there are pairs to generat... Some Guy,

Yeah that should be doabl...

Tue, 05 Mar 2019 01:25:03 -08001 year ago1
🗨 4
🐏 1
👁 1,375
Profile Photo - Some Guy

How can I bulk rename files from the Linux terminal?

Answers in Shell Scripting | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyTry the rename command. Syntax: Basic syntax: rename (option) 's/oldname/newname/' file1.txt file2.txt Test a rename regex on all file... August R. Garcia,

Try the rename command. S...

Sun, 10 Feb 2019 23:19:24 -08001 year ago1
🗨 1
🐏 0
👁 373
Profile Photo - Some Guy

What is $1 in Bash/Linux?

Answers in Shell Scripting | By Some Guy

Published

Profile Photo - roxblade

Last ReplyThese are basically positional parameters. They are invoked by shell's arguments. So, a simple script like ./code.sh Hi there will make three position... roxblade,

These are basically posit...

Mon, 04 Feb 2019 11:18:58 -08001 year ago1
🗨 1
🐏 0
👁 325
Profile Photo - Some Guy
Profile Photo - roxblade

Last ReplyThe general explanation behind this error is that instead of a file or resource, the command downloaded an HTML doc or a webpage. Now, based on the en... roxblade,

The general explanation b...

Sun, 03 Feb 2019 13:17:32 -08001 year ago1
🗨 1
🐏 0
👁 428
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI am working on scripts on a new app that I am developing. I have question regarding command-prompt. What do you type to start a bourne-again shell. W...
🗨 0
🐏 0
👁 215
Profile Photo - Some Guy

How to read a Linux Bash file line by line?

Answers in Operating Systems | By Some Guy

Published

Profile Photo - Some Guy

What is the simplest way to read line by...

MoreWhat is the simplest way to read line by line in a Linux Bash file?
🗨 0
🐏 0
👁 247
Profile Photo - Some Guy

How can I monitor my GPU usage on Ubuntu?

Answers in Scripting and Automation | By Some Guy

Published

Profile Photo - August R. Garcia

Last ReplyIf there is no usable/relevant GUI, this can also be done from the terminal with a looping BASH script like this: # Monitor GPU stats and usage... August R. Garcia,

If there is no usable/rel...

Sun, 02 Dec 2018 03:46:56 -08001 year ago1
🗨 1
🐏 0
👁 212
Profile Photo - Some Guy

I downloaded a bunch of stock photos for testing. Is there a quick way to bulk rename in Bash (or something similar)?

Forum in Web Scraping, Data Analysis | By Some Guy

Published | Last Update

Profile Photo - August R. Garcia

Last ReplyA script like run from the terminal or a Bash script works for this type of file renaming: INDEX=1; for i in *.jpg; do mv $i ${INDEX}_cover.jpg;... August R. Garcia,

A script like run from th...

Sun, 02 Dec 2018 03:46:44 -08001 year ago1
🗨 1
🐏 0
👁 312
Profile Photo - Some Guy

Renaming files from BASH?

Answers in Scripting and Automation | By Some Guy

Published

Profile Photo - August R. Garcia

Last Reply# Convert clocks subfolders from png to jpgconvert */*.png */*.jpgfor f in $(find */*.png); do echo $f to $f--.jpg convert $f $RANDOM-RANDOM-.jpg r... August R. Garcia,

# Convert clocks subfolde...

Sun, 02 Dec 2018 03:46:22 -08001 year ago1
🗨 1
🐏 0
👁 216