I have a list of patterns in a .txt file. [list.txt]. Foreach line in list.txt, I want to find all the files at a location which begin with the specified pattern in list.txt, and then move these files to another location.
Consider an example case.
I'm trying to make another file annotation script a little speedier than it has been by the up-until-now proven method of checking the last four characters in a filename before the "dot" (eg .jpg, .psd) against a list of known IPTC categories and Exiv2 command files.
I am compiling a new kernel on my Ubuntu 12.04.1 using make-kpkg.
In order to do so, I'm doing the same process as suggested in izx's answer. However, I want to direct the generated .deb files to my own folder instead of ../ (which is the default).
i just need help to write a shell script which when run should take the text doc(contains list of files which are to be copied) as input and then each file has to be checked to see if they belong to any of the 5 groupnames that we are going to mention in the other list document, id they belong to any of the group, then they should be copied to destinated location, If not we just have to ignore tho
Hallo guys,
I am new to Linux, I like to transfer multiple files from server A to server B. Source files URLs (from server A) are in a file called "list.txt"
Eg.
I'm contemplating writing a script that does this:
Goes through each file in /usr/lib
Does a dpkg -s search on each file.
Reports a list of "orphan" files not belonging to any .deb package.
The idea is that over time, I've installed a lot of make install software and I'd like to get a list of leftover files from manually installed software I've since deleted.
Hello all,
Have got a homework (Shell script) which I tried my best to make it work, but in vain. Can anyone help.Question:Write a bash program named fix-permissions.sh that accepts a list of users as arguments.1- If one user or more are given as arguments, the script should reset file permissions as follows: a. Directory ~/share to 750 (if it exists). b. All regular files inside ~/share to 744. c.
In Ubuntu, is it possible to view a list of all recently accessed files (by date?) The Unity search menu only shows a short list of recent files for a given search term: I'd like to see a longer list of recent files.
I think I once encountered a program that may have done something like this - I think it was an add-on for Gnome Do, but I can't remember its name.