Sponsored Content
Top Forums Shell Programming and Scripting Print Terminal Output Exactly how it Appears in the Terminal to a New Text File Post 302970087 by shamrock on Friday 1st of April 2016 03:36:26 PM
Old 04-01-2016
That is because cat hides non-printing characters and to see them do cat -vet file and write a small script to remove those unwanted characters...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Output to terminal and file at the same time

Hi all The makefile of a large project produces hundreds of lines of output, which I can't look at any more when the build is finished. If I simply redirect the output to a file, I can't see the progress of the building process... Is there a possibility to redirect the output to a file and at... (1 Reply)
Discussion started by: Charlie
1 Replies

2. Solaris

terminal output - save to file?

I have a window open on my ultra 10 - a terminal window connecting to a server. Is there any way I can log all output to this window to a log file on my ultra 10 ? (2 Replies)
Discussion started by: frustrated1
2 Replies

3. UNIX for Advanced & Expert Users

Terminal Output to a File ??

Hey, How can I transfer the terminal output to a file ? For example : command "fuser" returns the "process-id" and prints the output on the terminal, but I want that output to a file as well. How can I do that ? /clocal/mqbrkrs/user/mqsiadm/sanjay/AccessMonitor $ fuser -uf... (2 Replies)
Discussion started by: varungupta
2 Replies

4. UNIX Desktop Questions & Answers

Output terminal sessions to screen and log file

I would like to use a terminal session to ssh to switches and routers. I need to capture data while logged into switches to a file I can email for troubleshooting. I use termial to log into Cisco switch, run the sh tech command, and then sent the output to cisco. Is there a way to run a... (4 Replies)
Discussion started by: tdelliott
4 Replies

5. UNIX for Dummies Questions & Answers

Live/real-time text-file updates in terminal

I want to have a terminal open and have something like a "repeating cat" command running in it for a certain text file (in particular /var/log/system.log). So my terminal will scan or cat the text file every so often or whenever the text file system.log gets written to by the system, it will... (1 Reply)
Discussion started by: guitarscn
1 Replies

6. Shell Programming and Scripting

how to Redirect the output of telnet command on a terminal to a file ?

(/home/user1)-> more script.sh #!/bin/ksh ( echo open devicename sleep 3; echo user; sleep 2; echo password; sleep 2; echo "/info/dump"; ---------> This needs to redirect to a file .Can be number of pages sleep 2; echo "exit" ) | telnet Please use code tags next time for... (2 Replies)
Discussion started by: necro98
2 Replies

7. UNIX for Dummies Questions & Answers

Strange behaviour when output to terminal vs file (awk)

Hi all ! I noticed something very weird. I have a large pipe delimited file (20 fields/3,000 records) that looks like that: AAA|BBB|11111|22222|...|($NF of record 1) CCC|DDD|33333|44444|...|($NF of record 2) CCC|DDD|55555|66666|...|($NF of record 3) For the lines with same 1st and 2nd... (3 Replies)
Discussion started by: beca123456
3 Replies

8. Shell Programming and Scripting

Printing Terminal Output to a Error File

I am having a bash script which is basically invoking a python program to validate the Source Query results against the target query results. I am placing all the queries in a .sql file. I want to write to a Error log file incase if the syntax is wrong or if the column is not present in the... (4 Replies)
Discussion started by: ronitreddy
4 Replies

9. Shell Programming and Scripting

Help needed editing text file using the terminal

Hi, I have text file with the header like this tracking_id condition replicate FPKM XLOC_000001 alpha 1 10.3199 XLOC_000001 alpha 0 10.3686 XLOC_000001 alpha 2 15.5619 ... With the first column being genes, the second being the condition, the third... (5 Replies)
Discussion started by: 4galaxy7
5 Replies

10. Shell Programming and Scripting

Cannot get terminal application to launch with a graphical launcher when successful in terminal

I have been having an extremely annoying problem. For the record, I am relatively new at this. I've only been working with unix-based OS's for roughly two years, mostly Xubuntu and some Kali. I am pretty familiar with the BASH language, as that's the default shell for debian. Now, I've made this... (16 Replies)
Discussion started by: Huitzilopochtli
16 Replies
TERMINAL(1)						      General Commands Manual						       TERMINAL(1)

NAME
Terminal - GNUstep Terminal Emulator SYNOPSIS
openapp Terminal [program [arguments ...]] DESCRIPTION
This manual page documents briefly the Terminal GNUstep application. This manual page was written for the Debian distribution because the original program does not have a manual page. Terminal provides terminal emulation in a GNUstep environment. It gives colorized terminals with configurable fonts, and also allows users to configure shell utilities as GNUstep services. Fonts You can change the fonts used for normal and bold text in the preferences panel. Terminal will get the metrics for the character cells from the normal font, so this font really should be a fixed pitch font or things will look messed up. The bold font should closely match the normal font. Terminal assumes that all characters, bold and normal, stay inside the normal font's bounding box. If they don't, there will be visual glitches. However, it is more common that a non-fixed pitch font's bounding box is very large (since it needs to enclose all characters in the font), so that the terminal window will be very wide. Keys By default, the command key is used to access key equivalents for menu entries, and thus can't be used as a meta key in the terminal. If you have command mapped to the key you want to use as meta, you can enable will disable all key equivalents in Terminal. The 'proper' solution to this problem is to remap the command key (and possibly alternate key). The alternate key will always be treated as meta. Often, the escape key can be used to emulate a meta key. This means that in some programs, you might have to press escape twice to get a 'real' escape, or there will be a delay before it is handled. The 'Send a double escape...' option causes Terminal to send a double escape when you hit the escape key (ie. "ee"), which should work better (but you can no longer use the escape key as meta). Terminal services Terminal can provide services for other applications by piping the selection through arbitrary commands. Services are configured in one of the preferences panel's tabs. The first time you open this tab, a default set of services will be loaded. To save these where make_ser- vices will actually find them, press 'Apply and save'. This will also run make_services to update the services list, but it may take up to 30 seconds for running applications to notice the change. The 'Add' and 'Remove' buttons add and remove services. Using the These files can be imported using the 'Import' button, so it is possible for users to share terminal services definitions. The extension of the file should be '.svcs'. The default set of services is such a file located in the application wrapper's resource directory. If you import a service with the same name as an existing service, and they aren't identical, the new one will be renamed to avoid a conflict. Name This is the name of the service as it appears in the services menu. By default, terminal services will be placed in a 'Terminal' submenu of the Services menu, but you can override this by giving the name a leading '/'. In this case, you can also use a second '/' to create your own submenus. (gnustep-gui doesn't support submenus of submenus, though.) Names must be unique. Key The key equivalent for this command, if any. Note that if an application uses this key for some other menu entry, the key will activate that menu entry, not the service. Command line The command line. It is passed to /bin/sh, so any shell commands will work, and arguments may have to be quoted. A '%p' in the com- mand line will cause a prompt to be brought up when the service is run. If input is to be placed on the command line, you can mark the place to put it at with '%s' (otherwise it will be appended to the command line). You can use '%%' to get a real '%'. Run in background/new window/idle window If a service is set to run in the background, the command will have to complete before the service will return, and the service can return output. Otherwise, the command's output will appear in a window. ``new window'' causes a completely new window to be opened (and it will close automatically when the command is completed if that option is set). ``idle window'' causes Terminal to try to reuse an existing idle window. If there is no such window it will open a new window (and that window won't close automatically). Ignore/return output (only applies to background services) If set to ignore, the output of the command will be discarded. Otherwise, it will be parsed to a string or a bunch of filenames, depending on the acceptable types. The output is assumed to be utf8 encoded. No input/Input in stdin/Input on command line If set to 'No input', the service won't accept any input. Otherwise it is necessary to select something to run it, and the selec- tion will be either piped to the command ('in stdin') or placed on the service's command line (either at the '%s' or at the end, see above). Input will be sent to the command utf8 encoded. Accept types Plain text will be sent verbatim to the command. A list of filenames (possibly just one) will be sent separated by ' ':s (if on the command line), or newlines (if in stdin). OPTIONS
Commands can be given on the command line which will be run in the newly opened shell window. EMULATION
The terminal emulation code is based on Linux's console code, and nearly all parts of it are handled. Thus, the TERM environment variable is set to 'linux'. Additionally, 'vt100', 'vt220', 'xterm', and others similar to these should mostly work. To distinguish Terminal from a 'real' linux console, the environment variable TERM_PROGRAM is set to GNUstep_Terminal. The xterm extensions for setting the window's title are also supported. You set the title using: 1 sets the miniwindow title, 2 sets the window title, and 0 sets both. Example (from Jeff Teunissen): export PROMPT_COMMAND='echo -ne "33]2;Terminal - ${HOSTNAME}:${PWD}07"' ENVIRONMENT
Terminal sets the following environment variables: TERM Will be set to linux. TERM_PROGRAM Will be set to GNUstep_Terminal. LANGUAGES
Terminal speaks English, French, German, Hungarian, Norwegian, Russian, Spanish, Swedish and Turkish. NOTES
The content of this manual page is taken from the packages README file and was converted into a manual page for Debian. SEE ALSO
http://www.nongnu.org/backbone/ http://www.gnustep.org/ GNUstep(7) openapp(1) open(1) make_services(1) December 17, 2004 TERMINAL(1)
All times are GMT -4. The time now is 08:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy