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
LSBLK(8) System Administration LSBLK(8)
NAME
lsblk - list block devices
SYNOPSIS
lsblk [options]
lsblk [options] device...
DESCRIPTION
lsblk lists information about all or the specified block devices. The lsblk command reads the sysfs filesystem to gather information.
The command prints all block devices (except RAM disks) in a tree-like format by default. Use lsblk --help to get a list of all available
columns.
OPTIONS
-a, --all
List all block devices.
-b, --bytes
Print the SIZE column in bytes rather than in human-readable format.
-d, --nodeps
Don't print device holders or slaves. For example "lsblk --nodeps /dev/sda" prints information about the sda device only.
-D, --discard
Print information about the discard (TRIM, UNMAP) capabilities for each device.
-e, --exclude list
Exclude the devices specified by a comma-separated list of major device numbers. Note that RAM disks (major=1) are excluded by
default.
-f, --fs
Output info about filesystems. This option is equivalent to "-o NAME,FSTYPE,LABEL,MOUNTPOINT". The authoritative information about
filesystems and raids is provided by the blkid(8) command.
-h, --help
Print a help text and exit.
-i, --ascii
Use ASCII characters for tree formatting.
-m, --perms
Output info about device owner, group and mode. This option is equivalent to "-o NAME,SIZE,OWNER,GROUP,MODE".
-l, --list
Use the list output format.
-n, --noheadings
Do not print a header line.
-o, --output list
Specify which output columns to print. Use --help to get a list of all supported columns.
-P, --pairs
Use key="value" output format.
-r, --raw
Use the raw output format.
-t, --topology
Output info about block device topology. This option is equivalent to "-o NAME,ALIGNMENT,MIN-IO,OPT-IO,PHY-SEC,LOG-SEC,ROTA,SCHED".
NOTES
For the partitions are some information (e.g. queue attributes) inherited from parental device.
AUTHORS
Milan Broz <mbroz@redhat.com>
Karel Zak <kzak@redhat.com>
SEE ALSO
findmnt(8), blkid(8), ls(1)
AVAILABILITY
The lsblk command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux April 2010 LSBLK(8)