1
vote
1answer
42 views

Cmd output to file gives wrong character encoding

When I redirect the cmd command tree to a text file: tree > c:\tree.txt and open the file with notepad I get the following result: Folder PATH listing Volume serial number is 00000:0000 Z:. ...
0
votes
0answers
18 views

How do I replace a numeric label in one text file with the corresponding alphabetic name in a second text file?

I have two text files. In the first text file, I have a phylogenetic tree written as a series of sets as follows: (1,(((((((((163,164, etc. In the second text file, I have the taxon names as ...
3
votes
3answers
105 views

How to format my text file for better appearance?

I want to format my text file for better appearance. So I want any command or any shell script which will format my file as per my expectation. Input File: Index Name City 1. Ravi Bhuva Ahmedabad 2. ...
3
votes
2answers
528 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
8k views

How do I create a multiline text file with Echo in Windows command prompt?

I'm using Windows 7 and I would like to quickly create a small text file with a few lines of text in the Command prompt. I can create a single line text file with: echo hello > myfile.txt but ...
1
vote
1answer
356 views

Utility to normalize text files

Does there exist a command line utility to check for and ideally fix grunge in text files? e.g. Inconsistent or non-native line endings (lf vs cr/lf) Extra whitespace at end of lines Spurious byte ...
3
votes
1answer
171 views

Command-line tool to measure how fast a file is growing?

Is there a command-line tool to measure how fast a text file is growing, in units of lines/second? For small-ish files, I can do something with watch and wc -l, but that measures the file anew each ...
4
votes
3answers
1k views

How do I export the history from the Windows command line to a text file?

How do I export the history from the Windows command line to a text file? I think you can do it in Linux as something like "history >filename.txt", but how do you do it in Windows? I'm a geneticist, ...