LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i remove unwanted charaters at "script" command output? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-remove-unwanted-charaters-at-script-command-output-181615/)

linuxzouk 05-14-2004 10:31 PM

how do i remove unwanted charaters at "script" command output?
 
the output of "script" command seems to have additional characters eg. ^[], ^[[00M, ^M, ^G

how do i remove them? any commands to clear it all off automatically

agoatley 05-15-2004 06:08 AM

Could you please elaborate? What command did you enter that produced the strange output?

motub 05-15-2004 07:28 AM

Did you hit any "movement" keys (Delete, Backspace, etc) while the command was running? That could produce strange output like that.

linuxzouk 05-15-2004 07:45 AM

i'm using fedora core 1. at gnome using konsole

command:
# script

i do a ls, date and exit

this is the output:

Script started on Sun 16 May 2004 08:42:32 PM MYT
]0;linuxzouk@fedora:~[linuxzouk@fedora linuxzouk]$ ls
Desktop typescript
]0;linuxzouk@fedora:~[linuxzouk@fedora linuxzouk]$ date
Sun May 16 20:42:36 MYT 2004
]0;linuxzouk@fedora:~[linuxzouk@fedora linuxzouk]$ exit

Script done on Sun 16 May 2004 08:42:38 PM MYT

motub 05-15-2004 07:58 AM

I don't actually see anything odd there; I'm not familar with script, but it looks to me that the first half of the line is script's explanation of who did what, and where (what user, what hostname, what directory they were acting on, with "unreadable" characters representing the "line number" and additional information such as the fact that your prompt apparently is colorized), and then what comes after the dot is the actual output.

Whoever is supposed to be reading this output shouldn't have any issues with it; I didn't and I only glanced at man script.

Any who are more familar with the standard output of the script command are free to contradict me, of course ;) .


All times are GMT -5. The time now is 05:17 PM.