Questions tagged [text]
60 questions
1
vote
2 answers
Unicode versions of common UNIX text tools to run on Windows
I can't afford the MKS toolkit (also think its a bit overkill for my needs). So I was wondering is anyone knew of the standard set of unix text tools but that can handle unicode files under Windows.
Examples are wc, awk, diff, sort etc.

kingchris
- 244
- 4
- 13
1
vote
1 answer
Display first few characters of first few lines of a text file
On Linux in a bash shell, I have a text file with long lines and would like to look at the first few characters of the the first few lines. Thus, I need something like head, but with the ability to limit the number of characters printed per…

loris
- 232
- 1
- 12
1
vote
0 answers
Is there a text-based Windows Firewall Configuration?
In Linux, you can use iptables to store/load your iptables based firewall configuration, but in Windows it appears to me that it's all GUI based, which means you can't store / track the changes you've made to it.
So, does Windows have an equivalent…

leeand00
- 4,869
- 15
- 69
- 110
0
votes
1 answer
Risks to increasing the IIS 7 --"Maximum Requesting Entity Body Limit"
IIS 7 -- "Maximum Requesting Entity Body Limit"
It is certainly easy enough to increase the field "Maximum Requesting Entity Body Limit" in IIS 7.
Has anyone encountered risks to increasing this limit past 1 000 000 ? (one million)?
This is for a…

JosephDoggie
- 229
- 2
- 4
- 14
0
votes
2 answers
NFS Log Corruption
We several WebSphere application servers logging to a central NFS mount. Both the app servers and the NFS server are running in VMWare, the app servers are RHEL 5, and the NFS server is Ubuntu 8.04. All servers are connected via gigabit ethernet,…

ibuys
- 69
- 3
0
votes
1 answer
save output of a python script to a text file
how can i save output of this python script to a text file? this is a KMS server which clients connect to it and activates their windows or office. i wanted to save the log in a text file. I should mention that the server is based on centos…

reza
- 1
- 1
0
votes
2 answers
Print text file with folder file names
So i have been tasked with getting folder and file names for a portable hard drive. Currently I'm not sure how to go about doing this I know the standard command prompt way to go about it, but let's say it's over a million files spread across about…

lostintheworld
- 3
- 2
0
votes
2 answers
Strip text from some delimited fields in a list
Wondering what the fastest way would be to strip the text from just some delimited fields in a list.
My list looks like this:
text text:number:text:text:text:text:*:*:*:*:*:*:*:*:*:*:*:*:*:*:*:*
And I want it to look like this:
text…
None
0
votes
1 answer
Nginx serves php files as plain text (Mod_Rewrite)
There is no .htaccess (Mod_Rewrite) in Nginx.. So I've converted my .htaccess to a format which can be read and placed in the default.conf.
Original htaccess:
Options -Indexes
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond…

Jake
- 101
- 2
- 7
- 11
0
votes
1 answer
Remove text between delimiters in linux
Server got hacked and a fair amount of files were edited. We noticed that the code that was inserted were typically done between delimiters (e.g. /*e21234*/ blah blah /*/e21234*/). What is the most efficient way to remove this from a large number of…

user40570
- 155
- 2
- 5
0
votes
1 answer
Calculate rate from log file timestamps
From postfix's logfile I can grep all the lines that indicate the delivery of one message:
Jan 3 15:28:21 mail postfix/pipe[1040]: [...] status=sent
Jan 3 15:28:21 mail postfix/pipe[1157]: [...] status=sent
Jan 3 15:28:22 mail postfix/pipe[980]:…

AndreKR
- 551
- 1
- 3
- 17
0
votes
1 answer
Save the body of an Exchange 2010 message to a file
We are completing our upgrade from Exchange 2003 to Exchange 2010. We created an event sink to write the body of email messages with specific Subject lines to a text file for automated processing. Event sinks were discontinued in Exchange…

JHammerer
- 3
- 1
0
votes
2 answers
ip based filtering and ban
How can I ban IP addresses from accessing the my website. Also, would it better to store ip addresses in a text file, php file or a database.
I want a black list.
I am using Apache.
Also, I want the blacklist to be application specific.
It is mainly…

Vish
- 176
- 5
0
votes
1 answer
Textwrangler (OS X) -- Simple Text Macro Help Needed
I often, when parsing log/error files, need to replace < and < and > with > in order to be able to efficiently understand what's going on in the files. I know TextWrangler has a macro ability but I can't figure out a efficient way to do this.
Since…

bobber205
- 241
- 1
- 6
- 17
0
votes
2 answers
Getting \r\n newlines to display properly in Mantis database
I've exported a Mantis project from one server to another and despite the MySQL SQL file (from which it was populated) showing:
(15375,'\r\n1. Log out\r\n\r\n2. When logging in, start ...
The final end-user view loses the \r\n and shows it only on…

siliconpi
- 1,807
- 6
- 32
- 46