Sponsored Content
Full Discussion: Substitution of last command
Top Forums Shell Programming and Scripting Substitution of last command Post 60402 by zazzybob on Sunday 16th of January 2005 06:04:00 PM
Old 01-16-2005
I just tried it telnet-ing into the HP-UX 10.20 box at work and last works fine, also; I tried it on a bunch of Linux boxes, Solaris 9, and UNICOS and it works without a hitch.

Cheers
ZB
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

complex command substitution

hi, I have to execute this line below from within a shell script; simply backquoting it is not doing the trick; it is mangling up all the options; but when i type it out on a command line, it executes cleanly. Please help me in getting this right; $ vlc -I dummy --sout='#transcode{vcodec=mp4v,... (5 Replies)
Discussion started by: spopuri
5 Replies

2. Shell Programming and Scripting

Difference between "Command substitution" and "Process substitution"

Hi, What is the actual difference between these two? Why the following code works for process substitution and fails for command substitution? while IFS= read -r line; do echo $line; done < <(cat file)executes successfully and display the contents of the file But, while IFS='\n' read -r... (3 Replies)
Discussion started by: royalibrahim
3 Replies

3. UNIX for Dummies Questions & Answers

Command substitution within an echo

I'm trying to get this to work and I'm not really sure how to do it. echo $x | awk '{print $NF}' MODIFIEDThe output I'm trying to get should look like: dir1 MODIFIED Where dir1 will be the result of: $x |awk '{print $NF}'I'm sure there's something I'm supposed to put around that part... (3 Replies)
Discussion started by: ewoods
3 Replies

4. UNIX for Dummies Questions & Answers

sed insert command and variable expansion/command substitution

I know this script is crummy, but I was just messing around.. how do I get sed's insert command to allow variable expansion to show the filename? #!/bin/bash filename=`echo $0` /usr/bin/sed '/#include/ { i\ the filename is `$filename` }' $1 exit 0 (8 Replies)
Discussion started by: glev2005
8 Replies

5. UNIX for Dummies Questions & Answers

read command - using output from command substitution

Hey, guys! Trying to research this is such a pain since the read command itself is a common word. Try searching "unix OR linux read command examples" or using the command substitution keyword. :eek: So, I wanted to use a command statement similar to the following. This is kinda taken... (2 Replies)
Discussion started by: ProGrammar
2 Replies

6. Shell Programming and Scripting

Repeating Substitution Command on VI

Hello Folks, how to write a command on vi that allow to repeat last substitution command? Here what I want to do : 1 2 3 1 2 3 1 2 3 :.,+2s/\n/ /And I obtain : 1 2 3 1 2 3 1 (5 Replies)
Discussion started by: gogol_bordello
5 Replies

7. UNIX for Advanced & Expert Users

Help with command substitution in C program

Hi, I want to know if there's a cleaner way for assigning output of a unix command to a variable in C program . Example : I execute dirname fname and want the output to be assigned to a variable dname . Is it possible . I knew u can redirect the output to a file and then reread assigning... (5 Replies)
Discussion started by: royalbull
5 Replies

8. Shell Programming and Scripting

Command substitution in echo

a=1 b1=unix echo $b`$a` The above code is not working. Instead of printing the variable b1 using 'echo $b1', how to use variable 'a' to print 'b1' (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

9. Shell Programming and Scripting

Substitution within string command

I have the following code: strfuture=abcdefghi ver=${strfuture:${count}:1} mj7777_ver=${ver} start_mj7777_iteration let count=count+1 When it is executed I get bad substitution. The same if I use ver=${strfuture:$count:1} mj7777_ver=${ver}... (6 Replies)
Discussion started by: Bruble
6 Replies

10. Shell Programming and Scripting

Regarding command substitution

Oracle Linux 5.6, 64-bit Given the following snippet wrkvar=`sqlplus -s / as sysdba <<EOF set echo off feedback off head off trimsp on select count(*) from v\$parameter where name in ('db_file_name_convert','log_file_name_convert') and value is not null; EOF` echo wrkvar=$wrkvarProduces... (2 Replies)
Discussion started by: edstevens
2 Replies
GENBOX(1)						      General Commands Manual							 GENBOX(1)

NAME
       genrbox - generate a RADIANCE description of a box

SYNOPSIS
       genrbox mat name xsiz ysiz zsiz [ -i ][ -r rad | -b bev ]

DESCRIPTION
       Genbox  produces  a  RADIANCE  scene  description of a parallelepiped with one corner at the origin and the opposite corner at (xsiz, ysiz,
       zsiz).  The sides of the box will be parallel to the three coordinate planes.  The surfaces that make up the box will be  modified  by  mat
       and  their  identifiers	will  begin  with  name.  The -i option can be used to produce a box with inward directed surface normals.  The -r
       option can be used to specify the radius for rounded edges.  The -b option can be used to specify the indentation for beveled edges.

EXAMPLE
       To produce a rectangular box made of wood with beveled edges:

	 genrbox wood box1 5 8 3 -b .5 > box1

AUTHOR
       Greg Ward

BUGS
       Because spheres and cylinders are used to construct boxes with rounded edges, a transparent box of this type appears quite messy.

SEE ALSO
       genrev(1), gensurf(1), genworm(1), rpict(1), rvu(1), xform(1)

RADIANCE							     11/15/93								 GENBOX(1)
All times are GMT -4. The time now is 11:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy