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: 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: 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: 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 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: 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: 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: 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: For repetitive executions, you need to choose either to go with cron or to make your script a sleeper script. You can schedule it in cron to run as fr...
Summary: Hi all, I need to read lines from a file "a.txt" that represents a directory and process something with that directory information.. The shell script ...
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: Hi, I am a unix newbie. I am trying the following to search for a number of words in a text file (@unix command prompt), but the entire file contents ...
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 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: I shouldn't do this, but here's the hard part - the loop. I'll leave it to you to make the comparison: #!/bin/ksh echo "your prompt" read command cnt...
Summary: OK. So you didn't like working tested elegant answer #1 or working tested elegant answer #2. Let's do it with a loop contruct. This is ksh format. If ...
Summary: i have a file in which there are fields such as SOID and TASKID . for eg: SO12342323232323 3EA238273927382332323 SO29832983789237 3EA948758479574894...
Summary: To give a short description what i am doing in the script is reading from a regular text file for the directory structure and changing it to another f...
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: We are planning to install CD R/W drive in PCs having the above operating system. I have contacted Samsung,LG,Sony but none have the support for Unix ...
Summary: Hi (again), I obtain a file that contains the program's skeleton (the main instructions, namely calls & conditions) What I would like is to do recurs...
Summary: Hi, I am new to this forum so I can't be sure that my problem hasn't already been answered in the past. In short, I simply don't know how to impleme...
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...