Search Results

Search: Posts Made By: cterra
1,333
Posted By rdrtx1
maybe an alias?: alias ls='ls -1 | sed...
maybe an alias?:
alias ls='ls -1 | sed 's/^/.../''
2,130
Posted By RudiC
Sure that it works? The type becomes "generator"...
Sure that it works? The type becomes "generator" in your third record, the one with the empty field.

And, you are creating 16 processes instead of 1 when working with a single awk solution.
2,130
Posted By RudiC
It's absolutely non-trivial to deal with empty...
It's absolutely non-trivial to deal with empty fields when field separators are multiple spaces, and your sample does NOT have six spaces as separators but any number, some six or larger. Try awk -F"...
2,130
Posted By Scrutinizer
Try introducing tabs: unexpand -t "18 30 66 88"...
Try introducing tabs:
unexpand -t "18 30 66 88" file | awk -F'\t' '{print $1,$2,$3,$4,$5}'


---
With GNU awk 4 you can use field widths:
awk -v FIELDWIDTHS="17 12 36 22 20" '{print $1, $2,...
2,130
Posted By MadeInGermany
awk does it by default: SERVER2USE=$(echo...
awk does it by default:
SERVER2USE=$(echo "$LINE" | awk '{ print $1 }')
Process=$(echo "$LINE" | awk '{ print $2 }')But more efficient is
while read SERVER2USE Process Description Type Status...
1,353
Posted By RavinderSingh13
Hello cterra, Welcome to the forums, special...
Hello cterra,

Welcome to the forums, special thanks for using the code tags as per forum rules :b:.
Could you please try following and let me know if this helps you. On a Solaris/SunOS system, ...
Showing results 1 to 6 of 6

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