Search Results

Search: Posts Made By: bonesy
1,997
Posted By bonesy
Preserving Empty Lines while Replacing Numbers
Greetings,

I am using tcsh to write a script that will replace the numbers in a file with a single number, the caveat is that this file has blank lines which are necessary for another step down...
4,346
Posted By bonesy
Shell Integer with nested foreach
I am scripting in tcsh and here is what I currently have:

foreach group (g1 g2 g3 g4)
set ppl = `cat $group.file.with.list.of.ppl.in.row.format`
set label = 1
@ label...
18,237
Posted By bonesy
tcsh and user input
Here is my script:

echo "var 1:"
read varone
echo "$varone"

When I run in via ksh the script runs successfully.

However when I run it via tcsh I get "varone: Undefine variable"

Does the...
Showing results 1 to 3 of 3

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