I have a large amount of files under a root directory, with several sub-directories, and many of these sub-directories have similar files with similar names. I need to clean this up.
The filenames are of the format:
I want to keep only
and remove the other file. I have tried some tools including fslint, but it didn't work because the actual content of the files may vary slightly.
Help in creating a bash script or similar to weed out the unneeded files would be highly appreciated.
Hi,
I was wondering if there was a way to append something to filenames based on a wildcard. For example, if I have the following files in a directory:
blah1
blah2
blah3
blah4
blah5
I want to rename these all to:
blah1.txt
blah2.txt
blah3.txt
blah4.txt
blah5.txt
Is there a... (4 Replies)
Dear Friends
myself Avinash working in bash shell
The problem goes like this
I have a file called work.txt
assume that
first colum=mac address
second colum= IP
third colum = port number
----------------------------------------
00:12:23:34 192.168.50.1 2
00:12:23:35 192.168.50.1 5... (2 Replies)
I am new to scripting and I needed to know if there would be an easy way to delete extra spaces in a text file. I have a file with three rows with 22 numbers each, but there is extra spaces between the numbers when it gets output by this program AFNI that I am using. What script would help delete... (2 Replies)
Hi,
I have same file by name
i want to keep only access file and want to delete rest. This is specific to DOS only.
Any idea of doing this. I tried so many options but none worked for me.
Thanks
Namish (11 Replies)
I got many pair files, which only have small difference, such as more space, or more empty line, and some unreadable characters.
If list by commend "diff", I can see many many difference.
So I'd like to write a script to compare the pair files, if 95% contents are same, I will think they are... (2 Replies)
Hello All,
I have developed a script which takes following parameter from the input file to archive log files
1)Input Path
2)File pattern(*.csv)
3)Number of days(+1)
Following is the algorithm of my script
Read the input file
go to that path and search for particular n days older... (3 Replies)
Hello all,
I have a server that is running AIX, running a tool that converts various printstreams (AFP/Metadata) to PDF. This is done using a rexx script and an off the shelf utility.
Each report (there's around 125) uses a certain script file, it's basically a text file.
I am trying... (5 Replies)
i want to sort a file which was 4gb of data.
my ram sixe was 2gb.
so, i want to sort that file using extra buffer , is it possible in unix?
if possible plz help me
thanks (3 Replies)
Hi,
I need to compare the /etc/passwd files from 2 servers, and extract the users that are similar in these two files. I sorted the 2 files based on the user IDs (UID) (3rd column). I first sorted the files using the username (1st column), however when I use comm to compare the files there is no... (1 Reply)
Discussion started by: anaigini45
1 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)