Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-09-22 19:51:53

fixit
Member
Registered: 2015-01-19
Posts: 129

Get filename of multiple files

This works with single files but not multiple files.

Can I fix it?

basename %F > filename.txt && geany filename.txt && rm filename.txt


Ubuntu-Mate 24.04

Offline

#2 2024-09-24 03:11:59

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: Get filename of multiple files

i do not have a command named geany and have no idea what it does.  i have no idea what you want to get out of this.

my general approach to do some one thing to many files is to run a loop in a subshell like this:

(for filename in *;do ls -l "$filename";done)

the () to make a subshell are not literally required, but if a mistake is made, it is easier to kill what is going on, so i recommend having at least one subshell layer.

Last edited by Skaperen (2024-09-24 03:12:21)

Offline

#3 2024-10-07 10:57:41

fixit
Member
Registered: 2015-01-19
Posts: 129
LinuxFirefox 131.0

Re: Get filename of multiple files

Skaperen wrote:

i do not have a command named geany and have no idea what it does.  i have no idea what you want to get out of this.

my general approach to do some one thing to many files is to run a loop in a subshell like this:

(for filename in *;do ls -l "$filename";done)

the () to make a subshell are not literally required, but if a mistake is made, it is easier to kill what is going on, so i recommend having at least one subshell layer.

Geany is an text editor.


Ubuntu-Mate 24.04

Offline

#4 2024-10-08 06:26:07

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862
UbuntuFirefox 131.0

Re: Get filename of multiple files

are you going to be editing more than one file in one geany session or are you going to run separate geany sessions per file?

whatever way, how will you be providing the names of files?  will it be a list saved in a file of its own?

Last edited by Skaperen (2024-10-08 06:28:27)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 7 queries executed - Memory usage: 524.62 KiB (Peak: 531.84 KiB) ]