Orhun Parmaksız 👾

Sometimes, all you need is a little terminal tool to be happy.

🌀 **regname** — Mass rename files.

💯 That's it... it does what it says.

🦀 Written in Rust & built with @ratatui_rs

⭐ GitHub: github.com/linkdd/regname

#rustlang #ratatui #tui #files #terminal #commandline #rename #productivity

Paul Sutton

Bash scripting 18 – Using data files 4

So, carrying on from the previous article(s). I am going to be using gnuplot to display the data. I found a useful site, that has examples of how to use the software, from basic to more advanced examples.

Notes: As with bash gnu plot has command history, so you can use arrow keys to move up / down between previously entered commands.

Based on the information at [2] we can produce a very basic plot of what is in log.csv

Load GNUPlot

gnuplot

and enter

plot 'log.csv'

This example isn't all that good really, but it at least produces some output. I have modified one of the examples further down that page

plot 'log.csv' using 1:2 with lines, 'log.csv' using 1:2 with lines

So the following data set

0, 1 1, 10 2, 10 3, 7 4, 2 5, 1 6, 15 7, 0 8, 19 9, 3

Should produce something like

Adding extra columns

We probably need more than two columns. This is easily done by modifying the loop in the script gendata1.csv. It is a good idea to copy this to a new script so it keeps the original as is

cp gendata1.sh gendata2.sh

As gendata1.sh has write permissions, these will be preserved in the new copy of the file. We can now edit gendata2.sh

echo "number" "data" # for reference, not written to file for ((i = 0 ; i < 10 ; i++)); do echo $i, $((RANDOM % 20)), $((RANDOM % 20)) # echo to screen (stdout) echo $i, $((RANDOM % 20)), $((RANDOM % 20)) >> log.csv # write to file #write_csv $(($i, $RANDOM % 10)) done

So all we are doing here is adding in, note the comma

, $((RANDOM % 20))

As the only difference between the lines

echo $i, $((RANDOM % 20)), $((RANDOM % 20)) # echo to screen (stdout) echo $i, $((RANDOM % 20)), $((RANDOM % 20)) >> log.csv # write to file

Is that the first line, writes to the screen, it may be better to test the script out, check it does what you want, then modify the line that writes to a file once you are happy.

References

1 gnuplot 2 gnuplot examples

Tags

#Bash,#Bashscripting,#Files,#UsingDataFiles,#Data,#gnuplot,#graphs

MastodonPeertubeJoin Mastodon

AI statement : Consent is NOT granted to use the content of this blog for the purposes of AI training or similar activity. Consent CANNOT be assumed, it has to be granted.

khm
use arrays.

$ files = ("file1" "file2" "file3")

$ echo ${files[0]}
file1

$ echo ${#files[@]} # get count
3

Geriatric Gardener

“WHY BEN SHAPIRO AND PRO-ISRAEL PUNDITS ARE MELTING DOWN OVER THE JFK FILES”

By Robert Inlakesh in Mint Press News

@palestine
@israel

“President Donald Trump’s decision to release previously classified JFK assassination files has sent pro-Israel conservative pundits into damage-control mode as renewed scrutiny falls on a potential Israeli motive in the killing of the 35th U.S. president”

mintpressnews.com/why-ben-shap

#Press #US #Trump #JFK #Classified #Files #ProIsrael #Zionist #MeltDown

Why Ben Shapiro and Pro-Israel Pundits Are Melting Down Over the JFK Files

The JFK files have rattled pro-Israel commentators,…

MintPress News
matt sephton

I am proud to announce that my Macintosh Magazine Media project has surpassed my self-imposed goal of 1 MILLION FILES, an achievement that fills me with both immense satisfaction and slight bewilderment. #marchintosh #macintosh #preservation #cdrom #files

blog.gingerbeardman.com/2025/0

Katharine O'Moore-Klopf, ELS

I've been an #editor for many years, and I still learn new things about #editing and #Microsoft #Word all the time. This one's from my colleague Adrienne Montgomerie: "Shrink #Files by Deleting Unused #Styles." Go read her helpful post! eiw365.com/shrink-files-by-del

Shrink Files by Deleting Unused Styles | Editing in Word

eiw365.com
Anthony Goubard

I'm giving away 5 free license keys of my advanced file manager Ant Commander Pro for the best feedback that would result in me implementing a part of the feedback in the file manager (bug/feature).
Valid this month and next month.
www.antcommander.com

:java: :duke: #free #giveaway #filemanager #files #software #windows #macos #linux

Christophe

✨ Friendly reminder that you can use images to customize folders ✨

I like to use emoji (converted in .ico format) because they are consistent and cover many subjects🌸

I use fluent emoji github.com/microsoft/fluentui- but there are some great artist with cool emoji packs out there !

#emoji #icons #files #organisation #customisation #OpenSource #computer #windows #tip #cute

TechHelpKB.com 📚

Knowing how to hide files & folders from view on Windows 11 can be really useful. These files won’t pop up during normal file browsing, and they’ll be difficult to find even if someone is specifically looking for them.

#microsoft #windows11 #hide #files
theverge.com/how-to/604098/win

How to hide files and folders on Windows

If you want to keep your files and folders hidden,…

The Verge
Woodoo Prod

I plugged a USB key into the Internet Box, formatted it, set up an FTP, and now I can send/receive stuff from all the machines with just a terminal/command line.

I love this old fashion method! :0)
And I save miles and time. :0))

#simplicity #efficiency #usb #ftp #server #internetbox #localhost #lan #files #share #terminal #commandline #internetbox #linux #msdos

Jan 18, 2025, 12:55 · · · 2 · 0
Alexey Skobkin

Если задаётесь иногда вопросом как быстро и безопасно передать файл(ы) по сети peer-to-peer - посмотрите на Magic Wormhole. А точнее на его альтернативные реализации - всё-таки оригинал написан на Python 🤷‍♂️

Например, для CLI это может быть wormhole-william на Go или wormhole.rs догадайтесь на чём.

Если нужен GUI, то это будет Rymdport или RiftShare. Оба есть в Flatpak. Второй недавно перешёл в состояние Read-Only. Первый жив и развивается - возможно, сейчас там уже нет тех мелких косячков, которые меня напрягали когда я тестировал его.

Есть версии и для смартфонов.

Естественно, они все используют один общий протокол и позволяют если нужно использовать свой релей.

Штука достаточно универсальная, поэтому иногда использую чтобы перекинуть файлы игры между машинами в сети или же стащить с сервера огромный бекап базы данных.

#soft #log #P2P #files #sharing #wormhole #pic

Jan 17, 2025, 14:08 · · · 3 · 1
Wave

Does anyone have experience with an error on #Linux relating to too many open files? I have increased the limit passed the hard limit and I am still getting the issue, even though my system isn't even using 50% of the RAM it has available.
#server #selfhosting #selfhost #linux #files #toomanyfiles #support #help