Text display


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Text display
# 1  
Old 03-08-2016
Text display

I am running a Rasberry Pi using the Rasbpian OS. I have a program that develops a log file. If I look at the log file with a terminal session I can CAT it and it contains just what I expect. If I go to the desktop file manager and double click the file opening it with the text editor nothing shows. If I tell the text editor to open it it opens but nothing shows. It looks empty. The file manager/text editor shows it as containing 898 bytes which is correct I can not figure out what is going on.

Any help appreciated.
# 2  
Old 03-08-2016
My 2 cents: Most probably your log file is not a true ascii file the format of a file can do such things which the cat command doesnt really care ( beware! ) I would not be surprised that using file command it returns you the content as "data" which does not necessarily mean ascii and so text (GUI ) editors cant read and I suppose tend to display just blanc, an example of such log files? the wtmp or utmp file

That said I worked late last night and its late now for me... so I might very well be writing a load of crap... Forgive me if its the case... and will be working very late tomorrow so Good night
# 3  
Old 03-08-2016
Thanks. I just took a hex dump of the file and you are correct. It had a bunch of leading zeros (null characters) as soon as I got rid of them it showed correctly in the text editor.

Thanks
# 4  
Old 03-09-2016
You welcome
Smilie Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

Forum Display - Thread Preview Text Animation

Instead of the slow and not readable tooltips with the preview of the thread content in forum view, I have added the preview with mouseover (see attached movie). Let me know if you want a different kind of preview (animation, duration font-color, size, etc,) Thanks. <script>... (29 Replies)
Discussion started by: Neo
29 Replies

2. Shell Programming and Scripting

Display text is string matches below.

I have not idea how I would accomplish this. I have a script that scans for CDP neighbours. I get the results in a file. I am interested in CDP Neighbor Details if name BSWITCH shows up. If BSWITCH is not present then skip. CDP Neighbor Details for 10.200.21.1... (1 Reply)
Discussion started by: mrlayance
1 Replies

3. Solaris

Set display to text

How do I set up my solaris 10 machine to display in text mode instead of graphics mode, permanently? (1 Reply)
Discussion started by: jastanle84
1 Replies

4. Shell Programming and Scripting

display 5 lines from the particular text

Hi All, please help me to display 5 continious lines from a particular text. my file is as below. file1.txt ------ Good 1 2 3 4 5 luck 1 2 3 I want to diplay 5 lines from the word Good. (4 Replies)
Discussion started by: little_wonder
4 Replies

5. Shell Programming and Scripting

how to display multiline text

I am writing script that can run on solaris 10, Linux Fedora and windows taht has cybwin installed. I want to display a variable containing muli-line text. using echo command, the variable display all rows in single line i.e. it loses the format. Is there any other command that displays... (2 Replies)
Discussion started by: mmunir
2 Replies

6. Shell Programming and Scripting

Display text between two words/characters

Using sed or awk, I need to display text between two words/characters. Below are two example inputs and the desired output. In a nutshell, I need the date-range value between the quotes (but only the first occurance of date-range as there can be more than one). Example One Input: xml-report... (1 Reply)
Discussion started by: cmichaelson
1 Replies

7. UNIX for Advanced & Expert Users

display HTML text in body using unix mailX ????

display HTML text in body using unix mailX ????Hello, could any one tell me how to display text in html layout by sending a file using mailx command in unix. i know to use mailx : mailx -s "SUBJECT" user.name@domail.com < file_name.txt instead of txt file i want to send html page and... (8 Replies)
Discussion started by: sparan_peddu
8 Replies

8. Shell Programming and Scripting

Order text display not correct.

My shell script below for import data to Oracle it run okay. but the text display not correct follow order command executed. =========================Shell Script code================= #!/bin/sh #directory = ${1-'pwd'} #run import data with SQLLoader runSQLLoader() { ... (2 Replies)
Discussion started by: raccsdl
2 Replies

9. Shell Programming and Scripting

PHP: display text and picture

Can someone give me a script in php to: Connect to Mysql: DB= content TABLE = message Enter text , about 3000 characters, and put a image either left or right, top or bottom or the text. Please someone make me this script, ive spent several hours trying to figure it out. (1 Reply)
Discussion started by: perleo
1 Replies

10. Shell Programming and Scripting

Enter text and display on logo

Okay, lets say I have a entry field, to enter the persons name. Then I have a image of a car, and when the person hits submit on the form , the image loads and the name the person entered is displayed on the door or the car. How would I do this in a browser.could someone give me a Javascript or... (1 Reply)
Discussion started by: perleo
1 Replies
Login or Register to Ask a Question