Skip to content

Instantly share code, notes, and snippets.

View sangramthecoder's full-sized avatar
💭
I may be slow to respond.

Sangram Mukherjee sangramthecoder

💭
I may be slow to respond.
  • Kolkata
View GitHub Profile
@sangramthecoder
sangramthecoder / create-react-library.zsh
Created February 23, 2021 06:58
Create React Library with Simple zsh script
#!/bin/zsh
function jsonValue() {
KEY=$1
num=$2
awk -F"[,:}]" '{for(i=1;i<=NF;i++){if($i~/'$KEY'\042/){print $(i+1)}}}' | tr -d '"' | sed -n ${num}p
}
echo "Creating directory " $1
mkdir $1
cd $1