(g)awk script to remove last dir from PATH
echo $PATH | gawk -F':' '{
for(i=1; i<NF; i++) {
if(i) {
printf (":");
}
printf("%s", $i);
}
}'
Labels: awk
Technology notes from an IT/software developer, mostly about the "shiny objects" in the web and software world.
echo $PATH | gawk -F':' '{
for(i=1; i<NF; i++) {
if(i) {
printf (":");
}
printf("%s", $i);
}
}'
Labels: awk
<SCRIPT>
function OnLoadFunction(milliseconds_time)
{
setTimeout("delayedOnLoadFunction()", milliseconds_time);
}
function delayedOnLoadFunction()
{
/* Function body */
}
</SCRIPT>
<body onLoad="OnLoadFunction(500)">
Labels: javascript