Search Results

Search: Posts Made By: nezabudka
74
Posted By nezabudka
Hi how about? grep '^outbox\/logs\/' temp.txt...
Hi
how about?
grep '^outbox\/logs\/' temp.txt | tail -1

--- Post updated at 11:35 ---

maybe so
grep '^outbox\/logs\/' temp.txt | sort -t_ -nk2,2.4 | tail -1
or
grep '^outbox\/logs\/'...
125
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 * * * *...
116
Posted By nezabudka
cat pattern.txt chr1 1000 2000 chr1 ...
cat pattern.txt
chr1 1000 2000 chr1 10000 11000
chr1 1000 2000 chr1 11000 12000
chr1 1000 2000 chr1 12000 13000
cat DB_file.txt
chr1 1000 ...
125
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.
118
Posted By nezabudka
Hi I can give a hint for a start. Field...
Hi
I can give a hint for a start. Field separator in 'awk' can be set for each file individually
for instance:
awk '{print $1}' DEB_TABLE FS=\| OFS=\| abc.dat
You need to create an array from the...
116
Posted By nezabudka
Hi try this awk ' NR == FNR ...
Hi
try this
awk '
NR == FNR {A[$1$2$3$4$5$6]; next}
$1$2$3$4$5$6 in A
' pattern.txt DB_file.txt

--- Post updated at 12:41 ---

in the same format pattern and db
awk '
NR == FNR ...
280
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 :)
280
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....
201
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...
201
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}...
280
Posted By nezabudka
Hi perl -pe 's/\w(?=\x27)|\[\x27|\x27\]//g' I...
Hi
perl -pe 's/\w(?=\x27)|\[\x27|\x27\]//g'
I think that the data still has a more complex form than in the example?

--- Post updated at 14:06 ---

perl -pe...
201
Posted By nezabudka
Hi Maybe this will be a little clearer awk ' ...
Hi
Maybe this will be a little clearer
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 ...
152
Posted By nezabudka
Hi sed '/Cooker.*Available$/!d' Sample.txt ...
Hi
sed '/Cooker.*Available$/!d' Sample.txt
But as @Neo showed 'grep' here is the best option
You can change a little
grep 'Cooker.*Available$' Sample.txt

--- Post updated at 19:21 ---

More...
385
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...
385
Posted By nezabudka
It turned out to be a good toy :) #!/bin/bash ...
It turned out to be a good toy :)
#!/bin/bash
choose() {
select button in $@ Quit; do
case $button in
Quit)
echo $REPLY - $button
break;;
*)
echo...
217
Posted By nezabudka
Keep the original whitespace sed -r...
Keep the original whitespace
sed -r 's/^(\S*(\S{2})\s*).*/\1\2/' Input_file
Use tab
sed -r 's/^(\S*(\S{2})).*/\1\t\2/' Input_file
Forum: Shell Programming and Scripting 2 Weeks Ago
824
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...
756
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...
756
Posted By nezabudka
All I can advise #!/bin/bash DATE=`date...
All I can advise
#!/bin/bash
DATE=`date +%Y%m%d -d "1 days ago"`

USER='user'
PASS='pass'

HOST='192.168.1.1'
LOCAL_BACKUP_DIR='/app/'${DATE}''
REMOTE_DIR='/app/log'
tmp=($(lftp -e "cd...
756
Posted By nezabudka
I will try to install 'lftp'
I will try to install 'lftp'
756
Posted By nezabudka
I understood what the problem was. We cannot...
I understood what the problem was. We cannot define a locally remote directory
756
Posted By nezabudka
and? did we solve your problem? If not, then...
and?
did we solve your problem?
If not, then specifically on the code above, write what does not work.

I tried to divide the problem into its component parts. In the first, you need to find the...
756
Posted By nezabudka
Hello Please do not quote everything...
Hello
Please do not quote everything meaninglessly. This makes it difficult to work with your topic.
The main task was to find the last directory either by number or by creation time.
I still...
634
Posted By nezabudka
Hi, @zooby pay attention to the previous post...
Hi, @zooby
pay attention to the previous post #8
it will be enough for you to replace == with != and instead of 4 use the number 9
if of course I understood everything correctly

--- Post...
756
Posted By nezabudka
Sorry, I can’t understand the question. In the...
Sorry, I can’t understand the question. In the above examples with pattern '[0-9]' ,
the largest eight-digit integer or the pattern itself (if no matches are found) will be displayed in the "$_"...
Showing results 1 to 25 of 466

 

Featured Tech Videos

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