Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Akshay Hegde
2,780
Posted By Akshay Hegde
One more lengthy way may try $ awk...
One more lengthy way

may try

$ awk 'BEGIN{while(1){getline;if(/Output/){printf $0;break}x=x RS $0}print x}1' fileOR
$ awk '{if(/Output/)printf $0;else x=x RS $0}END{print x}' fileResulting...
6,017
Posted By Akshay Hegde
#!/usr/bin/env bash tables=(geo_JOB...
#!/usr/bin/env bash

tables=(geo_JOB geo_JOB1)

(
cat <<EOF
SET HEADING ON
SET WRAP OFF
SET TRIMSPOOL ON
SET TRIMOUT ON
SET PAGESIZE 50000
SET COLSEP ","
SET LINESIZE 500
SET NEWPAGE...
Forum: Web Development 01-30-2020
6,451
Posted By Akshay Hegde
You should now options enabled in your server...
You should now options enabled in your server endpoint, I used in past with nextcloud (https://docs.nextcloud.com/server/latest/user_manual/files/access_webdav.html)

Below few are examples, for...
Forum: Web Development 11-09-2019
6,147
Posted By Akshay Hegde
I am happy to be part of forums and your...
I am happy to be part of forums and your leadership team, finally it's solved, once bots reindex sitemap everything should be fine.
Forum: What is on Your Mind? 09-15-2019
9,240
Posted By Akshay Hegde
Normal simple card header, and body would be nice...
Normal simple card header, and body would be nice or in future we can allow user to set preference like primary, warning, success etc classes to cards.

Here is link collapsable card
Card...
Forum: What is on Your Mind? 09-15-2019
9,240
Posted By Akshay Hegde
Hi if you wrap forums like operating systems, top...
Hi if you wrap forums like operating systems, top forums inside bootstrap panels ( card class in bootstrap 4 ) would look even better.
Forum: What is on Your Mind? 09-13-2019
9,240
Posted By Akshay Hegde
One issue I noticed while posting screenshot now....
One issue I noticed while posting screenshot now. I had to switch to desktop view to see advanced options to add attachments.

Probably iframe modal would be nice.
Forum: What is on Your Mind? 09-13-2019
9,240
Posted By Akshay Hegde
Swipe gesture looking good. 7842
Swipe gesture looking good.

7842
Forum: What is on Your Mind? 09-12-2019
8,150
Posted By Akshay Hegde
Ok I am attaching, many parameters are commented...
Ok I am attaching, many parameters are commented thats why I posted only parameters which I override at the end.
Forum: What is on Your Mind? 09-12-2019
8,150
Posted By Akshay Hegde
This is what I use, here is conf, I use query...
This is what I use, here is conf, I use query parameters whenever I change script/css, pagespeed re-creates cache

Example : somescript.js?v=20190912124147


ModPagespeedHonorCsp on...
Forum: What is on Your Mind? 09-11-2019
8,150
Posted By Akshay Hegde
Google likes, if pages are W3C and WCAG...
Google likes, if pages are W3C and WCAG compliant.

Few links may be useful.

Make your site more accessible - Sites Help (https://support.google.com/sites/answer/7529116?hl=en)

Web...
Forum: What is on Your Mind? 09-06-2019
8,154
Posted By Akshay Hegde
Welcome Yoda 👍
Welcome Yoda 👍
2,121
Posted By Akshay Hegde
Using pr $ cat f1 Record A Recrod B ...
Using pr

$ cat f1
Record A
Recrod B
Record D

$ cat f2
1
2
3
4

$ pr -mtJS f1 f2
Record A1
Recrod B2
Record D3
4
632
Posted By Akshay Hegde
Here is a way to play with awk ...
Here is a way to play with awk

akshay@db-3325:/tmp$ cat file
H0187459823 172SMITH, JOE
H0112345678 172DOE, JANE

akshay@db-3325:/tmp$ awk '{print...
Forum: Web Development 02-19-2019
2,949
Posted By Akshay Hegde
:)
:)
Forum: Web Development 02-19-2019
2,949
Posted By Akshay Hegde
Sure, will use google closure compiler for...
Sure, will use google closure compiler for minifying scripts, for css we have rewrite uri (Rewrite file-relative URIs as root-relative) first then can combine. I am not sure, VB has inbuilt tool...
Forum: Web Development 02-19-2019
2,949
Posted By Akshay Hegde
Optimizing JS and CSS
Yes.

Got few suggestions.
- How about minifying resources
- mod_expires
- Service workers setup...
Forum: Web Development 02-19-2019
7,742
Posted By Akshay Hegde
After a long time, logged in Forum looking great,...
After a long time, logged in Forum looking great, happy to see its responsive. Great job Neo
Forum: What is on Your Mind? 09-01-2017
666
Posted By Akshay Hegde
Happy birthday Neo
Wish you many many happy returns of the day, stay blessed.
588
Posted By Akshay Hegde
awk 'FNR==NR{ a[$1] = $2; next} { for(i in...
awk 'FNR==NR{ a[$1] = $2; next} { for(i in a)gsub(i, a[i]) }1' string_list_file file > outfile

Here is example to start


akshay@db-3325:/tmp$ cat string_list_file
foo bar
jack john
me you...
5,413
Posted By Akshay Hegde
works fine with integer : $ echo "Insert...
works fine with integer :
$ echo "Insert completed. 100 rows added" | tr -dc '[:digit:]'
100
1,049
Posted By Akshay Hegde
Try, works with current data ...
Try, works with current data

akshay@db-3325:/tmp$ cat f
hello--hello1--hello2--#growncars#vello--hello3--hello4--jello#growncars#dello--gello--gelloA--gelloB#growncars#
akshay@db-3325:/tmp$ awk...
1,589
Posted By Akshay Hegde
You may try something like this Test script ...
You may try something like this

Test script
[akshay@localhost tmp]$ cat test.php
<?php
for ($h = 0; $h < 10; $h++)
{
echo "<p>Line Number $h</p>".PHP_EOL;
}
?>

This is...
10,547
Posted By Akshay Hegde
Try [akshay@localhost tmp]$ cat f col ...
Try


[akshay@localhost tmp]$ cat f
col
1
2
3
4
[akshay@localhost tmp]$ awk 'BEGIN{print "<table>"}{c="td"; e=""}FNR==1{c="th";e=" style=\"color=red;\""}{print...
1,199
Posted By Akshay Hegde
[akshay@localhost tmp]$ awk ' ...
[akshay@localhost tmp]$ awk '
NR == FNR {min[$1]=$3; max[$1]=$4; o[$1]=$5; next}
{
for (id in min)
if (min[id] < $2 && $2 <...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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