Search Results

Search: Posts Made By: nezabudka
178
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...
Forum: Shell Programming and Scripting 19 Hours Ago
117
Posted By nezabudka
Hi sed 's#.*:\([^-][^-]*\)-.*#\1\n&#'
Hi
sed 's#.*:\([^-][^-]*\)-.*#\1\n&#'
135
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...
476
Posted By nezabudka
{ if(CONDITION = strcondition(COND)) print...
{ if(CONDITION = strcondition(COND)) print CONDITION"|"$147"|"$15"|"$16"|"$17"|"$4 }
476
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
476
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}
476
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?
174
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...
174
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...
379
Posted By nezabudka
Hi no pipe needed sed '/inlineifset/,/^...
Hi
no pipe needed
sed '/inlineifset/,/^ *$/!d; s/@inlineifset{mrg, @opar{@bullet{} @//' $flnm
458
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...
458
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...
107
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 2 Weeks Ago
390
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...
632
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]...
527
Posted By nezabudka
LESS=+/"^\s*RS\s" man awk RS The...
LESS=+/"^\s*RS\s" man awk
RS The input record separator, by default a newline.
...
it was RS='\n' has become RS='<'
this can be imagined as if in the text the character '<' is...
603
Posted By nezabudka
I checked Fedora's repository. The package is...
I checked Fedora's repository. The package is called "incron"
Thanks
527
Posted By nezabudka
Hi try this awk -F '>' '/^SeriesName/ {print...
Hi
try this
awk -F '>' '/^SeriesName/ {print $2}' RS='<' file
Forum: Shell Programming and Scripting 3 Weeks Ago
235
Posted By nezabudka
It’s interesting that on "zsh" it works
It’s interesting that on "zsh" it works
Forum: Shell Programming and Scripting 3 Weeks Ago
235
Posted By nezabudka
This is how it will be without "eval" $( :...
This is how it will be without "eval"
$( : ${path%/*} && echo ${_##*/} )
that would be without "echo" :)
Forum: Shell Programming and Scripting 3 Weeks Ago
235
Posted By nezabudka
Hi @wisecracker I think this is the same...
Hi @wisecracker
I think this is the same option. Change a little and it will be quite practical
: ${path%/*} && echo ${_##*/}
but it’s just not convenient to pass this parameter on
Forum: Shell Programming and Scripting 3 Weeks Ago
235
Posted By nezabudka
love things like that echo $(expr match "$path"...
love things like that
echo $(expr match "$path" '.*/\([^/]*\)/[^/]*')
Forum: Shell Programming and Scripting 3 Weeks Ago
235
Posted By nezabudka
Hi try this basename $(dirname...
Hi
try this
basename $(dirname /var/talend/nat/cdc)

--- Post updated at 11:33 ---

basename ${path%/*}

--- Post updated at 11:51 ---

Here is a solution I finded completely not practical...
315
Posted By nezabudka
Hi enca output.txt 7bit ASCII characters ...
Hi
enca output.txt
7bit ASCII characters
Mixed line terminators
Does that bother you?
634
Posted By nezabudka
Hi And it will not be the same thing without...
Hi

And it will not be the same thing without a leading current directory?
find * -prune -name 'NS6142*'
Showing results 1 to 25 of 380

 

Featured Tech Videos

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