Perhaps
sed using a variable
??
Might be about the importance of flyspecs.
Search found 86 matches
- Wed Nov 20, 2024 7:16 am
- Forum: Scripts
- Topic: grep using a variable (Solved)
- Replies: 15
- Views: 830
Re: grep using a variable (Solved)
- Sun Oct 13, 2024 12:40 am
- Forum: Security
- Topic: Imagine if ALL 'Collective' History was erased and mankind had to start over
- Replies: 5
- Views: 341
Re: Imagine if ALL 'Collective' History was erased and mankind had to start over
Misconfigured firewalls ?
- Sat Sep 21, 2024 11:33 am
- Forum: Off-Topic Area
- Topic: Maths Problem (Grade 3)
- Replies: 35
- Views: 2361
Re: Maths Problem (Grade 3)
2 things is 42+42=84 - so rounding down to 80 seem a safe answer.
Check:
Estimating in school-classes is usually equivalent to rounding up/down.
Apple:35 ->40
Orange 40
Apple´+Orange is about 80
That'll be an A+ missus!
- Wed Sep 11, 2024 6:01 pm
- Forum: Fossapup64
- Topic: where are logs for X pls?
- Replies: 8
- Views: 406
Re: where are logs for X pls?
Try search the net for:
(EE) glamor0: GL error: GL_OUT_OF_MEMORY in glTexSubImage
- Thu Aug 22, 2024 9:11 am
- Forum: Programming
- Topic: regex string processing
- Replies: 7
- Views: 798
Re: regex string processing
Why does this work?
string='hello how are you today'
echo $string | awk '{$((NF + 1))="*";print $6$0$6}'}'
*hello how are you today*
It does NOT work.
Reason: Sloppyness and/or lack of awk-knowledge.
Better stay with sed in your project ...
- Fri Aug 16, 2024 3:50 am
- Forum: Programming
- Topic: permutation combination by position number in bash?
- Replies: 8
- Views: 778
Re: permutation combination by position number in bash?
#!/bin/bash
time {
n=23; i=0; while read in; do
nr=$(sed -r "s/(.)/\1\n/g" <<<$in | sort | uniq | wc -l)
[[ $nr == 5 ]] && i=$[$i+1]
[[ $nr == 5 && $n == $i ]] && out=$in && break
done <<<$(echo -e {1..4}{1..4}{1..4}{1..4}"\n")
echo $i:$out
}
#23:4312
#real 0m0.923s
#user 0m1.920s
#sys 0m1 ...
- Fri Aug 16, 2024 3:30 am
- Forum: Programming
- Topic: permutation combination by position number in bash?
- Replies: 8
- Views: 778
Re: permutation combination by position number in bash?
Conclusion
The script seems to have a logical flaw because it is impossible for a four-digit combination of numbers from 1 to 4 to have 5 unique characters. Therefore, the condition [[ $nr == 5 ]] will never be true, and the script will not produce a valid output. The comment #4312 seems to be ...
- Tue Aug 06, 2024 12:34 pm
- Forum: Security
- Topic: Ransomware Attack Today
- Replies: 7
- Views: 936
Re: Ransomware Attack Today
Hmm!!
Sleepers exist in the wild.
Might dwell on your backups.
How many HDs to toss?
How many backup-milestones to keep?
- Fri Aug 02, 2024 5:01 pm
- Forum: Forum Organization & Structure Council
- Topic: Finding topics marked as solved
- Replies: 2
- Views: 523
Re: Finding topics marked as solved
How common is the noun tittle?
About 0.2occurrences per million words in modern written English
- Tue Jul 30, 2024 2:25 pm
- Forum: Security
- Topic: Operating systems with AI negate VPN's and privacy
- Replies: 50
- Views: 3404
- Wed Jul 24, 2024 10:29 pm
- Forum: Users
- Topic: Unknown file suffix: .iso.zsync
- Replies: 1
- Views: 593
- Sat Jul 20, 2024 8:59 pm
- Forum: BookwormPup
- Topic: Save setting/changes on same USB as Puppy ? (BookwormPup64 10.0.6) (solved)
- Replies: 8
- Views: 1019
Re: Save setting/changes on same USB as Puppy ?
Puppy is of course Linux - but has some special traits.
Better consult/Search Forum Topics.
The Help is nice here - so just ask.
Two things you might want to do at this point:
1) make sure you undersstand the save-file options
the possibility of backing-up your save-files ...
- Sat Jul 20, 2024 6:53 pm
- Forum: BookwormPup
- Topic: Save setting/changes on same USB as Puppy ? (BookwormPup64 10.0.6) (solved)
- Replies: 8
- Views: 1019
Re: Save setting/changes on same USB as Puppy ?
Perhaps you should clarify whether
1) you boot bookworm on sda1
2)you boot bookworm on the shrinked sdb1
3)something else
- Mon Jul 08, 2024 8:38 am
- Forum: Security
- Topic: Cracking. What do u think? {CLOSED}
- Replies: 12
- Views: 1299
Re: Cracking. What do u think? {CLOSED}
The games people play:
https://telehack.com/telehack.html
- Sat Jun 15, 2024 1:18 pm
- Forum: Bug Reports
- Topic: Bug: USB port designations keep incrementing (Fossapup64 9.5)
- Replies: 63
- Views: 5693
Re: Bug: USB port designations keep incrementing (Fossapup64 9.5)
You made an edit today:
EDIT:
BookwormPup64 10.0.6 (x86_64)
In Pmount, choosing "Mount partition at boot", is not working. Is this a known issue?
It is working now. ......Sorry guys.
Thanks.
About Jafadmins script:
1) Underscore is ...
- Fri May 10, 2024 8:41 am
- Forum: Beginners Help
- Topic: How do I find the location of mtpaint?
- Replies: 6
- Views: 442
Re: How do I find the location of mtpaint?
try
Code: Select all
which mtpaint
will probably give you
/usr/bin/mtpaint
if its there - you should have seen it in FindnRun
- Mon Apr 15, 2024 7:58 pm
- Forum: Beginners Help
- Topic: Thunderbird Email Logon with Different Distros Fails
- Replies: 21
- Views: 1210
Re: Thunderbird Email Logon with Different Distros Fails
williwaw may provide a hands-on
else try:
Lifewire - has a recipe on traffic-logging w thunderbird on linux:
scroll down
https://www.lifewire.com/pop-imap-smtp- ... rd-1173156
- Fri Apr 12, 2024 9:09 am
- Forum: Scripts
- Topic: terminal todo list
- Replies: 33
- Views: 3748
Re: terminal todo list
terminal todo list
hmm - yeah someday
----
----
The classic linux commandline todo-list app is/was called todo.txt
and at least goes back to 2010.
Its still maintained.
Website,info,downloads:
http://todotxt.org/
----
Anyway - a todo-list-app is a rather personal thingie -
so good initiative.
- Sun Apr 07, 2024 9:50 am
- Forum: FatDog64
- Topic: Fatdog64-903 Final [17 Aug 2024]
- Replies: 227
- Views: 28480
Re: Fatdog64-901 Final [10 Oct 2023]
wiak wrote: Sun Apr 07, 2024 4:48 amvery handy to have a small distro with many useful utilities: FatDog seems to fit that portable need better than most any other distro nowadays.
Yes!!!
a high-quality distro
recommended
- Sat Feb 17, 2024 8:54 am
- Forum: Internationalization
- Topic: alsaequal.sh translated to Portugese
- Replies: 5
- Views: 511
Re: alsaequal.sh
Observe o sufixo "pt"
- Tue Jan 16, 2024 5:08 am
- Forum: Forum Organization & Structure Council
- Topic: moderation proposal
- Replies: 4
- Views: 575
Re: moderation proposal
@williwaw :good find.
Same site - specific link to the rules
https://www.bogleheads.org/forum/rules#section-2
- Tue Jan 16, 2024 4:06 am
- Forum: Forum Organization & Structure Council
- Topic: With the Recent Quittings and Resignations......
- Replies: 97
- Views: 7401
Re: With the Recent Quittings and Resignations......
What a great site this is -> https://412collection.neocities.org/
...
@rockedge I like it too. Maybe worth to add it to "Links" menu?
Me too.Used it for years.
I still remember the fondness of using
the NOP-version for officework.
XFCE+OpenOffice.sfs
Stitched together by someone named Grey.
- Tue Jan 16, 2024 12:01 am
- Forum: Forum Organization & Structure Council
- Topic: With the Recent Quittings and Resignations......
- Replies: 97
- Views: 7401
Re: With the Recent Quittings and Resignations......
I wanted to show cases where I think they made a mistake by not moderating
Constructive.Thanks.
IMHO - the stakeholders - sitemanager,moderators,members -
all fumbled in the vote-thread and
the hamas-thread.
Nothing is solved by NOT having the
talks,discussion.
We have seen various posts ...
- Wed Jan 03, 2024 12:38 am
- Forum: Users
- Topic: How to flush or unload RAM?
- Replies: 13
- Views: 1104
Re: How to flush or unload RAM?
Even with zero browsing, processes like copying and pasting (large) files, compiling, making pets and sfses, and stuff will quickly fill the RAM
Stuff are kept in RAM/cached for potential fast reuse/
re-access .
The system manages cache-swapping.
The system manages storage-IO.
Why do you want ...
- Wed Oct 11, 2023 2:45 am
- Forum: Bug Reports
- Topic: Bug: USB port designations keep incrementing (Fossapup64 9.5)
- Replies: 63
- Views: 5693
Re: Bug: USB port designations keep incrementing (Fossapup64 9.5)
What is /mnt+T?
Furthermore - judging from the titlebar in the pic -
the ROX-path seem to contain a space /mnt +T
@Governor: Could/would you explain?
It is very confusing that almost all 'mount points' look as if they are filled with actual files
@Governor: Are the non-actual mountpoints ...
- Fri Jun 30, 2023 11:07 pm
- Forum: Forum Organization & Structure Council
- Topic: Thanked, Been thanked: I don't want either one
- Replies: 77
- Views: 14810
Re: Thanked, been thanked: I don't want either one
@superhik: Does puppy_apprentice's suggestion suit you?
- Mon Jun 12, 2023 4:17 am
- Forum: Boot
- Topic: multiboot usb for puppy linux
- Replies: 6
- Views: 1814
Re: multiboot usb for puppy linux
@icake: Very nice explanations,project.
Perhaps you should edit this:
(both small letters and all CAPTIALS)
- Wed May 24, 2023 4:36 pm
- Forum: Announcements
- Topic: DistroWatch has deleted a lot of reviews for Puppy Linux, lowering score from high 8.9 to 7.78
- Replies: 24
- Views: 3819
Re: DistroWatch has deleted a lot of reviews for Puppy Linux, lowering score from high 8.9 to 7.78
User-reviews are what they are.
Here is a snippet from one:
Version: 22.12
Rating: 3
Date: 2022-12-20
Votes: 12It is a good distro, but it lacks support.
There is a forum but not very friendly.
Hmm?
- Wed Apr 26, 2023 7:02 pm
- Forum: Programming
- Topic: How to use wildcards with sed -i?
- Replies: 13
- Views: 1634
Re: How to use wildcards with sed -i?
Was
sed -i "s/$SELECTED='.*'/$SELECTED='$EDITS'/" "$DOC"
try
sed -i 's/'$SELECTED'=.*/'$SELECTED'='$EDITS'/' "$DOC"
or (shorter)
sed -i 's/\('$SELECTED'=\).*/\1'$EDITS'/' "$DOC"
(double-quote the variables i.e.... ' "$EDITS" '...if needed by data)
- Wed Mar 29, 2023 2:52 am
- Forum: Programming
- Topic: How to use sed to match multiple lines?
- Replies: 17
- Views: 1538
Re: How to use sed to match multiple lines?
HerrBert , MochiMoppel
Try
make a dir /mnt/sda3/x86_64/ spot tify
create a file in spottify named bad spot
Then run the codepieces.
Furthermore - when I tried MochiMoppels latest-
isolated header/path-items were NOT deleted ...