This creates a file that has the names of the duplicates found in dir==$2 then deletes them from directory $2. Be careful this script could clobber something you really need. It also DOES NOT consider links, which could be important. All in all this script is not a great idea - but I think it does what you specifed
I would like to be able to delete the first n lines of a file from inside of a ksh script. I am not sure how to achieve this or if it is possible. Could someone please help. Thanks in advance. (5 Replies)
Hi
I have a strange problem. Sometimes when I execute the below command something wierd happens.
rsync -avz -e ssh travegre@travegre.net: ../travegre.net/
the folder named "hm" that is held in travegre.net and is coppied along with all the other folders and data at travegre.net, gets... (1 Reply)
Hi
I have a strange problem. Sometimes when I execute the below command something wierd happens.
rsync -avz -e ssh travegre@travegre.net: ../travegre.net/
the folder named "hm" that is held in travegre.net and is coppied along with all the other folders and data at travegre.net, gets deleted... (4 Replies)
I want to write a script that deletes files inside the dir. However, the script
should also allow the user to confirm by pressing (d) key before deleting files..
#!/bin/bash
for file in $1/*
do
size='ls -l $file | cut -f 5 -d " "'
name='ls -l $file | cut -f 9 -d " "'
... (1 Reply)
I have a complex multi-stage (media conversion and formatting) build process that leaves orphan target files needing deleting automatically (i.e. by reference only to the build rules themselves, not any parallel config) upon each regular build. Since MAKE cannot do this, what can? Thanks. (4 Replies)
I am using Tbird as it came with Slackware 13.37 and everytime I send something I get a message 1 or 2 drafts deleted. Should it be doing that? If not has this been reported ? How can I find out if it was reported? I have no drafts to delete. (2 Replies)
i am trying to remove a directory using rm -rf command but its not getting removed.. it doesnt throw any error also.. i am logging as the owner of the dir and removing it but still no luck.. i am able remove a file but not a directory.
i am using solaris 10 (12 Replies)
Hi
It happens when I try to delete a file of 250MB with the command rm -r on our old Intergraph CLIX that the filename disappears while the blocks remain on the machine. Only when I reboot the system the blocks really disappear. Then rm works again for sometime but after some time it happens... (15 Replies)
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
LEARN ABOUT DEBIAN
gnunet-directory
gnunet-directory(1) General Commands Manual gnunet-directory(1)NAME
gnunet-directory - display directories
SYNOPSIS
gnunet-directory [OPTIONS] (FILENAME)*
DESCRIPTION
gnunet-directory lists the contents of one or more GNUnet directories. A GNUnet directory is a binary file that contains a list of GNUnet
file-sharing URIs and meta data. The names of the directory files must be passed as command-line arguments to gnunet-directory.
-c FILENAME, --config=FILENAME
configuration file to use (useless option since gnunet-directory does not really depend on any configuration options)
-h, --help
print help page
-L LOGLEVEL, --loglevel=LOGLEVEL
Change the loglevel. Possible values for LOGLEVEL are ERROR, WARNING, INFO and DEBUG.
-v, --version
print the version number
NOTES
A GNUnet directory is a file containing a list of GNUnet URIs and meta data. The keys can point to files, other directories or files in
namespaces. In other words, a GNUnet directory is similar to UNIX directories. The difference to tar and zip is that GNUnet directory
does not contain the actual files (except if they are really small, in which case they may be inlined), just symbolic (links), similar to
directories with symbolic links in UNIX filesystems. The benefit is that the individual files can be retrieved separately (if desired) and
if some of the files are inserted to another node in GNUnet, this just increases their availability but does not produce useless duplicates
(for example, it is a better idea to publish a collection of pictures or compressed sound files using a GNUnet directory instead of pro-
cessing them with archivers such as tar or zip first). Directories can contain arbitrary meta data for each file.
If a directory has missing blocks (for example, some blocks failed to download), GNUnet is typically able to retrieve information about
other files in the directory. Files in a GNUnet directory have no particular order; the GNUnet code that generates a directory can reorder
the entries in order to better fit the information about files into blocks of 32k. Respecting 32k boundaries where possible makes it eas-
ier for gnunet-directory (and other tools) to recover information from partially downloaded directory files.
At the moment, directories can be created by gnunet-fs-gtk and gnunet-publish. Just like ordinary files, a directory can be published in a
namespace.
GNUnet directories use the (unregistered) mimetype application/gnunet-directory. They can show up among normal search results. The direc-
tory file can be downloaded to disk by gnunet-download(1) for later processing or be handled more directly by gnunet-fs-gtk(1).
REPORTING BUGS
Report bugs by using mantis <https://gnunet.org/bugs/> or by sending electronic mail to <gnunet-developers@gnu.org>
SEE ALSO gnunet-fs-gtk(1), gnunet-publish(1), gnunet-search(1), gnunet-download(1)GNUnet 25 Feb 2012 gnunet-directory(1)