The difference between bitwise and logical operators and and or and when to use one or the other in the C programming language
Mic: https://tokopedia.link/4xVIDTx4Evb
#c #clang #clanguage #cli #programming #arch #linux #unix #technology #tutorial #logical #and #or #binary #bit
...
https://www.youtube.com/watch?v=zU8Gkv5jtoI
Returning a value from an expression with ternary operators without creating a temporary variable in the C programming language
Mic: https://tokopedia.link/4xVIDTx4Evb
#c #clang #clanguage #cli #programming #arch #linux #unix #technology #tutorial #ternary #operator #if #else #return
...
https://www.youtube.com/watch?v=15mjWqOQaVg
The shell, global variables, and temporary files in communicating between processes - Linux shell scripting
You could also replace grep with a case statement (where the tmpfile pattern is __NAME__$$):
while :; do
pids=$(ps -o pid=)
for file in $files; do
pid=${file##*__}
case $pids in
*$pid*) ;;
*) rm -f $file ;;
done
sleep 300
done
Make sure that you are removing the temporary files. You may want to add:
cd $path_to_tmp || return
before doing anything.
Mic: https://tokopedia.link/4xVIDTx4Evb
#c #clang #clanguage #cli #programming #arch #linux #unix #technology #tutorial #bash #if #posix #shell #vim
...
https://www.youtube.com/watch?v=IMdsisplFVs