Search Results

Search: Posts Made By: nezabudka
96
Posted By nezabudka
Hi GNU extension includes a multiline modifier...
Hi
GNU extension includes a multiline modifier M,m
sed -rz 's/(a.*\n)\n+(c.*)/\1\2/m'

--- Post updated at 06:36 ---

the wolves be sated and the sheep intact
sed -r...
419
Posted By nezabudka
Hi @rdrtx1 In your version, progress is...
Hi @rdrtx1
In your version, progress is 2.7MiB/s
If a little change
awk '{getline b; getline c; print $0"-"b"-"c}' RS='-'

speed will rise a little 3.7MiB/s
version from @RavinderSingh13 ...
97
Posted By nezabudka
Hi @RudiC, There, not all chunks are the same...
Hi @RudiC,
There, not all chunks are the same size

--- Post updated at 12:04 ---

I got the point. Thanks
97
Posted By nezabudka
Hi It just doesn’t work for me to start with 1 ...
Hi
It just doesn’t work for me to start with 1
csplit -f file_to_split.file. -b "%d.txt" file_to_split.txt 6673 13345 20017 26689 33361 39897
file_to_split.file.0.txt
file_to_split.file.1.txt...
144
Posted By nezabudka
Hi join -t'|' -a1 a.txt b.txt join -t'|' -a1...
Hi
join -t'|' -a1 a.txt b.txt
join -t'|' -a1 a.txt c.txt
419
Posted By nezabudka
Hi Even a little slower than in my version
Hi
Even a little slower than in my version
419
Posted By nezabudka
Speed increased 5-10 times! 6GB single line...
Speed increased 5-10 times!

6GB single line file completely froze the system
419
Posted By nezabudka
Hi If you use regexp you can hang the computer....
Hi
If you use regexp you can hang the computer.
tr '-' '\n' <file | pr -3tas'-' >new_file
it takes 10 to 20 minutes
You can look at the progress.
In another window, run
progress -c pr -M
or...
158
Posted By nezabudka
I'm at a loss. It remains to assume either the...
I'm at a loss. It remains to assume either the remote NFS or LXC container
158
Posted By nezabudka
Hi How to look at a sample line with '?' and...
Hi
How to look at a sample line with '?' and headers
Thanks
272
Posted By nezabudka
Hi awk 'NR==1 {NF=3; print; next}; {for (i=2;...
Hi
awk 'NR==1 {NF=3; print; next}; {for (i=2; i<NF; i+=2) {one+=$i; two+=$(i+1)}; print $1, one, two; one=two=0}'
you can skip as many as you need i=10

--- Post updated at 19:55 ---

awk...
Forum: What is on Your Mind? 4 Days Ago
392
Posted By nezabudka
No, I'm just trying to find an easy way to...
No, I'm just trying to find an easy way to understand not simple things.
Thanks so much for your clarification.
Forum: What is on Your Mind? 5 Days Ago
392
Posted By nezabudka
Viewpoint: ‘We’re living in an age of...
Viewpoint: ‘We’re living in an age of surveillance capitalism’ | BBC Ideas(3 minutes) YouTube (https://youtu.be/4oOCLIrB-0c)
Forum: What is on Your Mind? 6 Days Ago
232
Posted By nezabudka
As I understand it, is this a new approach to...
As I understand it, is this a new approach to Dijkstra’s sophisticated algorithm?
257
Posted By nezabudka
You can try formatted output in the "find" and...
You can try formatted output in the "find" and "stat" commands.
Also, the "-ls" option in the "find" command.
The name will be displayed without single quotes

--- Post updated at 01:05 ---

I...
257
Posted By nezabudka
Hi touch \\*\'fileName\'*\\ ls ...
Hi
touch \\*\'fileName\'*\\
ls
'\*'\''fileName'\''*\'
ls -b
\\*'fileName'*\\
dir
\\*'fileName'*\\
compgen -f
\*'fileName'*\
350
Posted By nezabudka
Hi awk -F '' ' #for multiple of 3 occurrences ...
Hi
awk -F '' ' #for multiple of 3 occurrences
BEGIN {srand(); split("a a b", ab, " ")}
{for(i=1; i<=NF; i++)
if($i == "a") $i = ab[int(rand()*10%3)+1]
} 1'...
Forum: What is on Your Mind? 1 Week Ago
392
Posted By nezabudka
Hard to translate. So far I've realized that even...
Hard to translate. So far I've realized that even time will be put up for auction soon :)
392
Posted By nezabudka
Hi prename -n...
Hi
prename -n 's/^(CMRLPCR\d{6}).*(_[^_]*)$/\1\2/' *.bum

--- Post updated at 19:35 ---

find *.bum -prune -exec bash -c 'mv $0 ${0//_*_/_}' {} \;

--- Post updated at 19:50 ---

I removed...
177
Posted By nezabudka
Hi sed 's#.*:\([^-][^-]*\)-.*#\1\n&#'
Hi
sed 's#.*:\([^-][^-]*\)-.*#\1\n&#'
312
Posted By nezabudka
Hi It’s best to do so. Take a variable in...
Hi
It’s best to do so.
Take a variable in double quotes
and enclose the left and right parts of the script body
single quotes
's/docTitl/Outline ' "$docTitl" '/g'
it turns out such a...
700
Posted By nezabudka
{ if(CONDITION = strcondition(COND)) print...
{ if(CONDITION = strcondition(COND)) print CONDITION"|"$147"|"$15"|"$16"|"$17"|"$4 }
700
Posted By nezabudka
You need to assign the return value from the...
You need to assign the return value from the function "strcondition(COND)" to CONDITION
700
Posted By nezabudka
And where did you get the CONDITION variable in...
And where did you get the CONDITION variable in "awk"?

--- Post updated at 21:59 ---

Is a colon needed here?

maybe
{ if(strcondition(COND))print COND"|"$147"|"$15"|"$16"|"$17"|"$4}
700
Posted By nezabudka
Hi the question under item 2. is not entirely...
Hi
the question under item 2. is not entirely clear
can you show the code how you are mapping and storing in the variable?
Showing results 1 to 25 of 398

 

Featured Tech Videos

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