Search Results

Search: Posts Made By: kcoll025
22,474
Posted By kcoll025
I tried that and it came back with: ./myScript:...
I tried that and it came back with:
./myScript: 1: $: not found
crocodile.dat
File not found: bogusName.foo
dingo.dat


---------- Post updated at 03:33 PM ---------- Previous update was at...
22,474
Posted By kcoll025
I have no idea why he chose c-shell. We could...
I have no idea why he chose c-shell. We could also use sh but csh looked easier.

This ends with Illegal variable name.



#!/bin/csh


while ( $# > 0 )
echo "got $1"
shift...
22,474
Posted By kcoll025
I replaced the foreach loop with while ( $# > 0...
I replaced the foreach loop with
while ( $# > 0 )

and the csh -x debugger stops at that line with:
Illegal variable name.

Was it more to it than just replace foreach with the while?

I even...
22,474
Posted By kcoll025
(t)csh command line arguments issues
1. The problem statement, all variables and given/known data:

create a shell script, chExt.sh that takes one or more parameters, where the first is a desired extension and the remainder are names...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 05:32 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy