General NAS-Central Forums

Welcome to the NAS community
It is currently Fri Oct 20, 2017 5:42 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat Dec 24, 2016 9:16 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
Done, thanks! :)

BTW: Do You know an except selector in bash? :D

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Mon Dec 26, 2016 1:03 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
https://bash.cyberciti.biz/guide/Logical_Not_!


Top
 Profile  
 
PostPosted: Mon Dec 26, 2016 2:51 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
To be clear, I am looking for an exclude selector. For example, I have a directory called 'folder', and I want to select all files, except the a.txt and the test.html. The whole select Can be easily done by:

/path/to/folder/*

But I want do cut theese two files from the selection. Can it be done using only one command?

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Mon Dec 26, 2016 7:54 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
It depends, what do you want to do further with these files?


Top
 Profile  
 
PostPosted: Mon Dec 26, 2016 8:39 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
The files was just an example, because it is easier to understand, what I mean (I thought)... But I want to Do it with the slacker tool. For example, the command looks like this:

Code:
slacker -aA br2:ffmpeg2/


Normally, it should select, and after an Ok reinstall all the packages at Your ffmpeg2 folder. But I am looking for a selector, which remove the rtmpdump package (just an example, I wanted to Do it with the ffmpegthumbnailer originally) from the auto selected ([ * ]) packages without manual listing the package names, that I want to reinstall.

If I want to Do it with files, I Can redirect the ls output to a variable and after it, simply remove the file pathes, that are excluded. But with packages, that is more complicated...

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Tue Dec 27, 2016 7:18 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
With slacker things are complicated. The only way to exclude is to put package name in /ffp/etc/funpkg/ignore file, but I found it working unreliable.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 96 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group