Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
A script that takes any number of directories as command line arguments and then lists the contents of each of these directories.
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Code:
#/bin/sh -xv
#Author: Lauren Buecker
#Date: September 28 2012
#Class COP3353
#Assignment: Assignment 4
echo "There are "$#" pamaters"
if ($# !
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
i have the output of a csh script piped to an awk script.
Hello Friends,
[In bash] I am not able to solve something which looks silly..after spending some time around it, thought of positing it here.
I want to get $2, $3... into user.
i have something like this
Code:
tablesName="abc def hij akn ...
hi my code is something like
Code:
count=0
echo "oracle TABLESPACE NAME nd TARGET"
while [ loop condition ]
do
count=`expr $count + 1`
(1) tts_space_name$count=`echo $tts | cut -d "," -f$cou
Hi guys..i'm totally new to linux shell scripting and i have written a simple script that allows to poll a directory and when there is at least one file, it is moved to another directory.
But i have an error in the if statement " Syntax error: "then" unexpected (expecting "done")"
Code:
#!/bin/bash
while true
do
count=$(find /home/dirA -type f | wc -l)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1.
I want to run my shell script to the limit number.Suppose I know in advance that MAX=5 then I want that my script run 5 times only.Something like below
Code:
[st@VHLD rohit]$ vi testingMAX=5COMMAND="ssh -l stpuser VHLDVWSAD001 /projects/st/utils/deploy/deployall.sh >/dev/null 2>&1 &" ; sleep 20;count=0while [ $count -le $MAX ]docount=`expr $count + 1`echo `COMMA