Your duplicates requirement is not met in this code - I did not quite get it. Sorry.
That said - DO NOT agglomerate zillions of user data files adhoc in one file tree.
It is completely possible to have parked those files into meaningful directory names - i.e., the text you are using as a key. Then you can simply look for a directory and go from there. Pre-planning beats kludge like this every time.
PS: because you want to run this ONE time there is a huge performance penalty: grep -Ff filename has to scan the entire 300 lines of filename for every file it finds. And since you seem to have large numbers of files be prepared to wait.
Stuff like this should probably be written in C. dirent.h is your friend.
I need to compare 2 diff type of files and find out the duplicate after comparing each types of files:
Type 1 file name is like: file1.abc
(the extension abc could any 3 characters but I can narrow it down or hardcode for 10/15 combinations).
The other file is file1.bcd01abc (the extension... (2 Replies)
Is this possible? Let me know If I need specify further on what I am trying to do- I just want to spare you the boring details of my personal file management.
Thanks in advance-
Brian- (2 Replies)
I have a directory (and many sub dirs beneath) on AIX system, containing thousands of file. I'm looking to get a list of all directory containing "*.pdf" file.
I know basic syntax of find command, but it gives me list of all pdf files, which numbers in thousands. All I need to know is, which... (4 Replies)
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
I have a number of files in a directory that can be grouped with something like "ls | grep SH2". I would like to move each file in this list to another directory.
Thanks (4 Replies)
I have have 6 empty directory below. I would like write bash scipt if any files less "1000000000" bytes then move to "/export/home/mytmp/final" folder first and any files greater than "1000000000" bytes then move to final1, final2, final3, final4, final4, final5 and that depend see how many files,... (6 Replies)
Below is the script i have but i would like simplified but still do the same job.
I need a script to copy files not directories or sub-directories into a existing or new directory. The files, if have the same name but different extension; for example 01.doc 01.pdf then only copy the .doc file. ... (1 Reply)
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Hi All,
Daily i am doing the house keeping in one of my server and manually moving the files which were older than 90 days and moving to destination folder.
using the find command . Could you please assist me how to put the automation using the shell script .
... (11 Replies)
Discussion started by: venkat918
11 Replies
LEARN ABOUT SUSE
beav
BEAV(1) General Commands Manual BEAV(1)NAME
beav - binary file editor and viewer
SYNOPSIS
beav [file...]
DESCRIPTION
This is a brief description of the minimal set of commands that are necessary to start using beav effectively. For more information,
review the file /usr/share/doc/beav/beav140.txt.gz.
The file-visit command, Ctl-X Ctl-V, can be used to read a file in for editing. The file can also be read in from the command line; beav
<edit_file>.
Data is displayed in one or more windows. These commands can be used to navigate around the windows.
move-back-char Ctl-B moves left
move-back-line Ctl-P moves up
move-forw-char Ctl-F moves right
move-forw-line Ctl-N moves down
window-delete Ctl-X 0 delete window
window-expand Ctl-X 1 expand window
The move-to-byte command, Ctl-X G, will prompt you for a byte position to move to.
These commands will insert a zero byte at the cursor position or delete the byte at that position.
insert-unit Ctl-X I
delete-forw-unit Esc D
The file-save command, Ctl-X Ctl-S, will save the data to the file if a change has been made.
The help command, Esc ?, will display a list of all commands and their current key bindings.
The abort-cmd command, Ctl-G, will abort any command that is in operation.
The quit-no-save command, Ctl-X Ctl-C, will exit beav. If there is any data that has not been saved you will be warned.
FILES
/usr/share/doc/beav/beav140.txt.gz
BEAV(1)