Search found 259 matches

by Burunduk
Mon Feb 03, 2025 3:28 pm
Forum: BookwormPup
Topic: Firefox issue with active field and focus indicator (highlight) [CLOSED]
Replies: 35
Views: 5158

Re: Firefox issue with active field and focus indicator (highlight) [CLOSED]

It's not a fix but it might be useful:

  • choose a folder

  • press CTRL-L

  • enter a filename

This shortcut is commonly used in various apps (also in Firefox itself) to give the focus to the address bar.

by Burunduk
Mon Dec 23, 2024 5:54 am
Forum: Off-Topic Area
Topic: Merry Christmas and Happy New Year.
Replies: 12
Views: 855

Re: Merry Christmas and Happy New Year.

Merci, Sonia, it's one of the most beautiful greeting cards I've ever seen.

Joyeux Noël ! Bonne année, bonne santé !

by Burunduk
Fri Nov 29, 2024 1:04 pm
Forum: Users
Topic: tar is being annoying [Solved]
Replies: 3
Views: 269

Re: tar is being annoying

--newer-mtime ?


The ‘--after-date=date’ (‘--newer=date’, ‘-N date’) option causes tar to only work on files whose data modification or status change times are newer than the date given.
...
If you want tar to make the date comparison based only on modification of the file’s data (rather than ...
by Burunduk
Sat Nov 23, 2024 11:30 am
Forum: Filesystem
Topic: F2 - Command-line batch renaming tool
Replies: 16
Views: 3011

Re: F2 - Command-line batch renaming tool

The bug has been fixed, the author has noticed it himself without a report.

New version - f2 2.0.3

Fix bug caused by space trimming in `--find`, `--replace`, `--exclude`, and `--exclude-dir`

---


I do see problems when using curly brackets in combination with f2's placeholders, which also ...
by Burunduk
Fri Nov 22, 2024 3:38 pm
Forum: Filesystem
Topic: F2 - Command-line batch renaming tool
Replies: 16
Views: 3011

Re: F2 - Command-line batch renaming tool

MochiMoppel
No offense, of course. Just failed to spot an evidence of constructive approach in your initial reaction. Thanks for the clarification.
I've found f2 to be a very useful tool. Otherwise I wouldn't care to download the go compiler, especially with my limited plan. Not that the GUI ...
by Burunduk
Fri Nov 22, 2024 1:44 pm
Forum: Filesystem
Topic: F2 - Command-line batch renaming tool
Replies: 16
Views: 3011

Re: F2 - Command-line batch renaming tool


Bad news: it has a bug/regression that prevents replacing spaces with underscores or vice versa. f2 -f " " -r "_" doesn't work anymore.
Replacing spaces with underscores works when using octal instead of literal space : f2 -f '\40' -r '_' , however replacing underscores with spaces seems not to ...
by Burunduk
Fri Nov 22, 2024 10:24 am
Forum: Filesystem
Topic: F2 - Command-line batch renaming tool
Replies: 16
Views: 3011

Re: F2 - Command-line batch renaming tool

In fact f2 is designed for more complex renaming tasks.

It's a new version again - 2.0.1

Good news: the natural sorting has finally been added.

Bad news: it has a bug/regression that prevents replacing spaces with underscores or vice versa. f2 -f " " -r "_" doesn't work anymore.

The reason is ...
by Burunduk
Wed Nov 20, 2024 7:07 am
Forum: Scripts
Topic: grep using a variable (Solved)
Replies: 15
Views: 1383

Re: grep using a variable (Solved)


... i even change ' to " but no results



You've got an error - this is a result too.

' and " are quite different in bash.

'$var' is just a literal string, no expansion happens;

'a\' is OK but "a\" is wrong - the backslash escapes the quote, it should be "a\\" ;

Do you expect me to guess ...
by Burunduk
Mon Nov 18, 2024 12:23 pm
Forum: Scripts
Topic: grep using a variable (Solved)
Replies: 15
Views: 1383

Re: grep using a variable

AntonioPt wrote: Sun Nov 17, 2024 10:03 pm

im using this sed but aint working since gonna add in all names

You can limit the range of lines where sed will search for a "Name=":

Code: Select all

sed -i -e '/^\[.*Entry/,/^\[/{/^Name=/a\' -e "the line you want to add" -e '}' sample.desktop
by Burunduk
Tue Nov 05, 2024 11:54 pm
Forum: Programming
Topic: Parsing how question
Replies: 4
Views: 623

Re: Parsing how question


This would also work with bash/ash/dash but uses sed :
echo $OLD | sed 's/false,/&\n/g' | sed -rn '/false,$/ s/(.*htm)(.*\/[^,]*)(.*)/\"htm\2,/p'


Just a note: this snippet works because the echo command outputs the whole thing as a single line.

For a multi-line input this sed command could ...
by Burunduk
Sat Aug 17, 2024 12:14 am
Forum: Programming
Topic: permutation combination by position number in bash?
Replies: 8
Views: 1135

Re: permutation combination by position number in bash?


I found this script and would like to find a specific combination by its number in the sequence.
If 4312 comes in position 23, can this combination be found just by calculating the sequence number 23 without comparing and running through all possible sequences?



Bash has a very limited support ...
by Burunduk
Wed Jul 31, 2024 11:35 pm
Forum: Programming
Topic: Assign command + options to a single variable?
Replies: 18
Views: 1997

Re: Assign command + options to a single variable?

MochiMoppel wrote: Wed Jul 31, 2024 10:43 pm

You've got "$@" parameters at the end of your command. Be aware that these are NOT the same parameters…

You've a point here! I was too lazy to actually test the functions (or even read the code carefully).

by Burunduk
Wed Jul 31, 2024 10:32 pm
Forum: Programming
Topic: Assign command + options to a single variable?
Replies: 18
Views: 1997

Re: Assign command + options to a single variable?


I see no repeating of that YAD command, so why in a function then ?

No repeating here too:
if grep -q 'Quirky April64' /etc/DISTRO_SPECS ||
grep -q 'puppy_tahr64' /etc/os-release ||
grep -q 'puppy_xenialpup' /etc/os-release ||
grep -q 'puppy_xenialpup64' /etc/os-release
then
set_library ...
by Burunduk
Sun Jul 28, 2024 6:29 pm
Forum: Beginners Help
Topic: pop up said there is a virus on your computer click here to remove.
Replies: 18
Views: 1637

Re: pop up said there is a virus on your computer click here to remove.

The popup window looks exactly like a firefox push notification . You've probably allowed them inadvertently.

There is a mozilla article that describes the feature and shows how to disable it.

Basically, you need to open the firefox settings page and then go to Privacy & Security -> Permissions ...
by Burunduk
Mon May 27, 2024 3:23 am
Forum: Scripts
Topic: how to properly exit bash?
Replies: 10
Views: 1787

Re: how to properly exit bash?


using a launch script which opens a terminal and calls [scriptname] script.


I'm using this launcher to run a script in a terminal. It's an excerpt from a bigger script that asks for confirmation before launching anything from the rox-filer. The terminal window stays open with an active bash ...
by Burunduk
Tue May 07, 2024 3:12 am
Forum: Scripts
Topic: How to handle carriage return input in sed?
Replies: 14
Views: 1937

Re: How to handle carriage return input in sed?

Code: Select all

CONTENT='line 1
line 2
line 3'

INSERTTEXT='extra line(s)\

'
echo "$CONTENT" | sed "3i $INSERTTEXT"

results in

Code: Select all

line 1
line 2
extra line(s)

line 3

---

citron means c itron that is change the content of every line to "itron".

by Burunduk
Mon May 06, 2024 4:08 am
Forum: Scripts
Topic: How to handle carriage return input in sed?
Replies: 14
Views: 1937

Re: How to handle carriage return input in sed?


This line handles the carriage return but adds a slash and space to the beginning of all inserted lines:

sed -i "${LINENUM}i\/ ${INSERTTEXT}" ${TASKS_DIR}"${*}"



A backslash is expected, not a slash. A literal newline is expected too:


sed -i "${LINENUM}i\\
${INSERTTEXT}" ${TASKS_DIR ...
by Burunduk
Wed May 01, 2024 5:51 pm
Forum: Scripts
Topic: terminal todo list
Replies: 33
Views: 4794

Re: terminal todo list


works like this:

root# todoinsert sMove

Current text:
1:shelves
2:drumheads
3:drum parts/hardware
4:electronics
5:guitars
6:computer/board

Type line number to insert text: 3
Enter text to insert: sticks and mallets

Updated text:
1:shelves
2:drumheads
3:sticks and mallets
4:drum parts/hardware ...
by Burunduk
Mon Apr 29, 2024 8:51 pm
Forum: Scripts
Topic: terminal todo list
Replies: 33
Views: 4794

Re: terminal todo list



0 ~ $ todoa
bash: /home/88/bin/todoa: cannot execute: required file not found



It could be this problem -- an error in the shebang.

On my Fossapup-9.5:


root# echo $'#!/bin/bash\r' >test.sh
root# chmod 755 test.sh
root# bat test.sh ...
by Burunduk
Sun Apr 14, 2024 12:30 am
Forum: Scripts
Topic: terminal todo list
Replies: 33
Views: 4794

Re: terminal todo


todo get dogfood works
fin get dogfood fails
error reports get is removed from list , but neither get or get dogfood is removed

Inconsistency:

touch ${TASKS_DIR} "${*}" in the function todo

but

mv ${TASKS_DIR} "$1" ${COMPLETED_DIR} in the function fin

Replace $1 with ${*} in the mv and ...
by Burunduk
Sun Nov 26, 2023 11:44 pm
Forum: Users
Topic: Firefox always asks to restore sessions
Replies: 16
Views: 1821

Re: Firefox always tries to restore windows

fredx181 wrote: Sat Nov 25, 2023 8:09 pm

Other way (only way AFAIK, but anyone correct me if I'm wrong) to prevent is to configure Firefox in the settings to not remember history, but that may not be what you want.

There is a setting for this in the about:config page: browser.sessionstore.resume_from_crash.

by Burunduk
Mon Nov 13, 2023 4:21 am
Forum: Users
Topic: Update Hexchat server list and Geany
Replies: 11
Views: 2627

Re: Update Hexchat server list and Geany


there was a extra Quotes on it terminal_cmd=rxvt -e /bin/sh "%c"



The default geany.conf file in Fossapup64-9.5 contains the line with a typo that needs to be fixed:

terminal_cmd=rxvt -e "/bin/sh "%c"

All my pinstall.sh script has is a single sed command:

sed -i 's!terminal_cmd=rxvt -e ...
by Burunduk
Sun Nov 12, 2023 8:59 pm
Forum: Programming
Topic: Icon script to make calendars
Replies: 5
Views: 1359

Re: Icon script to make calendars

Dziękuję za wskazówkę. I've compiled Icon 9.5.23a on my Fossapup64-9.5 without a problem. It seems to work:

A successful graphics build confirmed
A successful graphics build confirmed
colrbook.png (12.78 KiB) Viewed 1291 times

Don't really know what to do with this language next but it looks interesting.

by Burunduk
Sun Nov 12, 2023 9:59 am
Forum: Users
Topic: Update Hexchat server list and Geany
Replies: 11
Views: 2627

Re: Update Hexchat server list and Geany


i should jus use a SED command but to convert to pet i didnt knew how thats why i did the pet


I've made a sample pet. It probably only works for Fossapup64-9.5 and shouldn't change anything in other puppy distros.
The pet installs nothing but the pinstall.sh script runs anyway during the ...
by Burunduk
Sun Nov 12, 2023 6:19 am
Forum: Users
Topic: Update Hexchat server list and Geany
Replies: 11
Views: 2627

Re: Update Hexchat server list and Geany


as well Geany when it comes to run a bash script


update_geany.pet overwrites the existing geany configuration file - /root/.config/geany/geany.conf - erasing all the customized user preferences.
If your intention is just to fix terminal_cmd=rxvt -e "/bin/sh "%c" (messed up quotes), you could ...
by Burunduk
Sun Oct 29, 2023 4:51 am
Forum: Users
Topic: Filename with umlaut not valid UTF-8, but duplicate is valid
Replies: 9
Views: 938

Re: Filename with umlaut not valid UTF-8, but duplicate is valid

MochiMoppel wrote: Sun Oct 29, 2023 2:11 am

I have en_US.UTF-8 (the default), and this used to work. Now it doesn't.

Can see it in VoidPup64-22.02. Probably a change in the glibc. At least find /tmp/ -not -regex ".*" still works. It's trying to match a whole path so it's not an equivalent but better than nothing.

by Burunduk
Sat Oct 28, 2023 3:58 pm
Forum: Users
Topic: Filename with umlaut not valid UTF-8, but duplicate is valid
Replies: 9
Views: 938

Re: Filename with umlaut not valid UTF-8, but duplicate is valid


Edit :BW64 uses find (GNU findutils) 4.9.0 . It behaves now like busybox find :twisted: Older versions are fine.


Version 4.7.0 in @rockedge 's F96-CE still works fine. However using F96-CE's version in BW64 does not work ... and this may be an indication that find is not the culprit. I ...
by Burunduk
Thu Oct 26, 2023 6:31 pm
Forum: Users
Topic: Filename with umlaut not valid UTF-8, but duplicate is valid
Replies: 9
Views: 938

Re: Filename with umlaut not valid UTF-8, but duplicate is valid


Let's create an example. Following code will create an empty file in directory /tmp with an invalid UTF-8 character in its file name. In ROX-Filer the name will appear as AüFilename , in other file managers and in the GTK Open dialog it will appear as A?Filename
> /tmp/A$'\xFC'Filename ...
by Burunduk
Fri Oct 13, 2023 1:43 pm
Forum: Users
Topic: Duplicated files not the same? Interpreting the diff command (solved - sort of)
Replies: 9
Views: 1061

Re: Duplicated files not the same? Interpreting the diff command (solved - sort of)


I ran diff and got the result below:
# diff -q <(xxd ./file_S15X) <(xxd ./file_S15Y) <--< the command
Files /dev/fd/63 and /dev/fd/62 differ <--< the result

This is a very convoluted way to compare files.
Tested it with an about 500 MB iso file and two its duplicates on Fossapup64. It took ...
by Burunduk
Fri Oct 13, 2023 1:30 pm
Forum: Users
Topic: Re: change urxvt folder color, how? (SOLVED)
Replies: 3
Views: 609

Re: change urxvt folder color, how?

MochiMoppel has explained how to change the ls colors.
Other programs can use the blue color too. If you want to change colors in urxvt (for all the programs it runs), you can add the lines

URxvt.color4: #5555ff - for the blue
URxvt.color12: #7777ff - for the bold blue (the one used in ls for ...

Go to advanced search