0
votes
2answers
40 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
23 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.
0
votes
0answers
10 views

Smooth scrolling text navigation on the command line?

When I open a file with less on the command line, I'd like the page scrolling commands like d, u to scroll the next page into view over a few frames of animation instead of an abrupt jump. I find it's ...
0
votes
1answer
25 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. ...
2
votes
2answers
58 views

Delete sixteen million lines of an eighteen million line Unicode 24 Gig Windows XML file?

Any ideas on how to delete 16 million lines of a 24 GIG file from line 3 onwards. The traditional UNIX command line text tools, recompiled for windows, won’t handle the Unicode aspect of the file nor ...
0
votes
2answers
1k views

Looking to create a batch file capable of editing a line (or word) in a text file

I have a text file (...\config.txt) containing 2 lines which looks like: Preamp: -4 dB Include: surround.txt I need to change "surround" to "headphones" in that config file. I really need to make 2 ...
0
votes
1answer
33 views

How can I type an exclamation mark (!) in an HTML form in the w3m browser?

I'm trying to type "!maven guava" in DuckDuckgo.com's search box in the w3m browser, but when I press !, w3m interprets it as a hotkey to run a shell command. How can I escape this and just type a ...
1
vote
2answers
84 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 ...
3
votes
2answers
262 views

Windows 7 cmd.exe “text mode” with Alt+Enter?

In XP, I can go to text mode in cmd.exe with alt+enter. This is when it goes full screen (no windows, no graphics - it uploads a raster font to the hardware). No longer works in Windows 7. What ...
2
votes
1answer
565 views

Extract text from txt list with command prompt Windows

I have a list in a txt like this AAA 1234561 BBB12 66698732 CCCCC 5878471 DD131 262554158 and and I have a Directory like the below DirectoryA/AAA DirectoryA/BBB12 DirectoryA/CCCCC ...
3
votes
2answers
554 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 ...
0
votes
0answers
18 views

Ubuntu 12.04 - Terminal - Huge/Large text on each command line [duplicate]

Possible Duplicate: Is it possible to change my terminal window prompt text? I have been using "Ubuntu 12.04" for few days now (no previous Linux experiences at all) and I have noticed that ...
0
votes
2answers
505 views

From the Mac OS X command line, how can I insert a line after a certain marker line?

I have an HTML file. One line is the file is white space followed by this text: <!-- insert new downloads here --> How can I insert a line of text after that line in the file, just from the ...
1
vote
0answers
271 views

Getting complement of two text files on the Unix command line

Is there a fast Unix-based utility (ideally written in C) for getting efficient, streaming intersection/union of tab-delimited text files? For example, allow queries such as "give me the all the ...
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
3k 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
2k 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 ...
1
vote
1answer
247 views

How do I re-sort a list of files grouped by directory?

From within a DOS batch file, how can I crudely re-sort a text file containing a manually maintained list of source files, so those files listed (from the same directory) in the small example extract ...
5
votes
5answers
1k views

Open source command line tools for indexing a large number of text files

I'm looking for any open source command line tool or tools which will allow me to index and search a large number of plain text files. Approximate search would be a plus. The tool only needs to print ...
2
votes
4answers
521 views

Indexing text file content with command line query

I take daily notes in a plaintext file labeled with date in the YYYYMMDD format. These files are no more than 100 lines long, and are written in a blog style format. I'd like to be able search these ...
2
votes
5answers
364 views

How do I reverse the lines of a file in UNIX

How can i reverse a line in a file in Order Example : Input file : 123 500 1000 LOAN GOD 10000 01000 Output Format: 321 005 0001 NAOL DOG 00001 00010
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
657 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. ...
7
votes
6answers
984 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 ...