Skip to content Skip to sidebar Skip to footer
Showing posts with the label Bash

Invalid Char In Expression Awk, Python

I have a command that looks like this: ps v -p 2585 | awk '{if ($9 != '%MEM') {print $9… Read more Invalid Char In Expression Awk, Python

Split Lines/sentence With Over 10 Words Where The First Comma Appears

I have the following code that splits the line every 10 words. #!/bin/bash while read line do… Read more Split Lines/sentence With Over 10 Words Where The First Comma Appears

Get A List Of Changed Files Between Two Commits Or Branches

I'm a Python/Git newb but I'm trying to write a script that takes two branches or commits a… Read more Get A List Of Changed Files Between Two Commits Or Branches

Allow Commands To Run After Backgrounding Django Runserver Command In A Bash Script?

I'm writing a 'simple' script to start up the django server, background it then start u… Read more Allow Commands To Run After Backgrounding Django Runserver Command In A Bash Script?

How To Make The Shebang Be Able To Choose The Correct Python Interpreter Between Python3 And Python3.5

I'm developing a set of script in python3, as shebang I use this: #!/usr/bin/env python3 Every… Read more How To Make The Shebang Be Able To Choose The Correct Python Interpreter Between Python3 And Python3.5

Aws Cli To Run Sql Query

I have the following code written in Python. I wish to migrate it over to Bash, or use just plain o… Read more Aws Cli To Run Sql Query