View Password shortcut to Microsoft Windows clipboard
echo|set /p=password|clip |
View BATCH simple loop template
set loopcount=[Number of times] | |
:loop | |
[Commands you want to repeat] | |
set /a loopcount=loopcount-1 | |
if %loopcount%==0 goto exitloop | |
goto loop | |
:exitloop |
View BATCH loop counter with leading zero
@echo off | |
setlocal enabledelayedexpansion | |
SET d=10 | |
for /L %%t IN ( ) DO ( | |
SET /A d = !d! + 10 | |
rem echo alma !d! | |
set "formattedValue=0000000000!d!" |
View List of virtual FC adapters and their WWNs on the HMC using hscroot (find all servers in Operational state and all LPARs on them):
lssysconn -r all -F resource_type,state,type_model_serial_num | grep '^sys,Connected' | cut -d',' -f3 | while read name; do echo ${name}; lshwres -r virtualio --rsubtype fc -m ${name} --level lpar -F lpar_name,slot_num,wwpns --header | grep -v null; done |
View List of physical FC adapters and their WWNs on the VIO server by padmin users (lists only the adapters of the given VIO server):
lsdev -type adapter -state available | grep '^fcs' | while read name rest; do lsdev -dev ${name} -vpd | grep -E "${name} |Network Address"; done |
View Listing physical and virtual FC adapters and their WWNs on the server as root (lists only the adapters for that server):
lsdev -S a -Cc adapter | grep '^fcs' | awk '{print $1}' | while read name; do lscfg -vl ${name} | grep -E "${name}|Network Address"; done |
View Recursively counting files in a Linux directory
find . -maxdepth 1 -type d -print0 | xargs -0 -I {} sh -c 'echo $(find "{}" | wc -l) "{}"' |
View kef search
while :; do clear; read -p 'Mit keresünk? '; echo;grep --color=always -i "$REPLY" 20200310_KM01SRVT17_Árlista.csv | cat -n ; echo ; read -p 'Nyomj!'; done; |
View codesign
codesign -f -s - --deep |
NewerOlder