10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
For a given folder, I want to select any files find $PATH1 -f \( -name "*" but omit any files like pattern name ! -iname "*.jpg" ! -iname "*.xsession*" ..... \) and also omit any subfolder like pattern name -type d \( -name "/etc/gconf/gconf.*" -o -name "*cache*" -o -name "*Cache*" -o... (2 Replies)
Discussion started by: jcdole
2. Shell Programming and Scripting
he following are the files available in my directory
Here, "RSK" is file prefix and 123 is a code name and rest is just timestamp of the file when its... (7 Replies)
Discussion started by: kridhick
3. Shell Programming and Scripting
How do i copy files matching multiple conditions. Requirement is to search files starting with name abc* and def* and created on a particular date or date range given by the user and copy it to the destination folder.
i tried with different commands.
below one will give the list ,... (5 Replies)
Discussion started by: NarayanaPrakash
4. UNIX for Dummies Questions & Answers
I have the following folder structure:
Folder6260/Data... (2 Replies)
Discussion started by: alex2005
5. Shell Programming and Scripting
Our Apache log files are written to a location on the server that we as clients have no access. Don't ask.
Every month, I have to e-mail the administrator to have him manually copy our Apache log files to a directory in our file space. You can probably guess how efficient it is to do things this... (3 Replies)
Discussion started by: gregraven
6. Shell Programming and Scripting
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Discussion started by: santosh2626
7. UNIX for Dummies Questions & Answers
When I'm starting my script I'm giving to it two parameters:
script.sh ext1 ext2
I need to copy all files in a directory fitting ext1, to the same folder, with the same names, but with the changed extension to ext2.
Till now I've just managed to do it for only 1 file, but I... (16 Replies)
Discussion started by: vacuity93
8. Shell Programming and Scripting
I have the following subfolder with files:
And i have a set of new folders which have exactly the same structure as above but different disk without the files:
Now i would like to... (6 Replies)
Discussion started by: total_ysf
9. Shell Programming and Scripting
I have several files in a specific directory.
A specific string in one file can occur in another files.
If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string.
ShortName "Blue... (2 Replies)
Discussion started by: premier_de
10. Shell Programming and Scripting
Alright, basically we're in the whole where we can't tar/gzip a folder since its to big so how do I copy files to a new folder for example
I got files from a-Z, i want to copy all files which starts with a A or a into another folder heres file structure
./backups/B... (11 Replies)
Discussion started by: Lamonte
LIBBASH(7) libbash Manual LIBBASH(7)
libbash -- A bash shared libraries package.
libbash is a package that enables bash dynamic-like shared libraries. Actually its a tool for managing bash scripts whose functions you may
want to load and use in scripts of your own.
It contains a 'dynamic loader' for the shared libraries ( ldbash(1)), a configuration tool (ldbashconfig(8)), and some libraries.
Using ldbash(1) you are able to load loadable bash libraries, such as getopts(1) and hashstash(1). A bash shared library that can be loaded
ldbash(1) must answer 4 requirments:
1. It must be installed in $LIBBASH_PREFIX/lib/bash (default is /usr/lib/bash).
2. It must contain a line that begins with '#EXPORT='. That line will contain (after the '=') a list of functions that the library
exports. I.e. all the function that will be usable after loading that library will be listed in that line.
3. It must contain a line that begins with '#REQUIRE='. That line will contain (after the '=') a list of bash libraries that are
required for our library. I.e. every bash library that is in use in our bash library must be listed there.
4. The library must be listed (For more information, see ldbashconfig(8)).
Basic guidelines for writing library of your own:
1. Be aware, that your library will be actually sourced. So, basically, it should contain (i.e define) only functions.
2. Try to declare all variables intended for internal use as local.
3. Global variables and functions that are intended for internal use (i.e are not defined in '#EXPORT=') should begin with:
For example, internal function myfoosort of hashstash library should be named as
This helps to avoid conflicts in global name space when using libraries that come from different vendors.
4. See html manual for full version of this guide.
Hai Zaar <email@example.com>
Gil Ran <firstname.lastname@example.org>
ldbash(1), ldbashconfig(8), getopts(1), hashstash(1) colors(1) messages(1) urlcoding(1) locks(1)
Linux Epoch Linux