This piece of code:
foreach mod ("`lsmod`")
echo $mod
end
outputs each line of lsmod. How can I access the first field, i.e. Module, from each line?
Is there any IDE forcsh or extension for vs code where I can debug csh code?
This piece of code:
foreach mod ("`lsmod`")
echo $mod
end
outputs each line of lsmod. How can I access the first field, i.e. Module, from each line?
Is there any IDE forcsh or extension for vs code where I can debug csh code?
foreach mod ("`lsmod`")
set ml = ($mod)
echo "$ml[1]"
end