01-13-2019
Quote:
Look like your count is wrong (I may be wrong still half asleep...) I count 4 => so it should be -f4
Thank you. I changed it to -f4 but still it shows the same error
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to see what a command is doing. For example, say I move 10 files using mv * somedir. Can I use some other command to see a verification of each files movement. Like:
file1 moved to somedir
file2 moved to somedir
...
but, i'd to have this capability for all commands. it seems... (1 Reply)
Discussion started by: quantumechanix
1 Replies
2. Shell Programming and Scripting
Hi all,
Does anyone know how to ammend the .cshrc file in $HOME for your session to display the path as part of the command line? So that I dont need to keep on typing pwd to see where I am?
thanks
Ocelot (2 Replies)
Discussion started by: ocelot
2 Replies
3. Shell Programming and Scripting
Hi,
I want to display list of last 10 backup files (with numbering) from the temporary file
c:/tmp/tmp_list_bkp.txt
Example :
1) backup_file1
2) backup_file2
3) backup_file3
........
........
I tried as below but not working.
for file in c:/tmp/tmp_list_bkp.txt
do
echo... (3 Replies)
Discussion started by: milink
3 Replies
4. UNIX for Dummies Questions & Answers
#!/bin/bash
function check_num_args()
{
if ; then
echo "Please provide a file name"
else
treat_as_file $*
fi
}
function treat_as_file()
{
numFiles=$#
for((i=1;i<=$numFiles;i++));do
echo $i
... (3 Replies)
Discussion started by: kikilahooch
3 Replies
5. Shell Programming and Scripting
can any1 please tell me what is problem with following code:
i=1;
cat test| while read CMD;
do
Var$i=$CMD; or Var$i=$(echo $CMD) ;
let i++
doneI keep getting error :
line 4: Var1=sometext: command not found (2 Replies)
Discussion started by: kashif.live
2 Replies
6. Shell Programming and Scripting
Hi
I've gotten a plugin script that won't run. I keeps throwing an error at the following line.
for BARCODE_LINE in `cat ${TSP_FILEPATH_BARCODE_TXT} | grep "^barcode"`
do
#something
done
The error reads
... (3 Replies)
Discussion started by: jdilts
3 Replies
7. Shell Programming and Scripting
Hi gurus,
I hit a block when write the script.
I need do while loop, in the loop I have code below.
sqlplus -s abc/abc@abc <<EOF
spool testwhile
select *
from dual;
spool off
exit;
EOF
when I run script with only this code, it works fine.
if I add code as below:
#!/bin/ksh
... (5 Replies)
Discussion started by: ken6503
5 Replies
8. Red Hat
Hello all
I have a query (SQL) that returns a rather long field from an Oracle database. The field in question is defined on 400 characters but all these 400 cannot be displayed by the echo command. Thus when I launch the following command:
echo "SELECT FIELD01 FROM TABLE_NAME;" | sqlplus -s... (9 Replies)
Discussion started by: S. BASU
9 Replies
9. Shell Programming and Scripting
Hi Team,
Not getting the file output inside my email which i am sending from unix box. . Please refer the below code :
#!/bin/sh
{
sleep 5
echo ehlo 10.56.185.13
sleep 3
echo mail from: oraairtel@CNDBMUREAPZP02.localdomain
sleep 3
echo rcpt to: saurabhtripathi@anniksystems.com... (1 Reply)
Discussion started by: tripathi1990
1 Replies
10. UNIX for Beginners Questions & Answers
Hi!
I've run into a problem where my variables are displayed in the wrong order. Basically I'm supposed to use a file that has information like this username:firstname:lastname:etc:etc.
What I'm interested in doing is reformating it into a something more like this: username lastname,... (2 Replies)
Discussion started by: reindeermountai
2 Replies
LEARN ABOUT MOJAVE
tcl_wrongnumargs
Tcl_WrongNumArgs(3) Tcl Library Procedures Tcl_WrongNumArgs(3)
__________________________________________________________________________________________________________________________________________________
NAME
Tcl_WrongNumArgs - generate standard error message for wrong number of arguments
SYNOPSIS
#include <tcl.h>
Tcl_WrongNumArgs(interp, objc, objv, message)
ARGUMENTS
Tcl_Interp interp (in) Interpreter in which error will be reported: error message gets stored in its result object.
int objc (in) Number of leading arguments from objv to include in error message.
Tcl_Obj *const objv[] (in) Arguments to command that had the wrong number of arguments.
const char *message (in) Additional error information to print after leading arguments from objv. This typically gives the
acceptable syntax of the command. This argument may be NULL.
_________________________________________________________________
DESCRIPTION
Tcl_WrongNumArgs is a utility procedure that is invoked by command procedures when they discover that they have received the wrong number
of arguments. Tcl_WrongNumArgs generates a standard error message and stores it in the result object of interp. The message includes the
objc initial elements of objv plus message. For example, if objv consists of the values foo and bar, objc is 1, and message is "fileName
count" then interp's result object will be set to the following string:
wrong # args: should be "foo fileName count"
If objc is 2, the result will be set to the following string:
wrong # args: should be "foo bar fileName count"
Objc is usually 1, but may be 2 or more for commands like string and the Tk widget commands, which use the first argument as a subcommand.
Some of the objects in the objv array may be abbreviations for a subcommand. The command Tcl_GetIndexFromObj will convert the abbreviated
string object into an indexObject. If an error occurs in the parsing of the subcommand we would like to use the full subcommand name
rather than the abbreviation. If the Tcl_WrongNumArgs command finds any indexObjects in the objv array it will use the full subcommand
name in the error message instead of the abbreviated name that was originally passed in. Using the above example, let us assume that bar
is actually an abbreviation for barfly and the object is now an indexObject because it was passed to Tcl_GetIndexFromObj. In this case the
error message would be:
wrong # args: should be "foo barfly fileName count"
SEE ALSO
Tcl_GetIndexFromObj
KEYWORDS
command, error message, wrong number of arguments
Tcl 8.0 Tcl_WrongNumArgs(3)