Search Results

Search: Posts Made By: nezabudka
82,429
Posted By nezabudka
I'm sorry, not the same thing. Standard output...
I'm sorry, not the same thing. Standard output also falls under this filter.
82,429
Posted By nezabudka
Hi @apmcd47 |& grep -v 'No such file or...
Hi @apmcd47
|& grep -v 'No such file or directory'
same thing only in left hand
21,118
Posted By nezabudka
Hi How about sed? sed -r...
Hi
How about sed?
sed -r ':1;s/^([^,]+)\s*,\s*([^;]+);/\1, \2\n\1, /;t1' file
Name , Company_Worked (Header)
Asley, IBM
Asley, Amazon
Asley, BOA
Asley, Google
King.Jr, Wipro
King.Jr,...
82,429
Posted By nezabudka
Hi Try closing the stderr descriptor at the...
Hi
Try closing the stderr descriptor at the beginning of the script.
exec 2>&-
or redirect
exec 2> /dev/null
25,404
Posted By nezabudka
Hi So, passed by ... grep...
Hi
So, passed by ...
grep --include=*.{org,texi}

--- Post updated at 22:03 ---


Maybe I misunderstood something
grep -hrm8 '.' --include=*.{org,texi} ./
72,923
Posted By nezabudka
Hi There is Dynamic Extensions in gnu awk awk...
Hi
There is Dynamic Extensions in gnu awk
awk -lordchr 'BEGIN {print ord(chr(10))}'
168,239
Posted By nezabudka
I wanted to try to write everything in an AWK...
I wanted to try to write everything in an AWK script, but it's not so easy to encode utf-8 text in URLs through AWK
awk -F '",["n]' '
BEGIN {
text =...
168,239
Posted By nezabudka
Hi @bedtime thank you. Indeed, translating...
Hi @bedtime
thank you. Indeed, translating into French is much more complicated.
I tagged a release in v2.0.0 with support for multi-line subtitles.
Maybe this will change the situation? In...
168,239
Posted By nezabudka
Hi file Mother.srt Mother.srt: UTF-8 Unicode...
Hi
file Mother.srt
Mother.srt: UTF-8 Unicode text, with CRLF line terminators
sed -i 's/\r//g' Mother.srt
file Mother.srt
Mother.srt: UTF-8 Unicode text

./to.sh Mother.srt
parameters...
168,239
Posted By nezabudka
Hi I added a description to the repository....
Hi
I added a description to the repository. your 'seq' swears either at the wrong format or at the absence of a parameter. Try in the terminal first:
seq -f'(%.f)' 5
If everything works well then...
66,771
Posted By nezabudka
Hi I have problems with English so answer what...
Hi
I have problems with English so answer what is wrong in the output of this code?
sed -n '/DISTINCT/,/quit/s/^.*: //p' file
If you showed your achievements, it would be much clearer
168,239
Posted By nezabudka
Hello A good idea. I also started up. nezabudka...
Hello
A good idea. I also started up. nezabudka / srt_to_ass . GitLab (https://gitlab.com/nezabudka/srt_to_ass)
I tried to work with your script, but since I have slow Internet, I was not able to...
5,943
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\/'...
4,737
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 * * * *...
7,167
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 ...
4,737
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.
12,326
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...
7,167
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 ...
168,239
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 :)
168,239
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....
6,189
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...
6,189
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}...
168,239
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...
6,189
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 ...
6,678
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...
Showing results 1 to 25 of 478

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