Summary: I found a script I wrote (datestamped Apr 2002), that uses cal and awk to determine DOW. # !/bin/ksh mmddyy=`echo $1 | tr "[/]" "[ ]"` echo $mmddyy |...
Summary: Just whipped up this lil script, uses cal and some sed. Format is mm dd yyyy. #!/bin/ksh if [[ -z $1 || -z $2 || -z $3 ]];then echo "usage: dayofweek...
Summary: Any idea how is the function key F8 being map in unix script using Ksh Shell? For example: enter key is recognize as ^M, so what is the control key fo...
Summary: hi, i need to know how to find, which script uses the java in unix in all the directories. Is there any command to find that? for example: setenv.sh u...
Summary: did you ran it with the same user?, did you use the same enviroment variables? like TERM, SHELL, LOGNAME, etc.?, i have this problem only if i run scr...
Summary: My main problem with this script is that I couldn't make it run the way it is. I believe because is missing a few menu options. I am trying to complet...
Summary: Hi, I'm trying to run loops in shell scripts using the following script. loop=1 while [ loop -lt 10 ] do echo 'this is my $loop text-line' loop='expr ...
Summary: My main problem with this script is that I couldn't make it run the way it is. I believe because is missing a few menu options. I am trying to complet...
Summary: Hi: Here's three ways: 1) Redirect all of standard output to a file. If the script is called a.ss: a.ss > output.file 2) Within the script, use fil...
Summary: Hi there - I'm trying to check a directory for multiple possible files with a particular extension. If they exist, I'd like to call another script, u...
Summary: If it is a Korn shell script, use typeset -l or typeset -u (-l will set the variable value to lower case and -u will set the variable value to upperca...
Summary: Hi Friends, I am using Bash script using CygWin to check the files made in java and VB for some of the basic things. Now I want to run my script from ...
Summary: Hi all, I have a question regarding strings in shell scripting......Using the date function the following is returned: Thu Jun 23 14:21:54 ED...
Summary: hey ppl im new to this and i dont really know C... what im trying to do is make a csh called backup. takes a filename as an argument and makes an appr...
Summary: I am having trouble with a unix assignment at uni and hope sopmeone can help I have designed a simple menu system for carrying out simple routines (li...
Summary: awk does not come with ksh. It is a unix (and now DOS/Windows/etc...) utility and is its own interpreter. awk is a great tool and does a good job at...
Summary: I got a script to kill all processes that have more than N copies of itself to prevent fork bombing. However, this script also kill "innocent" process...
Summary: Before using a file as a shell script you must change its access permissions so that you have execute permission on the file, otherwise the error mess...
Summary: Can someone please provide sample code that utilizes arrays. Or please direct me to a web site that provides good explanations onhow to implement arr...
Summary: Hi, I am writing a shell script to accept input from user and upload the data files using sqlloader. I want to trap Ctrl-Z which is SIGTSTP so that us...
Summary: Better way of reading in a filename: The command to call the shell should be: shellname inputfilename in other words, have the user list the filename ...
Summary: I am assuming that executing no -a |grep tcp_ndebug actually returns tcp_ndebug = 100 In as script, use command substitution to return the results t...
Summary: Building on what nails wrote, redirect your output to a file like this: find . -type d -print > /tmp/find.out I posted a tree script here about a year...
Summary: I would like to know if you have a script using cron. I need for a project.(the program has to run for instance every 15 minutes to check if everythin...