Sponsored Content
Top Forums Shell Programming and Scripting For loop - unexpected token `do Post 302953424 by Don Cragun on Friday 28th of August 2015 03:30:30 AM
Old 08-28-2015
After you connect to the server and open a new terminal window, show us the output from the following commands typed into that terminal window:
Code:
/bin/sh --version
uname -a
type bash date sh
ls -l /bin/bash /bin/date /bin/sh

PS... And what output do you get from the command:
Code:
date +%Y-%m-%d --date "1 day ago"


Last edited by Don Cragun; 08-28-2015 at 04:32 AM.. Reason: Add PS.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

While loop error: Unexpected token done

I have tried to implement a while loop into the code but upon running the following code i am getting the errors: ./Assigntest: line 42: syntax error near unexpected token `done' ./Assigntest: line 42: `done' The code is as follows: #!/bin/bash #Filename: Assignment Author: Luke... (9 Replies)
Discussion started by: warlock129
9 Replies

2. Shell Programming and Scripting

sh syntax error unexpected token done

I'm getting the following error: line 21: syntax error near unexpected token `done` line 21: `done` and I haven't been able to figure out why. Here is my code #!/bin/sh if ; then echo 'Usage: rename getexp/replStr ' exit 0 fi arg = $1 shift while ; do (5 Replies)
Discussion started by: NullPointer
5 Replies

3. Shell Programming and Scripting

Syntax error near unexpected token `('

Guys , This is an output of my script errored out for "Syntax error near unexpected token `(' " Can someone tell me whats wrong with my script. Below is my original script pasted. #!/bin/bash Script Creation Date 01/21/2010 Author baraghun ... (7 Replies)
Discussion started by: raghunsi
7 Replies

4. Shell Programming and Scripting

Syntax error near unexpected token `done'

Hi all, Here is a simple script that is working in one server and is giving a syntax error in other server. Can somebody help me ? #!/bin/bash # ftp files done < $file errors: I tried..with no success: if ; then (21 Replies)
Discussion started by: Lenora2009
21 Replies

5. Shell Programming and Scripting

Unexpected Token Error `;;'

Hello all, Im having an Issue with my script for switch statement , can someone let me know where do i need to correct it. 7 ##******************************************************************************************************* 8 ## ********** FUNCTION USAGE *********** ... (13 Replies)
Discussion started by: raghunsi
13 Replies

6. Shell Programming and Scripting

syntax error near unexpected token `='

Hi all, This is a script which converts hex to bin. However am finding an error while executing syntax error near unexpected token `=' `($hexfile, $binfile) = @ARGV;' I am running using ./fil.pl <hexfile> <binfile> ################################################### # # this script... (3 Replies)
Discussion started by: jaango123
3 Replies

7. Shell Programming and Scripting

Syntax error near unexpected token `else'

Hi, I am trying to read the session log through script. But it keeps showing me some error near. I have tried everything. Even tried converting the script using sed command to remove the hidden characters(\r).But nothing seems to be working.Below is the script : #!/bin/bash cd... (6 Replies)
Discussion started by: Aryan12345
6 Replies

8. Shell Programming and Scripting

Syntax error near unexpected token '('

I tried to execute the code but I got this error ./Array.c: line 9: syntax error near unexpected token '(' ./Array.c: line 9: ' nvals = get_data(a,MAXARRAY);' and #include<stdio.h> #define MAXARRAY 1000 main() { int a, nvals; nvals =... (7 Replies)
Discussion started by: sgradywhite
7 Replies

9. UNIX for Beginners Questions & Answers

Syntax error near unexpected token 'do'

Hello all, Please i have this command i used to zip different files in differents directory, but i have an error. Note that when i run the command in one directory it works fine. /X5/WORK/BGH/INV/REG/pdf/SEND/BGH12523/1/*.fo /X5/WORK/BGH/INV/REG/pdf/SEND/BGH24523/1/*.fo... (3 Replies)
Discussion started by: gillesi
3 Replies

10. Ubuntu

Syntax error near unexpected token `('

detect_mouse_mvt.sh /home/andy/bin/detect_mouse_mvt.sh: line 4: syntax error near unexpected token `(' /home/andy/bin/detect_mouse_mvt.sh: line 4: `fh = file('/dev/input/mice')' #!/bin/bash # # fh = file('/dev/input/mice') while True: fh.read(3) print 'Mouse... (15 Replies)
Discussion started by: drew77
15 Replies
plot(1g)																  plot(1g)

Name
       plot - graphics filters

Syntax
       plot [-Tterminal[raster]] [-l#] [-w#] [-c#]

Description
       The command reads plotting instructions from the standard input and produces plotting instructions for a specified terminal on the standard
       output.	For further information see

Options
       The following options are available with the command.

       -Tterminal     Uses the specified terminal name as the terminal type for which plotting instructions are to be generated.   If  a  terminal
		      type  is	not  specified, the environment parameter $TERM is used. For more information, see The terminal type can be one of
		      the following:

		      450      DASI Hyterm 450 terminal (diablo mechanism).

		      300      DASI 300 or GSI terminal (diablo mechanism).

		      300S     DASI 300S terminal (diablo mechanism).

		      4014 or tek
			       Tektronix 4014 or 4015 with Enhanced Graphics Module.  (Use 4013 for Tektronix 4014 or Tektronix 4015  without  the
			       Enhanced Graphics Module).

		      4013     Tektronix 4013 Storage scope

		      aed      AED 512 color graphics terminal

		      bitgraph or bg
			       BBN bitgraph graphics terminal

		      crt      Any crt capable of running

		      dumb     dumb terminals without cursor addressing or line printers

		      grn      given a plot file, produces a grn file.

		      hp7221   Hewlett Packard 7221 Graphics terminal.

		      hp2648   Hewlett Packard 2648 Graphics terminal.

		      imagen or ip
			       Imagen laser printer (default 240 DPI resolution).

		      lvp16    DEC LVP16 Graphics Plotter.

		      hp7475a  HP 7475A Graphics Plotter.

		      ver      Versatec  D1200A printer-plotter. This version of places a scan-converted image in and sends the result directly to
			       the plotter device rather than to the standard output.  The optional argument causes  a	previously  scan-converted
			       file raster to be sent to the plotter.

		      var      Benson Varian printer-plotter.

		      vt125    DEC vt125 terminal.

       raster	      Is  a  scan-converted temporary file that is sent directly to the plotter.  The raster file is only specified with the -Tver
		      option.

       If terminal is either an lvp16 or a hp7475a, you can specify the following options.  These options must follow the -Tterminal option:

       -l#	      length of paper window in plotter units (unit scale)

       -w#	      width of paper window in plotter units (unit scale)

       -c#	      initial pen carousel to be used

Restrictions
       A lockout protection does not exist for

Files
       /usr/bin/t4013
       /usr/bin/aedplot
       /usr/bin/bgplot
       /usr/bin/crtplot
       /usr/bin/dumbplot
       /usr/bin/gigiplot
       /usr/bin/grnplot
       /usr/bin/hpplot
       /usr/bin/hp7221plot
       /usr/bin/implot
       /usr/bin/lvp16
       /usr/bin/tek
       /usr/bin/t450
       /usr/bin/t300
       /usr/bin/t300s
       /usr/bin/vplot
       /usr/tmp/raster

See Also
       graph(1g), plot(3x), plot(5)

																	  plot(1g)
All times are GMT -4. The time now is 07:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy