Search Results

Search: Posts Made By: rdrtx1
856
Posted By rdrtx1
try: qmake --version
try:
qmake --version
1,423
Posted By rdrtx1
try: awk -F, ' function interpolate(lat1,...
try:
awk -F, '
function interpolate(lat1, lon1, t1, lat2, lon2, t2, p) {
for (i = 1; i <= (t2 - t1); i++) {
printf "%.2f,%.2f,%.1f\n",
lat1 + (t2 - t1) * (lat2...
484
Posted By rdrtx1
try removing the print _; statement. Does...
try removing the print _; statement.

Does the example posted accomplish what you are looking for or set you in the right track? What is it that you had to go back and re-do to make it work? Can...
484
Posted By rdrtx1
try: awk ' NR==FNR {a[c++]=$0; next;} ...
try:
awk '
NR==FNR {a[c++]=$0; next;}
{b[++d]=$0;}
END { for (i=0; i<c; i++) {
for (j=0; j<c; j++) {
v=j-i;
if (v < 0) v=v+c;
print a[j], b[v];
...
484
Posted By rdrtx1
Just following the example posted. Using files a...
Just following the example posted. Using files a and b to create c loop example:
awk '
NR==FNR {a[c++]=$0; next;}
{b[++d]=$0;}
END { for (i=0; i<c; i++) {
for (j=0; j<c; j++) print...
179
Posted By rdrtx1
has a login shell been assigned to the user id's?...
has a login shell been assigned to the user id's? If not, then try something like (as root):

usermod --shell /bin/bash studentid
1,441
Posted By rdrtx1
try: if [ "$line" != "\n" ] in case $line is an...
try: if [ "$line" != "\n" ] in case $line is an empty string.
1,034
Posted By rdrtx1
Also, utilities like GoAccess have nice analytics...
Also, utilities like GoAccess have nice analytics and reporting tools that handle several times of time stamp formats.
1,353
Posted By rdrtx1
grep -q " [0-9] *$" output_file && mail -s...
grep -q " [0-9] *$" output_file && mail -s "slots.sh results" mail.recipient@somename.com < output_file
906
Posted By rdrtx1
no braces examples: ls -ltr /app/deploy.yml |...
no braces examples:
ls -ltr /app/deploy.yml | awk '$2=$4=$5=_;1'
ls -ltr /app/deploy.yml | sed 's/\([^ ]*\) *[^ ]* \([^ ]*\) *[^ ]* *[^ ]* */\1 \2 /'
144
Posted By rdrtx1
repeat from another post. try: ...
repeat from another post.

try:
gsub("{5:{", "5:", msg_arr[i]);
instead of:
tag5_before_value= msg_arr[i];
msg_arr[i]="echo $tag5_before_value | sed 's/{5:{/5:/g'";
154
Posted By rdrtx1
give space. otherwise it will think it's another...
give space. otherwise it will think it's another variable.
189
Posted By rdrtx1
try: gsub("{5:{", "5:", msg_arr[i]); instead...
try:
gsub("{5:{", "5:", msg_arr[i]);
instead of:
tag5_before_value= msg_arr[i];
msg_arr[i]="echo $tag5_before_value | sed 's/{5:{/5:/g'";
154
Posted By rdrtx1
Try: svc_in svc_out != "ABCABC" (do not use...
Try:
svc_in svc_out != "ABCABC"
(do not use $'s in front of variables)
811
Posted By rdrtx1
Is this a duplicate post? See example on...
Is this a duplicate post?

See example on other post:
sed -i 's/$$EDWS_DATE_INSERT *=.*/$$EDWS_DATE_INSERT='"$(date "+%y%m%d")"'/' abc.txt
810
Posted By rdrtx1
See updated post to fix quotes.
See updated post to fix quotes.
798
Posted By rdrtx1
Try: history | sed -n '/ '"$yest"'/,/...
Try:
history | sed -n '/ '"$yest"'/,/ '"$today"'/p'
810
Posted By rdrtx1
sed -i 's/$$EDWS_DATE_INSERT...
sed -i 's/$$EDWS_DATE_INSERT *=.*/$$EDWS_DATE_INSERT='"$(date "+%y%m%d")"'/' abc.txt
1,500
Posted By rdrtx1
so, fuz or fuzzyanimals (or any string in...
so, fuz or fuzzyanimals (or any string in between) will all evaluate "cat dog"? Why not just use fuz?
144
Posted By rdrtx1
out_value=substr($0, 9, 3);
out_value=substr($0, 9, 3);
1,076
Posted By rdrtx1
dlm="<SelectStatement modified='1'...
dlm="<SelectStatement modified='1' type='string'><![CDATA["
dlm2="]]><ReadStatementFromFile type"
awk '
NR==1 && index($0, dlm) {print substr($0, index($0, dlm) + length(dlm))}
index($0, dlm2)...
866
Posted By rdrtx1
See updated of post # 3. mins, hrs max and avg...
See updated of post # 3. mins, hrs max and avg included.
866
Posted By rdrtx1
start with: awk ' $4 ~ /[0-9]:[0-9]/ { ...
start with:
awk '
$4 ~ /[0-9]:[0-9]/ {
date=$4; sub(/^[^0-9]*/, "", date); sub(/:[0-9][0-9]$/, "", date);
id=date OFS $7; api[id]; apic[id]++; apit[id]+=$10; if ($10>apim[id]) apim[id]=$10;
...
1,076
Posted By rdrtx1
dlm="<SelectStatement modified='1'...
dlm="<SelectStatement modified='1' type='string'><![CDATA["
awk 'NR==1 && index($0, dlm) {print substr($0, index($0, dlm) + length(dlm))}' dlm="$dlm" a1.txt
1,638
Posted By rdrtx1
try: dos2ux < file1 | grep ABC > file2
try:
dos2ux < file1 | grep ABC > file2
Showing results 1 to 25 of 500

 

Featured Tech Videos

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