Monthly Archives: November 2018

Wrong match for dir command

What is wrong here? d:\code\tsm\tdp\agents\mmc\fm.ux\parts\dataworkloadselectableitems>dir sed* Volume in drive D is Data Volume Serial Number is B258-D576 Directory of d:\code\tsm\tdp\agents\mmc\fm.ux\parts\dataworkloadselectableitems 11/28/2018 12:52 PM 86,224 selectableitemscontrol.ko.resx 1 File(s) 86,224 bytes 0 Dir(s) 22,322,823,168 bytes free Answer: Look for the short name … Continue reading

Posted in tools, windows | Tagged , , , | Leave a comment

How do I check if file exists in Makefile?

The second top answer mentions ifeq, however, it fails to mention that these must be on the same level as the name of the target, e.g., to download a file only if it doesn’t currently exist, the following code could … Continue reading

Posted in linux | Tagged , , , | Leave a comment

Ubuntu Install bash

https://ubuntuforums.org/archive/index.php/t-499045.html Run from a command line: dpkg -S /bin/bash to see what package create the link (i doubt that the link it’s part of any package anyway… maybe dash create it by default if bash it’s not installed) You can … Continue reading

Posted in linux | Tagged , , , | Leave a comment

Korn Shell: Unix and Linux Programming Manual, Third Edition, The

Korn Shell: Unix and Linux Programming Manual, Third Edition, The by Anatole Olczak Publisher: Addison-Wesley Professional Release Date: January 2001 ISBN: 0201675234 Topic: Shell Scripting https://www.safaribooksonline.com/library/view/korn-shell-unix/0201675234/

Posted in linux | Tagged , , , | Leave a comment

Difference between elif and else if

What is the difference between “elif” and “else if” in shell scripting? https://superuser.com/questions/827958/what-is-the-difference-between-elif-and-else-if-in-shell-scripting

Posted in linux | Tagged , , | Leave a comment

Tab in make file

Issue: Makefile:1: *** missing separator. Stop Explanation: It’s a tabs problem. Some text editors may replace tabs with white spaces, make sure you use a proper text editor that doesn’t mess it up. Open your makefile in vi or any … Continue reading

Posted in linux | Tagged , , , | Leave a comment

What is the difference between := and += in make file?

:= (Simply Expanded Variable ) The value is scanned for once and for all expanding any references to other variables and functions, when variable is defined. e.g. x:=foo y:=$(x) bar x:=later so above is equivalent to y:=foo bar x:=later += … Continue reading

Posted in linux | Tagged , , | Leave a comment

Boala fumătorului. Primul simptom: tusea

https://www.srp.ro/bpoc.aspx https://www.realitatea.net/boala-fumatorului-primul-simptom-tusea_2171697.html Boala fumătorului. Această boală a plămânilor se manifestă prin tuse cronică, prin producţie de spută şi prin respiraţie din ce în ce mai dificilă, care ajunge să facă activităţile cotidiene tot mai greu de desfăşurat. Deşi plămânii încep … Continue reading

Posted in microbiology | Tagged , , | Leave a comment

Identify Linux Distro

Variant 1: Parse `lsb_release -d` output. Reference: https://stackoverflow.com/questions/2829613/how-do-you-tell-if-a-string-contains-another-string-in-posix-sh #!/bin/bash # contains(string, substring) # # Returns 0 if the specified string contains the specified substring, # otherwise returns 1. contains() { string=”$1″ substring=”$2″ if test “${string#*$substring}” != “$string” then return 0 … Continue reading

Posted in linux | Tagged , | Leave a comment

How to Save Space By Cleaning Windows’ WinSxS Folder

https://www.laptopmag.com/articles/clean-winsxs-folder-to-save-space ::Run as Administrator Dism.exe /online /Cleanup-Image /StartComponentCleanup  

Posted in windows | Tagged , , , | Leave a comment