Skip to content

Instantly share code, notes, and snippets.

View Pixailz's full-sized avatar
🏴‍☠️
bash, Bash, BASH ...

Pixailz Pixailz

🏴‍☠️
bash, Bash, BASH ...
  • 42 Angouleme
View GitHub Profile
# little script found on this repo https://github.com/gpoblon/libft
# need the see whats going one here (even in the make file, style method with tputs for the "cursor")
MYPATH=$(pwd)
CUR_MAKEFILE=$MYPATH/Makefile
if [ -e $CUR_MAKEFILE ]
then
echo "regenerate Makefile"
sed "`grep -n 'SRC =' $CUR_MAKEFILE | sed 's/:.*//'`, \$d" $CUR_MAKEFILE > NEWMAKEFILE
grep 'SRC =' $CUR_MAKEFILE >> NEWMAKEFILE
@Pixailz
Pixailz / cpu_ext.sh
Created April 8, 2022 14:10
list all CPU extension
cat /proc/cpuinfo | sed -nE 's/flag.*:.(.*)/\1/p' | tr ' ' '\n' | sort -u