Questions tagged [text]
60 questions
0
votes
1 answer
Capturing text from windows applications
I had an application a while back that would allow me to dump text from any application on screen to a text file. Unfortunately, I used it so rarely that I don't remember what the name of it was. I found a similar application here:…

bshacklett
- 1,378
- 4
- 19
- 39
0
votes
1 answer
How to display results without two first lines
When I run some bash command it returns 2 .. n lines of text (n is different each time, may contain blank lines).
How to filter the output to display the result skipping lines 1 and 2?
e.g.
$ my_command
file1
file2
file3
file3
$ my_command |…

takeshin
- 1,471
- 3
- 21
- 28
0
votes
2 answers
How to find malformed - corrupted - dos - BOMByte Files in Linux
I've several problems maintaining large production servers, in which some developers drop files from Windows environments, sometime with BOM-bytes (We use UTF8, and no need for that), causing lots of troubles.
Other times, I got a "no end of line"…

Syquus
- 46
- 3
0
votes
1 answer
Can Jdownloader be installed into text mode in linux without X11?
I'm insterested into installing Jdownloader into text mode in linux, i want to use the api it has to control the downloads from a web application
Do you guys think that's possible in gentoo? if so , how?

PartySoft
- 217
- 1
- 7
- 12
0
votes
1 answer
sed not working on large files. Any other options available?
Trying to insert a line feed on large files in UNIX when a text string matches. Any file around 1GB or less, it works. Anything over that size, it does not complete the replace. It appears to do nothing.
I'm using the following command:
sed -i…

TimBurke
- 1
- 1
0
votes
1 answer
How to show a password-containing automated generated image, whose "content" is "copyable"?
I'm responsible for a MediaWiki in my company. That Mediawiki contains information, like passwords. Currently those passwords are stored on the server, hosting the MediaWiki, but when a person surfs to that MediaWiki website, the traffic is not…

Dominique
- 123
- 5
0
votes
1 answer
Odd behavior of bash array
I've recently encountered a strange script behavior and still don't understand y the array behaves this way.
Here is a piece of the script:
for nCDATAReg in $(seq 1 4)
do
sTestBuffer1=$(grep -Pzoi '\/\/<\!\[CDATA\[[\s\S]*?\/\/\]\]>'…

Talcott Parsons
- 3
- 2
0
votes
1 answer
Outlook: Invalid signature of mixed HTML/Plaintext E-Mails
while testing new security GPOs, i've found the problem that with E-Mails that contain HTML and Plaintext, Outlook always complains about invalid signatures or tempered messages, even though with the same E-Mails as pure HTML or pure Plaintext,…

Björn Max Jakobsen
- 101
- 1
0
votes
2 answers
Extract 1 IP address from 2 or more in a line of text
I have about 30,000 Apache access logs, some of which list multiple client IP addresses. This is as a result of Apache logging the X-Forwarded-For header instead of the IP address of the client. The reason that was done is because we recently added…

ThatGraemeGuy
- 15,473
- 12
- 53
- 79
0
votes
2 answers
Piping nc to sed and evaluate datetime for each row
Could someone provide any idea, how could i pipe data from nc to sed (or awk, or anything) and evaluate and write to file a timestamp after each row?
What i have:
# cat /etc/systemd/system/ncserver.service
[Unit]
Description=netcat…

M.Ch.
- 3
- 1
0
votes
1 answer
How to remove text after a 4 digit year in a file name
I am looking to remove all text after the 4 digit year of movie files:
Input:
Some.Movie.Name.2011.1080p.BluRay.x265.mp4
Another.Movie.Name.1999.1080p.BluRay.x264.mp4
Another.Movie.Name.II.2001.1080p.BluRay.x264.mp4
Desired…

Brian Kuepper
- 39
- 4
-1
votes
2 answers
Prevent using cleartext passwords in e-mail protocols?
Checking an older laptop in my possession, I found that all of the POP accounts set up on that device, were sending passwords in clear text when Sending and Receiving (Found this with the assistance of Wireshark).
Are there some good ways to prevent…

Johan Brink
- 111
- 3
-1
votes
1 answer
Corrupted text file recovery (Win7 x64)
I'm having some difficulties in recovering the contents of a .txt file. While writing to a text file, on a Win7 x64 virtual machine, the host machine crashed. After rebooting, I noticed that the file's contents are no longer visible in notepad.…

Sebi
- 229
- 2
- 4
- 10
-1
votes
1 answer
Concatenate first line to the end of second line in a text file
I am trying to append first line to the end of second line. I have huge text file where I have to this process for all the entries.
Value="AF" />

Mark
- 101
- 1
- 4
-1
votes
1 answer
Substiting a line through PHP in SSH
I've already setup SSH usage in PHP and most of the things work.
Now what I want to do is that I'm looking to edit a line in a file and replace it back. It works directly on the server but can't seem to get it working with PHP files. Here is what…

Asad Moeen
- 437
- 3
- 11
- 22