Search Results

Search: Posts Made By: batchenr
2,146
Posted By rbatte1
Hello batchenr, I think you probably want to...
Hello batchenr,

I think you probably want to use an Associative Array, i.e an unordered list of key to value pairs. Have a look in the man bash pages for the basic information and skip forward to...
2,146
Posted By RudiC
Methinks rbatte1 has pointed you in exactly the...
Methinks rbatte1 has pointed you in exactly the right direction; you just need to extrapolate / adapt his proposal.
declare -A names=([IatHG8DC7mZbdymSoOr11w]=hostname1...
2,720
Posted By MadeInGermany
IFS includes a newline, so you do not need xargs...
IFS includes a newline, so you do not need xargs to convert newline to a space character.
My script sample needs a sorted input.
For example
ARRAY2=($(df -Pk | awk '$6~/^[/]/{print$6}' | sort)) #...
2,081
Posted By RavinderSingh13
Hello batchenr, Could you please try...
Hello batchenr,

Could you please try following and let me know if this helps.

awk '!/^#/ && !/^devpts/ && !/^sysfs/ && !/^proc/ && !/^$/ && !/^\// && !/swap/{print $2}' Input_file
Thanks,...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 01:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy