Search Results

Search: Posts Made By: nezabudka
109
Posted By nezabudka
I will show better crontab -l #no tasks,...
I will show better
crontab -l
#no tasks, empty
echo '*/1 * * * * /usr/bin/notify-send "*******HELLO TO EVERYONE HERE ON OUR MOON******"' >my_file
crontab my_file
crontab -l
*/1 * * * *...
109
Posted By nezabudka
Hi If in the current directory where you ran...
Hi
If in the current directory where you ran this command there was an empty file with the name 'ccs',
then you probably deleted all your tasks. Just create new ones and that's it.
214
Posted By nezabudka
In the Fedora is install like this dnf install...
In the Fedora is install like this
dnf install translate-shell
And thank you
I liked the program, I’ll try to work with it. I’m just learning English :)
214
Posted By nezabudka
Or maybe just do throw an agent? GitHub -...
Or maybe just do throw an agent?
GitHub - soimort/translate-shell: Command-line translator using Google Translate, Bing Translator, Yandex.Translate, etc....
184
Posted By nezabudka
I understand your idea. You have a list sorted by...
I understand your idea. You have a list sorted by ID and you process one ID at a time. You assume that the file being processed is too large for the memory allocated for this. I want to note the...
184
Posted By nezabudka
Slight optimization awk ' !A9[$1]++ ...
Slight optimization
awk '
!A9[$1]++ {A2[$1]=$3;A4[$1]=$5;A6[$1]=$6}
A2[$1]>$3 {A2[$1]=$3}
A3[$1]<$3 {A3[$1]=$3}
A4[$1]>$5 {A4[$1]=$5}
A5[$1]<$5 {A5[$1]=$5}...
322
Posted By nezabudka
Need to refine error handling choose() { ...
Need to refine error handling
choose() {
select button in $@ Quit; do
case $button in
Quit)
echo $REPLY - $button
break
;;
"")
echo ERROR...
Forum: Shell Programming and Scripting 2 Weeks Ago
690
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...
711
Posted By nezabudka
tmp=($(lftp -e "cd $REMOTE_DIR && glob -d echo...
tmp=($(lftp -e "cd $REMOTE_DIR && glob -d echo [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]; quit" -u $USER,$PASS $HOST))
Or maybe you have access via the SSH protocol? For example, by public key...
711
Posted By nezabudka
I will try to install 'lftp'
I will try to install 'lftp'
303
Posted By nezabudka
Ok, The right time to learn how to use the...
Ok, The right time to learn how to use the '--debug' option?
sort -k3nr --debug <<<"Server1 not found 1025 MAJOR some info here"
sort: text ordering performed using simple byte comparison
sort:...
486
Posted By nezabudka
Hi, @SanMota This can be solved by two commands...
Hi, @SanMota
This can be solved by two commands 'uniq' and 'sort'.
Do you work on the command line?
Show what you did and what exactly you can’t do
601
Posted By nezabudka
Hi, @RudiC sed -r...
Hi, @RudiC
sed -r 's/^([^,]*,){2}bcd,.*,(.){4}.*/&,\2/'
The marked greedy expression contains all the available fields except the last one,
which means that in the positions noted by you, the...
658
Posted By nezabudka
Hi, @RudiC awk ' NR==FNR {pat[$1] = $2 ...
Hi, @RudiC
awk '
NR==FNR {pat[$1] = $2
next
}
{print substr($0, 134, 12)
}
' FS='|' File2.txt File1.txt | cat -vet

606951-000 $
606951-000 $
607650-000 ...
601
Posted By nezabudka
Hi The string must be changed. Tools like awk,...
Hi
The string must be changed. Tools like awk, sed, and a shell script in the built-in programming language are suitable
This example on 'sed'
sed -r 's/([^,]*,){2}bcd,.*,(.){4}.*/&,\2/'
REMARK:...
552
Posted By nezabudka
Hi Because the shell must first create a...
Hi
Because the shell must first create a channel and then expand the variables.
And if it expands a variable, it skips the channel creation queue and tries to interpret the entire line as one...
487
Posted By nezabudka
Hi You can use the GNU extension - the 'asorti'...
Hi
You can use the GNU extension - the 'asorti' function in 'awk'
awk -F' *|-' -vm="$(LC_ALL=C locale ab_alt_mon)" '
BEGIN {for(n=split(m, M, ";"); n; n--) Mm[M[n]]=n}
{A[$7 Mm[$6] $5...
371
Posted By nezabudka
sed 'N;N;/5/ s/yes/no/' file sed...
sed 'N;N;/5/ s/yes/no/' file
sed '/^<alarmsend/{N;N;\%5</type>$% s/yes/no/}' file

--- Post updated at 13:44 ---

If you complicate the task as much as possible
sed -r '/^<alarm/...
537
Posted By nezabudka
Hi try so $(10) $(11) and so on (in awk) ...
Hi
try so
$(10) $(11) and so on (in awk)
${10} ${11} (in bash script)
Forum: What is on Your Mind? 4 Weeks Ago
686
Posted By nezabudka
Ok @Neo I'll try to collect telegram-cli from...
Ok @Neo
I'll try to collect telegram-cli from source https://github.com/vysheng/tg
Forum: What is on Your Mind? 4 Weeks Ago
686
Posted By nezabudka
telegram-desktop on fedora 30 8197
telegram-desktop on fedora 30

8197
210
Posted By nezabudka
Hi How about install dateutils ? datediff...
Hi
How about install dateutils ?
datediff 2020-03-04 2020-05-26
83
Forum: Shell Programming and Scripting 4 Weeks Ago
2,480
Posted By nezabudka
else in PCRE work such flag (?U:). I will put a...
else in PCRE work such flag (?U:). I will put a space so that it can be seen
cat file
abcdtest123^ DUMMY testabcd12234 DUMMY bla blabla12231311313blabla bla.....,,,,,bla
grep -oP...
576
Posted By nezabudka
maybe so? #!/bin/bash step=2999 declare...
maybe so?
#!/bin/bash

step=2999
declare -i start=12109 end=start+step count=1
stop=$(awk '{if($3>max) max=$3} END {print max}' file)

while [ $end -le $stop ]; do
awk -vA=$start...
370
Posted By nezabudka
Hi Try this ps --no-headers -eo...
Hi
Try this
ps --no-headers -eo "{\"'PID'\":\"'%p'\",\"'CPU_percentage'\":\"'%C'\"}"
and so on if you need add fields
Showing results 1 to 25 of 200

 

Featured Tech Videos

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