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 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 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: 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 assume you only want to compare filenames whether they are the same and then move them to another directory... you could use a "for loop" , iterate ...
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: 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 have a file in which there are fields such as SOID and TASKID . for eg: SO12342323232323 3EA238273927382332323 SO29832983789237 3EA948758479574894...
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 i hav a question,suppose i hav a variable like var="12,134,13" now i want to put 12 134 and 13 in a seperate variable.i want to ask how to i repla...
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: If it works for you fine, but let me point out a potential problem the way you use the for loop: Your script works because you have only 1 server name...
Summary: what is the volume of data ur processing? it does not make any sense if you want to process even 50 records for users and you keep prompting for the u...
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 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: I'm trying to write what I expected to be a reasonably simple awk routine to generate a list of numbers as part of a larger bash shell script (since...
Summary: One way is to place your script inside of a while loop and stop the loop by some flag such as "stop": #!/bin/sh while true do echo "Enter dbname, ...
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: 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 is a pain in the ass :) I tried a for loop: list=`ls -R | grep ":" | sed -e "s/\.//g" -e "s/://g"` for var in $list;do lfs=`echo $var | tr "[/]" ...
Summary: Cool..!! Looks like I have got the output of all the users I needed..Lovely.. But a small issue is that there are some misalignment in the tab separat...