Summary: Working on a ksh script. Trying to run through a set of files, and return a set of files, which are unique subsets by column. Code ... __files=`ls $_...
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 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: 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: Hi, I am having a problem with grep while using it in a for loop. I have a file "ab" that looks like : (start file) --comment 1 -- comment 2 hghj jh a...
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 feel kinda silly posting here being only a true neophyte in the C++ world. But I have run across a problem that is beyond my ability to understand o...
Summary: OK, this will come closer to what you need. Lines are sorted by # fields on the line (most to least). Each line that is NOT a subset line is writt...
Summary: Hope this helps you. #!/usr/bin/ksh # ----- file t # black 4-feb-2001 # green 3-mar-2002 # blue 6-jun-2003 # red 1-jan-2000 # Separate the date part f...
Summary: hi all i m just stuffed in a problem if somebody can help me out i hav /etc/shadow file with enteries like bin:*:9797:0::::: daemon:*:9797:0::::: adm...
Summary: when I refer to: http://computing.net/unix/wwwboard/forum/5737.html found it working fine in cygwin but when tried it on Solaris 8 (Sparc) got thee er...
Summary: Variable assignment in most shells is without spaces around the equal-sign: DIRS="at_1 be_1 ch_1" You will notice that my "main.txt" is in double-quo...
Summary: for I in `cat /etc/mnttab |grep ufs | cut-f2` The main line of your for-loop is executing a nested command (in this case it is a series of piped comma...
Summary: Here's my take: #!/bin/ksh ur=- uw=r ue=r gr=- gw=r ge=r er=r ew=r ee=- for i in ur uw ue gr gw ge er ew ee do var=$(eval echo \$$i) if [ $var != "...
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: Greetings everyone... I have an issue with a parsing script. My script is parsing through the messages file for "Warning|Panic|Error" messages. I wrot...
Summary: hi i m iterating /etc/shadow file now i want to pick the second field which is a wild card "*" or encrypted password i m using a simple for loop #/bi...
Summary: Hi: Using '#!/usr/xpg4/bin/sh' tells me that you are probably using some version of Solaris. The /usr/xpg4/bin is a directory with POSIX compliant co...
Summary: The LOG variable does not need to be exported. The errors function will always see the current value of $LOG: LOG=/tmp/tmpfile1 errors ... LOG=/tmp/t...
Summary: This works fine for me: $ awk '{print $1" "$2" "$3" pet-"$1}'<file1 6 fish salmon pet-6 4 bird parrot pet-4 9 dog boxer pet-9 5 insect ant pet-5 ...
Summary: So second element of the first file links to second element in the second file, right? I'd say a good way to do it would be to use awk. Write a script...
Summary: i have a file in which there are fields such as SOID and TASKID . for eg: SO12342323232323 3EA238273927382332323 SO29832983789237 3EA948758479574894...