Search Results

Search: Posts Made By: vgersh99
18,947
Posted By RudiC
It doesn't. It would remove any line with an...
It doesn't. It would remove any line with an emtpy $1, of which there is none. You can leave it out entirely. The $4 < 7000 removes the header line. $4 > 7000 would not; we'd need a different...
14,186
Posted By rbatte1
Could you store a 'previous last line' value...
Could you store a 'previous last line' value somewhere to use between runs? That way you could:-
Copy the log file to a temporary directory (to get a fixed file to work with)
Read the 'previous...
13,276
Posted By RudiC
No surprise. Shells don't expand variables...
No surprise. Shells don't expand variables enclosed in single quotes. Use awk's standard mechanism to convey variables: the -v option. Like
awk -F "," -v"USER=$usr" ' $1 == USER {print $2}'...
24,921
Posted By RudiC
Unfortunately, awk doesn't have the --recursive...
Unfortunately, awk doesn't have the --recursive option that grep provides. But we can resort to bash's "brace expansion" for sweeping across the directory tree and "extended globbing" ("extended...
24,921
Posted By MadeInGermany
grep -l prints the file names so you can process...
grep -l prints the file names so you can process them with xargs.
grep --include="*.org" --include="*.texi" -lir "Abstract" . | xargs headBut xargs has a problem with space characters in file names....
Forum: What is on Your Mind? 04-27-2020
14,411
Posted By Neo
New Migration Tool: Link to Discourse Community Topic from vB Thread Tools Menu
Dear All,

To help with migration data integrity checks, today I spend the day working on this and created a migration tool which I hope is useful.

Basically, I mapped all the new discourse...
112,275
Posted By RudiC
Try also awk -v"T1=$text1" -v"T2=$text2" 'BEGIN...
Try also
awk -v"T1=$text1" -v"T2=$text2" 'BEGIN {PC = length(T1) / length (T2); print 100 * (PC<1?1/PC:PC) "%"}'
300%
7,276
Posted By RudiC
How about - after removing the DOS line...
How about - after removing the DOS line terminators (<CR> = ^M = 0x0D = \r) that sabotage any regex -

grep -E "#[[:xdigit:]]{6}([[:xdigit:]]{2})?$" colours.txt
Forum: What is on Your Mind? 04-18-2020
33,343
Posted By Neo
Update: I have successfully moved all...
Update:


I have successfully moved all servers over to the "two container (data, web) with nginx reverse proxy to unix socket" configuration.
The problem was missing information in the support...
Forum: What is on Your Mind? 04-17-2020
33,343
Posted By Neo
Update: Staging server is running the...
Update:


Staging server is running the "two container, nginx reverse proxy to unix socket" configuration.

Future production server is running the "two container without nginx reverse proxy"...
Forum: What is on Your Mind? 04-15-2020
33,343
Posted By Neo
Update: Long baking (staging server,...
Update:

Long baking (staging server, discourse1) done after close to 15 hours:

8292

It is much improved, but @Scrutiziner, with his eagle eye for details, has plans for more refinements to...
Forum: What is on Your Mind? 04-14-2020
33,343
Posted By Neo
Update: This migration is moving along. ...
Update:

This migration is moving along. @Scrutinizer has been a great help with debugging the bbcode migration, writing Ruby methods to preprocess various bbcode situations which arise in the...
15,735
Posted By Peasant
Tip: inotify cron
Dear members, moderators and others.

While working on <insert project>, a need has surfaced to watch a directory, and when a file comes, to do appropriate action.
So, i started writing some...
Forum: What is on Your Mind? 04-13-2020
33,343
Posted By Neo
Another update: We continue to make progress...
Another update:

We continue to make progress in the complex mess of migration the bbcode from the old forum to the new ones:


@Scrutinzer wrote some nice code which strips all bbcode from our...
Forum: What is on Your Mind? 04-09-2020
33,343
Posted By Neo
It has been a few days since my last status...
It has been a few days since my last status update, so here is a new, quick one:

@Scrutiziner and @Neo continue to work on the migration and are getting closer. The migration script provided...
Forum: What is on Your Mind? 04-02-2020
33,343
Posted By Neo
Today, armed with a new migration script...
Today, armed with a new migration script vbulletin_neo7.rb I will start a migration from scratch on the staging server for the purposes of getting raw preprocessed posts from the postgres DB and...
Forum: What is on Your Mind? 03-31-2020
33,343
Posted By Neo
Update on vB3 Migration to Discourse - Issues and Status of BBCode Transformations
We "completed" the migration of this vB3 site to Discourse a number of days ago. However, deeper testing by @Scrutinizer and @MadeInGermany revealed that a lot of text was mangled in the migration. ...
Forum: What is on Your Mind? 03-18-2020
43,140
Posted By Neo
Seems like the "likes" migrations worked well,...
Seems like the "likes" migrations worked well, and most of the profile counters have updated, except mine (for some strange reason, LOL)

The discourse system gives more weight to likes to people...
Forum: What is on Your Mind? 03-17-2020
43,140
Posted By Neo
All is done, for the initial migrations except...
All is done, for the initial migrations except for "vb thanks" to "discourse likes".

(of course the discourse site is behind the vb site as far as the most recent posts....)

It's looking good,...
Forum: What is on Your Mind? 03-17-2020
43,140
Posted By Neo
Done... Updating topic reply counts... ...
Done...

Updating topic reply counts...
138032 / 138032 (100.0%) [10714 items/min]
Updating first_post_created_at...

Updating user post_count...

Updating user topic_count...
...
Forum: What is on Your Mind? 03-17-2020
43,140
Posted By Neo
Some of my crude hacking worked ..... LOL At...
Some of my crude hacking worked ..... LOL

At least some attachments are working:

8235

Success! LOL
8,625
Posted By RudiC
I'm afraid you're out of luck. Not all tar...
I'm afraid you're out of luck. Not all tar versions provide a --delete option; e.g.

tar --version
bsdtar 2.8.4 - libarchive 2.8.4
doesn't. Those which do, like
tar --version
tar (GNU tar) 1.30...
70,173
Posted By nezabudka
Hello and welcome It's customary to help on...
Hello and welcome
It's customary to help on this resource, that is, you solve a problem and you don't succeed or you're stuck on something and don't know how to continue. Therefore, if you have a...
Forum: What is on Your Mind? 03-13-2020
39,948
Posted By Neo
I think I found the problem. In all the install...
I think I found the problem. In all the install directions and migration directions I read online (many) none of them mentioned setting the ENV["IMPORT"] variable

However, now that I am moving...
Forum: What is on Your Mind? 03-12-2020
39,948
Posted By Neo
Still chugg'n along: import topics 164667...
Still chugg'n along:

import topics
164667 / 240510 ( 68.5%)

My modification from vbulletin.rb to vbulletin_neo.rb has worked so far and fixed the importing of forums to categories was done...
Showing results 1 to 25 of 474

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