Software :: Finding A Php Script To Format And Display A Select Amount Of Text From A File?
Jan 23, 2009
i need a php script to format and display a select amount of text from a file or a cron job that'll do it (with grep etc) and out put to a file but whatever is easier i want to display all the banned ip's i have in my .htaccess file i have a lot of lines in my .htaccess file but i have a line that read like this:
I have a form that have a browse button, convert to ASCII button, cancel button and text area... all i have to do is...? when i click the browse button and choose a folder that have a utf8.txt the file that have utf8 will appear or display into the text area... what i can i do to make this..?
I open a file in Ubuntu nano editor from the comand line and I want to copy all the contents of the file so I can paste it in an another application outside the shell. So far I can only copy using shift on the screen that is visible but not on all content.
I'm trying to write a shell script which finds bits of data from a text file. at the moment i'm using grep and basically i need a function which will look through the text file and take the data out of it. the file has days, months, years etc and i want it so i can type feb 06 and it finds all of the data for feb 06.
the problem i have is i can type feb and all the information comes back for feb, but i can't get it more precise e.g. feb 2009 and it finds just feb 2009, it seems to ignore that latter half. I've tried experimenting with egrep and having two inputs but i can't seem to fuse them together, it only takes the first input.
I have an pdf file on my linux RHEL 4.7 machine. I can open that file but when i click on 'saveas' to save the file in 'Text' format there are no options i see there. I need to save the 'pdf' file to 'text' format. could anyone tell me how to save the pdf file to Text format. Iam using 'KDE'
I've got a rather large CSV file (~700MB) which I know to consist of lines of 27-character alpha-numeric hashes; no commas or anything fancy. Somehow, during its migration from Windows to Linux (via winSCP and then a few regular SCPs), it has converted into some kind of binary format I am unfamiliar with.If I open the file in vi, everything appears fine, and it says [converted] at the bottom, although I know it's not a line endings issue (and dos2unix doesn't help). If I 'head' the file, it looks proper except for a " at the beginning of the first line. If I open up the file in nano, however, I see the at the start and then "^@" before every character (even newlines and EoF).
If I try to re-save or copy the file (say via: head file.csv > short.txt), this special encoding is preserved. I copied the first ten lines out of vi (which displays it properly) into my Windows clipboard via my SSH client, then pasted it into a new text file, test.txt. This file is visually identical when opened in vi (and similar through 'head', minus the ), although it's roughly half of the filesize. I have no idea what format this once-text file got converted to (it's notoriously hard to search the internet for symbols), but surely there must be some way to convert it back.
I'm trying to run a CGI file with Apache2, but when I navigate to it, I just get the file in it's plain text format and not actually parsing the file. What do I need to configure?
I've tried this Code: <Directory /var/www/> AddHandler cgi-script *.cgi Options +ExecCGI </Directory> And I've tried this Code: <Directory /var/www/> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny [Code]...
it compares two files using md5... if they are same , a corresponding character is output to a text file .. but the problem is it gets appended by default.. is there any way to output in a normal way because the text is a message and it should be of proper format here is my script
#!/bin/bash g=`tail -1 new.txt|head -n 1` array=( a b c d e f g h i j k l m n o p q r s t u v w x y z ) for((i=1 ; i <$g+1 ; i++))
the message is supposed to be hello , i need to get rid of the endlines somehow..
Running SunGard Banner software on RHEL 4.2 x86-32 bit Linux server Oracle Application 10.1.2.3 samba enabled. Users run processes/reports that are logged in a daily log file. In our daily job submission log files the user password shows up as clear text.The password shows up as $PSWD (sample from the logfile):
I dont want to display everything, of course ^^, but how do i get the player name, the number of games he played and his score to display it in a webpage in this fasion:
Name Games Played Score
joe blow1 25 9876890 joe blow2 31 8989767 joe blow2 26 7989767 joe blow2 17 5989767 joe blow2 13 4989767
and by highest score because the log doesin't put them in in score order....
please help, i asked the maker because he has one runing already but no answer back, well the game is pretty old so i didn't really expect an answer anyways and tryed to figure it out but i dont know functions in php, this is to include in a php-nuke block (this i know how to do
here is an example of a working page at the developper website:url
When I connect to my ubuntu machine at work via NX (shadowing the existing session), I cannot select any text using the shift key. Shift key itself works (I can use it to capitalize letters for instance). It is just that arrow keys, page down/up keys, home/end does not work with shift. Without shift, they work (so I can navigate, just cant select). I tried running xev to see the key events. In the local X11 session (XQuartz), keeping shift key pressed and pressing home prints the expected key press/release events. However, in the NX session, pressing shift prints "key pressed Shift_L" but then pressing home/end/page up/page down prints nothing.
I have no problems with any of the other keys within the remote session. Alt, for instance, works perfectly fine (I can open menus, do alt_tab). Ctrl also works. Ctrl - arrow keys switches my desktops. Editing code is like nightmare because I have to constantly select text using the mouse. I can possibly remap the selection keys to some other combination but that's the last resort.
I think it started after the last Firefox update - I can't select text in forms on any page - not even here, while I'm writing this. When I double click, the selection appears for a fraction of a second, and vanishes instantly. Neither can I select text by dragging, the same happens. I can still select everything with ctrl+A, but I can't select single words or sentences. It's driving me nuts. I've actually switched to Chrome because of this, but I'm missing a lot of Firefox's functionality there, so I'd rather stay with Mozilla.
Ubuntu 11.04Adobe Reader 9I can't highlight/select text and copy and paste it to another file. It worked for me on previous version. Please advise how to make it.After installing OpenOffice pdf extension on LibreWrite I can import .pdf but still I can't find the select/copy/paste functions.
I'm running Eterm, and Kubuntu (Karmic.) Anyway, I can't select text at all in the Eterm window. I can highlight the text with the mouse, but as soon as a let go of the button, the selection goes away. I mean, the text is still there, its just not highlighted anymore. As a result, I can't copy/paste that text. Have to run a different terminal program (like konsole, or xterm.)
im trying to output a list of running processes via a shell script. At the moment i got this which outputs the processes to a text file called out.
echo $(ps aux) >>out
The problem is though, the processes are all just one big block of text which makes it hard to read. Does anyone know how to sort the output to a text file so that it prints to the text file at 1 process per line? I know its probably simple but im very new to linux.
Is there a way to select a second installed OS on a home server system without display and keyboard? I am putting together a home server (for mail, storage, media streaming) using an Atom-based Ubuntu Server 10.04 on a 4 GB intern flash drive and 2 hard drives for data storage, but no display or keyboard. I want to make periodic full backups of the system (flash) disk and use a second OS (installed on a partition on the hard drive) with a graphical interface (e.g. Xbuntu or PartImage) for maintenance purposes. I can connect remotely (from a Win7 or a Linux computer) to the X-display once the second system is running.
a) how can the second OS be booted on this server without keyboard? Is there a way to tell Grub2 to look at some hardware switch (or file) for the menu selection? The board has a serial and parallel port so I could wire up a switch to some pin of one of these. Also external USB connectors are available on front and back. Or can Grub2 read its default OS choise from some simple file, easily to change from a shell command of the eBox webbased system control internface?
b) I assume the second OS is needed to make a complete backup of the server OS on the flash disk. Can the backup be automated? (i.e. switch to second OS, backup, reboot first OS)
my school we want to print a magazine but we have problem with the format of the files. We need to create a sheet in A3 format from two sheets in A4 format. I was reading about the pdftk library but it doesn't do what i need.