Summary: I have this for loop...It reads a bunch of configuration files and for each file it should call the function function_process. After function_process ...
Summary: You are only printing the contents of the ps -fu command for the user. Of course, the ps command isn't the most portable of commands, but I think you...
Summary: I have written a for loop to iterate through a file list in an array generated by a find command... I can only get it to make one pass but when I prin...
Summary: Can't see anything wrong with it. Works for me. Not that it's any help, but isn't this: for fname in $(ls /home/file/) the same as this: for fname in ...
Summary: (Hi) I have 2 NTFS-Partitions in ad0s2, but I can not mount_ntfs them in FreeBSD. I read something about dmesg, where I could find a device listing. I...
Summary: First, why don't you get the awk script working before you nohup it and create output? Get this working first: awk -F'|' '{val=$2"|"$3"|"$4; if(!(val...
Summary: I am trying to write a Unix program that accepts a user login id or name and displays login id, name, default shell, and last login date and time. I ...
Summary: I occasionally have problems with the "if" statement exiting even if the test is true or false. Usually, it's a simple syntax error. ie.,: if [ "$var...
Summary: I am creating a script in which I have to note down the size of the files which are in different directory. Suppose:- In log dir : A1.txt A2.txt A3.tx...
Summary: I am in the process of setting up three public DNS servers for my website. However, even though my two master servers are sending notifies (which are ...
Summary: In regards to the Jim script, for some reason the return code comes back as 0 after every two lines. So out put looks like this: param2 (stop/ param2 ...
Summary: I have the permissions of a file saved in a string and broken up into 9 different variables each being one of r, w, x, -. I'm trying to find a short w...
Summary: Hi, I am trying to gather some mount point permissions from a remote system. I am having trouble with the for loop as it seems to exit the ssh and run...
Summary: I am curious as to how the command prompt is actually displayed using the PS1 shell variable. Is there a process that uses writes the variable to the...
Summary: Why doesn't if then if work: if [[ $BLAH = "blah" ]] then echo "User blah already exists.\n" if [[ $KEY_CHECK1 != "filename" then echo "Generatin...
Summary: Sounds like you've lost a disk or scsi channel. The system can't see part of the virtual disk (abc) the file system is on. No amount of fscking will h...
Summary: You say that you were able to get the list of files, so I will assume that you are happy with the list of filenames in commit2.log. I created a commit...
Summary: Would you please help me write a script to move file between dirs? I am new to unix. But I need this for my work. The script should check id and pw. t...
Summary: With reference to previous: /\.set/{ c=c+1 ;next} { array[c] = array[c]$2"|"} this says the items are stored into array, with indices denoted by the v...
Summary: I don't know if this will work for Windows NT, for I accidentally munged a Win95 installation here at work by installing lilo (the problem is that I'm...