Sponsored Content
Top Forums Shell Programming and Scripting Is there a way to join 2 text files sorted by Post 302858307 by nufc on Monday 30th of September 2013 04:34:52 AM
Old 09-30-2013
Quote:
Originally Posted by Don Cragun
These are strange and dangerous requirements, but the following seems to do what you requested. It does, however, at least warn you if two or more of your passwords are the same, if a password or passphrase contains a colon, or if a line with no colon is found in one of your files. Anytime you run this, both of your original input files will be destroyed; I stongly suggest that you make backups before you run this script:
Thank you very much for your help mate it is really appreciated Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Merge / combine / join / paste 2 text files side-by-side

I have 2 text files, both have one simple, single column. The 2 files might be the same length, or might not, and if not, it's unknown which one would be longer. For this example, file1 is longer: ---file1 Joe Bob Mary Sally Fred Elmer David ---file2 Tomato House Car... (3 Replies)
Discussion started by: cajunfries
3 Replies

2. UNIX for Dummies Questions & Answers

Join 2 files with multiple columns: awk/grep/join?

Hello, My apologies if this has been posted elsewhere, I have had a look at several threads but I am still confused how to use these functions. I have two files, each with 5 columns: File A: (tab-delimited) PDB CHAIN Start End Fragment 1avq A 171 176 awyfan 1avq A 172 177 wyfany 1c7k A 2 7... (3 Replies)
Discussion started by: InfoSeeker
3 Replies

3. UNIX for Dummies Questions & Answers

write a program in c in unix that display the files(includ sub-direc and files within) in a sorted

the sorting is based on name of file, file size modification time stamps o f file it should dislay the output in the following format "." and ".." enteries should be ignored please give some idea how to do it (1 Reply)
Discussion started by: pappu kumar jha
1 Replies

4. Shell Programming and Scripting

combine multiple files by column into one files already sorted!

I have multiple files; each file contains a certain data in a column view simply i want to combine all those files into one file in columns example file1: a b c d file 2: 1 2 3 4 file 3: G (4 Replies)
Discussion started by: ahmedamro
4 Replies

5. UNIX for Dummies Questions & Answers

Insert a line in a sorted text file(s)

Hello, I am trying to add a line (usually just a word) to some text files in a directory that are already sorted. I just don't want to run the sort command again because it can take a long time when the text or log files are really huge. I have a bashscript that will take in the 1st argument... (7 Replies)
Discussion started by: raptor25
7 Replies

6. Shell Programming and Scripting

sort the files based on timestamp and execute sorted files in order

Hi I have a requirement like below I need to sort the files based on the timestamp in the file name and run them in sorted order and then archive all the files which are one day old to temp directory My files looks like this PGABOLTXML1D_201108121235.xml... (1 Reply)
Discussion started by: saidutta123
1 Replies

7. UNIX for Dummies Questions & Answers

How to use the join command to obtain tab delimited text files as an output?

How do you use the join command and obtain tab delimited text files as an output? Thanks! (2 Replies)
Discussion started by: evelibertine
2 Replies

8. UNIX for Dummies Questions & Answers

How to use the the join command to join multiple files by a common column

Hi, I have 20 tab delimited text files that have a common column (column 1). The files are named GSM1.txt through GSM20.txt. Each file has 3 columns (2 other columns in addition to the first common column). I want to write a script to join the files by the first common column so that in the... (5 Replies)
Discussion started by: evelibertine
5 Replies

9. Shell Programming and Scripting

How to join 2 text files using bash scripting?

Hi Guys, I want to combine 2 files and and put together in 1 file . See below desired output. Any help will be much appreciated. FILE AX 2134 101L 12345.00 22222.00 1 10 X 2134 101L 12345.00 22222.00 11 20 X 2134 101L 12345.00 22222.00 21 30 X 2134 111L 77777.00 ... (3 Replies)
Discussion started by: H.R
3 Replies

10. Shell Programming and Scripting

Alignment tool to join text files in 2 directories to create a parallel corpus

I have two directories called English and Hindi. Each directory contains the same number of files with the only difference being that in the case of the English Directory the tag is .english and in the Hindi one the tag is .Hindi The file may contain either a single text or more than one text... (7 Replies)
Discussion started by: gimley
7 Replies
CRACK(8)						      System Manager's Manual							  CRACK(8)

NAME
Crack, Reporter - programs to break password files SYNOPSIS
Crack [options] [-fmt format] [file ...] Crack-Reporter [-quiet] [-html] DESCRIPTION
This manual page documents briefly the Crack, and Crack-Reporter commands. This manual page was written for the Debian GNU/Linux distribu- tion because the original program does not have a manual page. Instead, there is some documentation available at /usr/share/doc/crack which you are encouraged to read Crack is not a program designed to break the password of every user in the file. Rather, it is designed to find weak passwords in the file, by attacking those sorts of bad passwords which are most likely to be used, in the order in which they would most easily be found (ie: are most likely to be used by a moronic user). Crack is not designed to break user passwords; it is designed to break password files. This is a subtle but important distinction. Crack-Reporter will show what passwords have been cracked, as well as view errors that have been detected in the source password files, etc. Guesses are listed chronologically, so users who wish to see incremental changes in the output as Crack continues to run over a course of days or weeks, are encouraged to wrap invocations of Crack-Reporter in a script with diff. OPTIONS
A summary of options are included below. For Crack: -makedict Creates and compresses the dictionaries Crack will use -makeonly Compiles the binaries for Crack (not necessary for Debian GNU/Linux since they are already provided) -debug Lets you see what the Crack script is doing. -recover Used when restarting an abnormally-terminated run; suppresses rebuild of the gecos-derived dictionaries. -fgnd Runs the password cracker in the foreground, with stdin, stdout and stderr attached to the usual places. -fmt format Specifies the input file format. -from N Starts password cracking from rule number "N". -keep Prevents deletion of the temporary file used to store the password cracker's input. -mail E-Mail a warning message to anyone whose password is cracked. See the script nastygram. -network Runs the password cracker in network mode. -nice N Runs the password cracker at a reduced priority, so that other jobs can take priority over the CPU. -kill filename -remote Internal options used to support networking. For Crack-Reporter -html Produces output in a fairly basic HTML-readable format. -quiet Suppresses the reporting of errors in the password file (corrupt entries, etc) EXAMPLES
To run Crack # Crack -nice 10 /etc/passwd If a Crack session is killed accidentally, it can be restarted with moderate efficiency by doing: mv run/Dhostname.N run/tempfilename Crack -recover -fmt spf run/tempfilename However if all you wish to do is start cracking passwords from some specific rule number, or to restart a run whilst skipping over a few rulesets, try: Crack [-recover] -from N filename ... ...where N is the number of the rule to start working from. FILES
/usr/share/Crack Location of the Crack program and scripts. /var/lib/Crack/ Location for the temporary files used by Crack. SEE ALSO
You will find more documentation about Crack in the text files available in /usr/share/doc/crack-common Documentation includes the pro- gram's Manual (in HTML and Text files), the User's Frequently Asked Questions (FAQ), examples, articles and even some humour. AUTHOR
This manual page was written by Javier Fernandez-Sanguino <jfs@debian.org>, for the Debian GNU/Linux system (but may be used by others). Crack and Crack-Reporter (originally called Reporter) were written by Alec Muffett <Alec.Muffett@UK.Sun.COM> CRACK(8)
All times are GMT -4. The time now is 09:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy