04-17-2003
Print command in linux
What is the equivalent of print for linux scripts? I've scripted in unix, but went to try and do a script in linux, red hat 6.2, and it said print command not found.
i.e.:
print 'Enter answer'
read answer
.
.
.
etc.
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
Perhaps a dumb question, but how do you do a "print screen" within the X-Window in linux. I'm running KDE, is there a utility I can use in that package that I'm not aware of. Or, is there a way to turn on the <alt><print-screen> function with the keyboard?
Thanks in advance.
VJ (2 Replies)
Discussion started by: vancouver_joe
2 Replies
2. UNIX for Dummies Questions & Answers
It my first post here .
I just want to get the content of the file as values for printinting along with line number in LINUX
Here is what I tried .
$ cat test1.txt
ABC
DSF
GHI
JKL
MNO
PQR
STU
VWX
YZO
$ cat test.sh
#!/bin/ksh (4 Replies)
Discussion started by: rajavu
4 Replies
3. Red Hat
helo
i want to show today date and calendar when v succesfuly login on the system on the linux server
please orovide the sol for the same
thanx :):):) (1 Reply)
Discussion started by: dodasajan
1 Replies
4. Red Hat
Hi,
Can anyone help me on migration the print server from AIX to RHEL 4?
Appreciate your help? (1 Reply)
Discussion started by: brby07
1 Replies
5. UNIX for Beginners Questions & Answers
Now I'm trying summary sar data.
CPU , Memory , Traffic , TPS (Min Max value)
CPU is okay using below command.
$ sar -p | awk '{gsub(//,"")}1' | awk 'BEGIN {min=1000000; max=0;};\
{ if($7<min && $7 != "") min = $7; if($7>max && $7 != "") max = $7; } END {print min, max}'
98.93 99.55
... (1 Reply)
Discussion started by: tom8254
1 Replies
6. UNIX for Beginners Questions & Answers
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
Discussion started by: verbatim
2 Replies
DMESG(1) General Commands Manual DMESG(1)
NAME
dmesg - print or control the kernel ring buffer
SYNOPSIS
dmesg [-c] [-r] [-n level] [-s bufsize]
DESCRIPTION
dmesg is used to examine or control the kernel ring buffer.
The program helps users to print out their bootup messages. Instead of copying the messages by hand, the user need only:
dmesg > boot.messages
and mail the boot.messages file to whoever can debug their problem.
OPTIONS
-c Clear the ring buffer contents after printing.
-r Print the raw message buffer, i.e., don't strip the log level prefixes.
-s bufsize
Use a buffer of size bufsize to query the kernel ring buffer. This is 16392 by default. (The default kernel syslog buffer size was
4096 at first, 8192 since 1.3.54, 16384 since 2.1.113.) If you have set the kernel buffer to be larger than the default then this
option can be used to view the entire buffer.
-n level
Set the level at which logging of messages is done to the console. For example, -n 1 prevents all messages, except panic messages,
from appearing on the console. All levels of messages are still written to /proc/kmsg, so syslogd(8) can still be used to control
exactly where kernel messages appear. When the -n option is used, dmesg will not print or clear the kernel ring buffer.
When both options are used, only the last option on the command line will have an effect.
SEE ALSO
syslogd(8)
AVAILABILITY
The dmesg command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
DMESG(1)