- for i in {1..1000};do echo;done
Showing posts with label for. Show all posts
Showing posts with label for. Show all posts
Wednesday, 24 July 2013
Clear CLI with 1000 blank lines
For when you really want older output way out of your way, e.g., debugging, copying/pasting.
Wednesday, 3 July 2013
bash: funky hostname expansion in for loop
- for host in myhosts-{2{2,{6..9}},3{2,5,{7..9}}}.mydomain.com
- do
- echo $host
- echo "ssh $host cmd"
- done
Thursday, 16 May 2013
Double looping with bash
Neat:
- for ITEM in $(find /cassandra/data -type d -name snapshots)
- do for DIR in $(find ${ITEM} -maxdepth 1 -mindepth 1 -type d -mtime -1)
- do echo $ITEM $DIR
- done
- done
Subscribe to:
Posts (Atom)
Interview questions: 2020-12
Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer Networking Layer 1 vs Layer 4 haproxy u...
-
CRITICAL: AWS now offers internal VPC DNS! Below is no longer necessary AFAIK. Woo hoo! http://aws.amazon.com/about-aws/whats-new/2014/...
-
build sudo apt-get install git gcc sudo apt-get install automake autoconf git clone git://github.com/rriley/tsunami-udp.git cd tsunam...
-
From: https://bugs.eclipse.org/bugs/show_bug.cgi?id=382972#c4 Assumptions: jEdit was installed into /Applications directory. Close any...