Sponsored Content
Top Forums Shell Programming and Scripting How to send working command to a specified file or desktop Post 302315630 by repinementer on Wednesday 13th of May 2009 02:22:46 AM
Old 05-13-2009
How to send working command to a specified file or desktop

Hi
Is there any way to save the command using on the terminal to a specified file with out typing it in a word.

for ex.

awk '{print $1)' input.txt

Is it possible to save (in wordpad or microsoftword) and send the text of the command "awk '{print $1)' input.txt" to a targetted file in a computer

Thanx for the help in advance
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Working of file command

Hi, we are using sun solaris 9 os. I want to know how the file command works? How does it differentiate text files, data files and other files ? Is there any relationship between environmental variables and file command? (2 Replies)
Discussion started by: rprajendran
2 Replies

2. Shell Programming and Scripting

awk/sed Command : Parse parameter file / send the lines to the ksh export command

Sorry for the duplicate thread this one is similar to the one in https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121 Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
Discussion started by: rajan_san
4 Replies

3. Solaris

/etc/profile file edited. No command working

I have X4500 and I created a user. I wanted to give him root privileges and for editing the sudoers files I typed visudo sudoers. But it said visudo command not found. After googling I found that we need to set path in etc/profile. I edited that and put the following command ... (3 Replies)
Discussion started by: bharu_sri
3 Replies

4. Linux

A working bootable Linux XP Desktop 4.0.31 ISO image?

Hi everyone, I want to run on VMWare the Linux XP 2010 Desktop 4.0.31 distro, Iīve downloaded the latest realese from its website (Trustverse Desktop 4.0 RC1 -build 31)-->http://www.linux-xp.com/desktop/download/. Itīs 4.47 GB in size, but when I mount on an ISO software, the size is 2.75GB... (0 Replies)
Discussion started by: cgkmal
0 Replies

5. Shell Programming and Scripting

no command is not working to send a mail in linux redhot server

HI All, I am facing the problem with rmail ... Actually my server is linux environment Redhot server. To send a mail which command I have to use it . I want subject and I want to Include CC also And body of the mail also there . But If I use rmail command it is not taking any options to... (1 Reply)
Discussion started by: ksrivani
1 Replies

6. Shell Programming and Scripting

How to attach multiple file to send mail command

Hi, i want color effect on mail as well as multiple attachment.I have code but this code is used for single attachment. I am unable to attach more than one file.:wall: I want to send two attachments -ahmed.csv and ahmed1.csv . Sample content: <html> <body> <b> Hi...</b> </body> </html> ... (1 Reply)
Discussion started by: AhmedLakadkutta
1 Replies

7. Shell Programming and Scripting

want to send .csv file as an attachment using mailx command.

want to send .csv file as an attachment using mailx command. Please help!!! (1 Reply)
Discussion started by: gagandeep
1 Replies

8. Shell Programming and Scripting

Mailx command to send attachment file

Hi, I need to send a attachment which has space in the file name as: "ABC Data Extract.txt" which is present in the location /home/projects/txt i am using /home/projects/scripts mailx -s "Sub" email_id "/home/projects/txt/ABC Data Extract.txt" but i am not getting the attachment. (7 Replies)
Discussion started by: ATWC
7 Replies

9. Shell Programming and Scripting

Send output of time command to file

I am measuring the time it takes for a wget command to complete. Right now my command is: time wget https://`ifconfig -a | grep '32.29.120' | cut -d: -f2 | cut -d' ' -f1`:8443/primary-rest/shop?brandId=test --header="name: test" --no-check-certificate -o SELF_TEST.log The output I get is ... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies

10. UNIX for Beginners Questions & Answers

XFCE Desktop - trash, cannot execute file, command prompt here missing.

Hi there, I am using the xfce4 is already the newest version (4.12.5). thunar is already the newest version (1.8.4-1). The distribution is Linux kali 4.19.0-kali1-amd64 #1 SMP Debian 4.19.13-1kali1 (2019-01-03) x86_64 GNU/Linux However, the problem is: When I when I click on any program to... (2 Replies)
Discussion started by: alvinoo
2 Replies
APSPREVIEW(1)						    BSD General Commands Manual 					     APSPREVIEW(1)

NAME
apspreview -- preview PostScript file(s) as generated by apsfilter SYNOPSIS
apspreview [-Pqueue] [-Zoptions] [input...] apspreview [-h] DESCRIPTION
With apspreview you can create a PostScript representation of the file(s) you are about to print in order to check it before actually print- ing. Your file(s) will be converted to PostScript according to the queue specific configuration, and afterwards you will be able to print all or some pages from your PostScript viewer application (gv, kghostview or ghostview). OPTIONS
-h show help screen -Pqueue select a printer queue (different from the default one) -Zoptions use apsfilter command line options (comma-separated list) input... input file(s) [default: stdin] NOTES
If you use the -P option, please remember to pass the same printer queue on to the lpr(1) command. Be careful if your printer queue configuration includes a setting to create multiple pages per sheet (PS_NUP=2, PS_NUP=4 or PS_NUP=8). In order to make sure that apsfilter(1) does not repeat n-up printing, use the 1pps command line option when actually printing the file. apspreview only works correctly with entries in /etc/printcap that have been created by /usr/share/apsfilter/SETUP. All configuration set- tings will be copied from the relevant apsfilterrc files. FILES
/etc/printcap printer capability data base /usr/share/apsfilter/bin/apsfilter apsfilter script /usr/bin/aps2file tool to save apsfilter output to a file SEE ALSO
apsfilter(1), aps2file(1), apsfilter-bug(1), apsfilterrc(5), printcap(5) BUGS
See apsfilter software center - http://www.apsfilter.org/ - for new versions, bugfixes and known bugs. Please use the new tool apsfilter-bug(1) to release bug- or problem reports. It automatically presents you a form in an editor window which asks you some standard questions. If you save and quit the editor session, then this report is sent automatically via e-mail to the proper apsfilter mailinglist. If apsfilter fails to print something or prints it in a way you wouldn't expect and you want to report an apsfilter error then please save the debugging output of one print session using the new aps2file(1) utility by typing aps2file -D -Z options file > /dev/null 2> file.debug and including the debugging output in the file file.debug into the edit session of the apsfilter-bug utility, so that it is included into the mail to the apsfilter mailinglist. Please note that you need to run /bin/sh (Bourne Shell), bash or a compatible shell, so that the above mentioned output redirection works. Under C-shell (/bin/csh) or tcsh it would't work. If you don't know, then simply make sure you use the Bournce shell by typing /bin/sh or bash, then you should have no problems with redirection of stdout and stderr (> /dev/null 2> file.debug). DOCUMENTATION
See official apsfilter homepage http://www.apsfilter.org/handbook.html Apsfilter Handbook including the Frequently Asked Questions (FAQ) USER FORUM
Please send questions to the official apsfilter help channel apsfilter-help@apsfilter.org. The above section BUGS and the file HOWTO-BUGREPORTS tells you how to report bugs. If you want to know how to troubleshoot your apsfilter installation, please read the manpage aps2file(1) and apsfilter-bug(1) as well as the Apsfilter Handbook carefully. HISTORY
The apspreview manpage has been written by Michael LoBin <phallobst@web.de> and first appeared in apsfilter V 7.1.0. BSD
Dec 27, 2001 BSD
All times are GMT -4. The time now is 08:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy