sbc_compliant: (Default)
[personal profile] sbc_compliant
When PHB was asking why I was still here, I said that I was trying to find a way to batch process until EOF.

He introduced me to the joys of while read foo; do and to call it by either cat file | script or script < file. He also showed me some variations on the logic: while read < file; do and while read < $1; do.

I've made two scripts, that I've needed to make for a while, in the last hour, and they both do what I want them to do. Yay!

Here's one:


bulkDomainRegCheck.sh

#! /bin/bash

# performs a batch whois lookup against NetSol

while read myline 
        do
                whois -h whois.networksolutions.com $myline
        done





Additionally, today I learned about file blah to find out what kind of file "blah" is.

Awesomesauce.

Profile

sbc_compliant: (Default)
sbc_compliant

November 2019

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 10th, 2026 06:35 am
Powered by Dreamwidth Studios