0
votes
1answer
84 views

Convert a Large .txt file to a ophcrack rainbow table

I have made a txt file with some passwords in it and i need a way to convert it into a rainbow tables to crack windows passwords using ophcrack. I have had a look on Google but i haven't found a way ...
0
votes
2answers
78 views

any way to run grep backwards, i.e. from the end of the file and up?

i have a 70G+ log file, and i'd like the most recent entries (apache log append new items at the end) that match a pattern. i can either: run grep | tail or run tail | grep option 1 will take ...
0
votes
0answers
47 views

Create a word cloud on linux command-line

I'd like to create a word cloud on the linux command-line, similar to wordle and similar services. How can I do that? I have plain-text files and I'd like to create a word-cloud for each one.
1
vote
3answers
71 views

cat clipboard text into a terminal?

I have text in the clipboard. I want to cat it in a terminal a pipe it into another command. The exact use case is a PEM encoded X509 certificate on a website presented as text (-----BEGIN ...
0
votes
1answer
35 views

Can less wrap lines like fmt does?

Like most people I use less as my terminal pager. Occasionally I view files consisting of very long lines of plain or marked-up text. By default less folds these lines at the terminal window edge. ...
1
vote
2answers
122 views

Create a new column in the begining of text file with concequtive numbers from 1 to 32 after finding a specific word [closed]

I have a file with the following format: #pair: 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 ...
3
votes
2answers
1k views

How to create a random .txt(Human readable text like ascii) file in linux

I need to create a text file which should contain random text data that can be read by human. I know that we can use /dev/urandom and /dev/random for getting random data. But it is not readable by ...
0
votes
2answers
56 views

display whole stream while highlighting with grep

I often use tail -f | grep someregex on log files. I have grep liased to grep ---color=auto so my matches are highlighted. If I want to see my matches in the context of the whole stream, how would I ...
0
votes
4answers
562 views

Tools to extract text from powerpoint pptx in linux?

Any there any linux tools that will extract the text from a Powerpoint pptx file? I tried catppt but it just returns file.pptx is not OLE file or Error. abiword --to=txt file.pptx also returns an ...
1
vote
2answers
90 views

How can I remove exponential terms and floating point numbers from a text file on linux?

What regular expression should I use in order to remove exponential number terms and floating point numbers from a text file? For example I have the following terms in my file: -0.161678 relational ...
1
vote
2answers
177 views

How can I sort and de-dupe a very long list of words?

I have a 400 megabyte file. The file is a list of words, each word on a single line. End of lines are a mix of cr/lf and lf. Some of the words are unicode. I'd prefer answers for Linux or Windows ...
0
votes
0answers
342 views

How to unwrap 80 character text

Many text filess around Internet are word split before line reaches 80th character. I understand it is desirable by those using 80 character terminals. However I like sending longer articles to my ...
1
vote
2answers
963 views

How can I sort a long list of text alphabetically?

How do I sort rows of text alphabetically without using specialized third party software or plugins (like Notepad++/Word/Excel/et al)? I suppose what I'm perhaps asking is -- How do I sort rows of ...
0
votes
2answers
880 views

VIM Editor: File Enconding and Line Endings

When saving files, these are my default settings in TextMate (Mac OS X): File Encoding: UTF8 (recommended) Line Endings: LF (recommended) How can I set VIM to save files with the same file encoding ...
3
votes
2answers
666 views

How to create files named after lines in a text file under Linux

I have a text file which contains a list of items (one for each line) and I need to create, in a given directory, a file for every entry in the said list; each one of these files should be named with ...
4
votes
2answers
1k views

How to grep a section of a file in bash shell

How can I "grep" the lines between an occurrence of some string1 and the (Nth) occurrence of some string2. e.g. if the file has line: A B C D E F G B C E Q I want to get the lines in bold (those ...
7
votes
3answers
8k views

grep for “term” and exclude “another term”

I am trying to build a grep search that searches for a term but exludes lines which have a second term. I wanted to use multiple -e "pattern" options but that has not worked. Here is an example of a ...
-3
votes
2answers
174 views

Vim ! before execute silent '!mkdir' what is it for?

Make new folder from Vim command line in Windows gVim In this with the mkdir command a '!' is added in front of the command. What does the '!' actually do?
1
vote
1answer
51 views

Automatic replacement of expressions

Maybe this can be achieved through (extended) regular expressions, but I really don't know if or how. There seems to be a way to access "things that are found" by using $1, $2, … but I have no idea ...
0
votes
1answer
75 views

Read a Section of Lines from a File in Linux

I'm trying to export lines 100 to 1,000,100 from a file with 62 million lines. So far I've found this command: head -1100000 input > output But head does not take an offset option. Thoughts?
2
votes
1answer
780 views

Live Linux Distro for text only mode

I'm looking for a linux distro where I can boot into it via USB, run a script on startup and shutdown. I need bare minimum, but I also need network drivers. Also need to save files across reboots. ...
4
votes
2answers
807 views

Is there any way to keep text passed to head, tail, less, etc. to be colored?

Is there any way to keep colorization of text passed through pipe | to head, tail, less, etc.?
2
votes
3answers
1k views

Linux, how to search some text in a PDF File

I would like to search some text in a PDF file. For example, where is the word "go to" in my PDF? If you find it, what page is there? I find this command line : find /TEMP -name 'manu.pdf' -exec ...
7
votes
3answers
16k views

Remove first N lines from an active log file

Is there a way to remove the first N lines from a log that is being actively appended by an application?
2
votes
1answer
113 views

How to Save a File with a Filename Using a TimeCode in Linux

I'm on a tablet pc (Lenovo X60) so my keyboard is not available all (most) of the time, AND I'm trying out Linux Mint instead of Windows. The main thing I'm missing is my AutoHotKey :( I need to ...
0
votes
2answers
360 views

How to repeat each line of a file, from the Linux command line?

How to make a file like: one two three ... into: one one two two three three ... I'm thinking this must be possible with one simple Linux command. If my editor had block selections or macros ...
1
vote
2answers
2k views

Is there a tool to measure file difference percentage?

I am looking to compare two text files. Normally, I can just use diff to compare the two files to see the differences. This is great, except that I am more concerned with the percentage difference of ...
-1
votes
1answer
4k views

Changing binary file to readable text file

I have a program that creates a file that stores text like this: application/octet-stream; charset=binary now i need to convert this file to this: text/plain; charset=us-ascii i know this is ...
0
votes
1answer
3k views

Sed error “sed: -e expression #1, char [#]: extra characters after command”

sed '/\r$/ {N s/\n//}' sed: -e expression #1, char 10: extra characters after command I want to understand what is wrong with my command line. When I can do the some of following in a script ...
2
votes
2answers
3k views

How to convert a text file from Shift JIS to UTF-8 and back from the terminal

In order to make this conversion I have to use a text editor. This is tedious. Is there an easier way to do it, like some program I can run from the Linux or OSX terminal?
3
votes
1answer
7k views

Combine two files column-wise in Ubuntu?

I have two files: one is like preface Introduction chapter 1 the other is like 1 2 3 I was wondering how to column-wise combine the two files into one: preface 1 Introduction 2 chapter 1 3 ...
4
votes
2answers
5k views

PDF to text convertor

I'm looking for a "one-click" way of taking ANY PDF and converting it to plain text. Ideally on OSX or Linux. Ideally, the solution would include OCR functionality, but it need not necessarily. The ...
2
votes
1answer
284 views

Adding custom rows to file using a shell script

I have a textfile with an arbitrary number of rows triplets like these: 4 5 2 12 16 6 Now I want to add related rows to the file. Let's say i want to add 4 additional rows per row which have ...
1
vote
7answers
3k views

How can I convert “DOS” .txt file to Unix .txt file [duplicate]

Possible Duplicate: Convert CRLF's to line feeds on Linux How can I convert a DOS text file to Unix text file, so I can use my Linux parser properly?
15
votes
5answers
23k views

How to replace multiple spaces by one tab

I've some text files which contain some colums seperated by a various number of spaces, but instead I need one single tab as a seperator. Is it possible to do in Bash?
8
votes
2answers
9k views

How to extract text from pdf in script on Linux?

On Linux - How to extract text from a .pdf in which text really is text, not a scanned image? I want something I can use on the command line / in a script, not interactively. (I don't want to convert ...
1
vote
0answers
171 views

Scribes Editor: no toolbar, statusbar or scrolbars visible

I'm planning to give the Scribes text editor a try in everyday usage. Branching ang compiling the Python code went fine, but when I start it up. I don't see any toolbars or statusbars. This Iis all ...
2
votes
1answer
177 views

finding surrounding lines with grep

I know how to use grep to output a line that matches a string. But what if I also want to output one line above every line containing a matching string, how do I do that?
1
vote
5answers
1k views

Disk Based Text Editor to Edit File Larger than Memory

I am using Ubuntu and looking for a good editor to edit a file that is > 4GB. I just need to put content at the end and beginning of the file. I suppose I could use something like cat "text to add" ...
13
votes
9answers
21k views

Command line tool in Linux to Extract Text From Word, Excel , Powerpoint ? or Convert them to PDF?

Need help extracting text out of All of Office document types.. Or convert them to PDF as can easily extract using pdftotext. A Bash or Python Script would help too.
6
votes
3answers
626 views

Substract contents of one textfile from contents of another textfile on Linux

I have two text files on Linux. One contains a list of valid IDs. E.g: abcd efgh ijkl etc. The other contains a list of invalid IDs. But, some of these also appear on the list of valid IDs, in this ...
3
votes
2answers
4k views

replace nth occurence of string in each line of a text file

I have large text files with space delimited strings (2-5). The strings can contain "'" or "-". I'd like to replace say the second space with a pipe. What's the best way to go? Using sed I was ...
0
votes
4answers
670 views

How to do grap data between two file in Linux?

I have two .rtf file.... The first one have this content: Apple, Orange, Banana, Noodle, Chip The Second File is something like this: Apple I love eat Apple. Banana I hate Banana. ...
4
votes
2answers
265 views

Is there a Linux alternative for AutoHotkeys?

Is there a Linux alternative for AutoHotkeys? (or something to create hotkeys and text expansion?)
0
votes
1answer
384 views

Cacti displaying graph text as blocks

(Image now irrelevant, it is grabbing the newest graph from my server.. I did not archive a picture of it when it was broken. Instead of text, each character was represented by a block.) I had not ...
17
votes
9answers
12k views

Convert CRLF's to line feeds on Linux

What's the best way to convert CRLF's to line feeds in files on Linux? I've seen sed commands, but is there anything simpler?
7
votes
6answers
1k views

Text Terminal Hardware (for Linux)

Is there any way to obtain a hardware text terminal (preferably small in size) with a screen and a keypad to connect to a Linux machine (preferably via usb)? I'd like to be able to log into a command ...