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
👁
101
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 4 months agoFri, 28 Jun 2019 09:02:04 -0700 | Last update 4 months agoTue, 02 Jul 2019 17:37:33 -0700

Profile Photo - August R. Garcia

Last Reply Bump. 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 -0700 2 months ago
🗨
4
🐏
2
👁
2,943
Profile Photo - August R. Garcia

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

Answers in Shell Scripting | By August R. Garcia

Published 3 months agoSat, 20 Jul 2019 23:22:36 -0700 | Last update 3 months agoSat, 20 Jul 2019 23:22:46 -0700

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
👁
150
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 4 months agoFri, 05 Jul 2019 23:22:06 -0700 | Last update 4 months agoSat, 06 Jul 2019 01:44:02 -0700

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
👁
325
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 4 months agoTue, 02 Jul 2019 17:29:24 -0700 | Last update 4 months agoThu, 04 Jul 2019 19:21:52 -0700

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
👁
677
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
👁
189
Profile Photo - August R. Garcia

Generating Fake Reddit Comments with Markov Chains

Articles in Scripting and Automation | By August R. Garcia

Published 8 months agoThu, 28 Feb 2019 16:31:18 -0800 | Last update 8 months agoThu, 28 Feb 2019 17:23:39 -0800

Profile Photo - Some Guy

Last Reply Yeah 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 -0800 8 months ago
🗨
4
🐏
1
👁
1,188
Profile Photo - Some Guy

How can I bulk rename files from the Linux terminal?

Answers in Shell Scripting | By Some Guy

Published 9 months agoSun, 10 Feb 2019 23:12:04 -0800 | Last update 9 months agoSun, 10 Feb 2019 23:19:39 -0800

Profile Photo - August R. Garcia

Last Reply Try 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 -0800 9 months ago
🗨
1
🐏
0
👁
238
Profile Photo - Some Guy

What is $1 in Bash/Linux?

Answers in Shell Scripting | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:14:54 -0800

Profile Photo - roxblade

Last Reply These 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 -0800 9 months ago
🗨
1
🐏
0
👁
225
Profile Photo - Some Guy

Fix for "-Bash: syntax error near unexpected token `newline'?"

Answers in Shell Scripting | By Some Guy

Published 10 months agoSun, 13 Jan 2019 04:19:04 -0800

Profile Photo - roxblade

Last Reply The 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 -0800 9 months ago
🗨
1
🐏
0
👁
285
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
👁
125
Profile Photo - Some Guy

How to read a Linux Bash file line by line?

Answers in Operating Systems | By Some Guy

Published 11 months agoSun, 16 Dec 2018 09:36:41 -0800

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
👁
157
Profile Photo - Some Guy

How can I monitor my GPU usage on Ubuntu?

Answers in Scripting and Automation | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:42:57 -0800

Profile Photo - August R. Garcia

Last Reply If 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 -0800 11 months ago
🗨
1
🐏
0
👁
124
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 11 months agoSun, 02 Dec 2018 03:42:45 -0800 | Last update 11 months agoMon, 03 Dec 2018 06:33:04 -0800

Profile Photo - August R. Garcia

Last Reply A 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 -0800 11 months ago
🗨
1
🐏
0
👁
219
Profile Photo - Some Guy

Renaming files from BASH?

Answers in Scripting and Automation | By Some Guy

Published 11 months agoSun, 02 Dec 2018 03:42:23 -0800

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 -0800 11 months ago
🗨
1
🐏
0
👁
136