Search Results

Search: Posts Made By: nezabudka
96
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
96
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
206
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? 1 Day Ago
328
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? 2 Days Ago
328
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? 3 Days Ago
178
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?
201
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...
201
Posted By nezabudka
Hi touch \\*\'fileName\'*\\ ls ...
Hi
touch \\*\'fileName\'*\\
ls
'\*'\''fileName'\''*\'
ls -b
\\*'fileName'*\\
dir
\\*'fileName'*\\
compgen -f
\*'fileName'*\
281
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? 5 Days Ago
328
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 :)
322
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...
147
Posted By nezabudka
Hi sed 's#.*:\([^-][^-]*\)-.*#\1\n&#'
Hi
sed 's#.*:\([^-][^-]*\)-.*#\1\n&#'
256
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...
616
Posted By nezabudka
{ if(CONDITION = strcondition(COND)) print...
{ if(CONDITION = strcondition(COND)) print CONDITION"|"$147"|"$15"|"$16"|"$17"|"$4 }
616
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
616
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}
616
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?
195
Posted By nezabudka
here is opposites \K grep -ioP...
here is opposites \K
grep -ioP 'project\D+(?=\d+\.([\d,a-z]+\.){1,}[\d,a-z]+|\d+\.[\d,a-z]+|\d+)'
maybe means forget all follows matches?

--- Post updated at 18:18 ---

exactly means forget...
195
Posted By nezabudka
Hi It's a bit redundant option -i applies to...
Hi
It's a bit redundant
option -i applies to the whole template
grep -ioP 'project\D+\K(\d+\.([\d,a-z]+\.){1,}[\d,a-z]+|\d+\.[\d,a-z]+|\d+)'
if you want to limit it is better so
grep -oP...
Forum: Shell Programming and Scripting 2 Weeks Ago
513
Posted By nezabudka
Hi no pipe needed sed '/inlineifset/,/^...
Hi
no pipe needed
sed '/inlineifset/,/^ *$/!d; s/@inlineifset{mrg, @opar{@bullet{} @//' $flnm
Forum: Shell Programming and Scripting 2 Weeks Ago
585
Posted By nezabudka
the command given above writes the open buffer to...
the command given above writes the open buffer to a disk. So there is no need for an open window to execute command :w.
Do you need to exit vim?

--- Post updated at 16:53 ---

Maybe the...
Forum: Shell Programming and Scripting 2 Weeks Ago
585
Posted By nezabudka
Hi Any open file in "vim" generates a "swap"...
Hi
Any open file in "vim" generates a "swap" file. This is of course a band-aid
ex -rnes +wq /tmp/.xxx0000.txt.swp

--- Post updated at 12:00 ---

So it will be more correct
ex -rns +wq...
113
Posted By nezabudka
Hi Replace backquotes with single quotes ...
Hi
Replace backquotes with single quotes
ignore_list=`tmp|docker|WinSxS|Permission|HISTORY|alternatives|bearer11ssl|manifest`
Forum: Shell Programming and Scripting 3 Weeks Ago
507
Posted By nezabudka
Hi maybe find "$SEARCH_PATH" -maxdepth 1 \(...
Hi
maybe
find "$SEARCH_PATH" -maxdepth 1 \( -newer "$FILE_DATE_REF_END" -o ! -newer "$FILE_DATE_REF_DEB" \)

--- Post updated at 19:52 ---

or
find "$SEARCH_PATH"/* -prune \( -newer...
757
Posted By nezabudka
Hi I honestly didn’t understand anything except...
Hi
I honestly didn’t understand anything except the first part of the program.
So I’ll just tweak the style to make it better to read
awk -F, '
NR == 1 { next }
!course[$3] { low[$3]...
Showing results 1 to 25 of 390

 

Featured Tech Videos

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