01-11-2013
Not quite understanding ...
I need something that will find the "blablabla..aep Logs" directories and move them into a hidden directory called .LogFiles in their parent directory. I also need it to work on many directories under the current. So that it does not move all "blablabla..aep Logs" to one single directory.
I have a bash script that does this but I have to designate in variable each directory to be processed.
mkdir "$dir01"/.LogFiles
mv -f "$dir01"/*.aep\ Logs "$dir01"/.LogFiles/
I want to do it without having to change the script variables.
Could I accomplish this with a bash script?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
cat .servers | while read LINE; do
ssh jason@$LINE $1
done
exit 1
./command.ksh "ls -l ~jason"
Why does this ONLY iterate on the first server in the list? It's not doing the command on all the servers in the list, what am I missing?
Thanks!
JP (2 Replies)
Discussion started by: jpeery
2 Replies
2. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
3. Shell Programming and Scripting
Hello, the ls -d command to only list directories in a directory doesn't seem to work on Solaris and the man command says to use that combination: ls -d
Anyone have the same problem and find a resolve?
Thanks
BobK (9 Replies)
Discussion started by: bobk544
9 Replies
4. UNIX for Dummies Questions & Answers
why lp -o <option> doesn't work on my SCO Unix. (4 Replies)
Discussion started by: wendyz
4 Replies
5. Shell Programming and Scripting
Hi. I've been playing around a bit. This isn't for any practical purpose-- it's really just a theoretical exercise. I wrote this little thing:
foreach num ( 6 5 4 )
awk -v "number=$num" 'BEGIN{for(x=0;x<$number;x++) printf "-"; printf "\n"}'
end
I would expect the following output:
... (3 Replies)
Discussion started by: treesloth
3 Replies
6. Shell Programming and Scripting
Hi
I have put alias ll='ls -la' in .profile file but it doesn't work.
On hand it works it looks like the .profile file is not beeing read.
How to check whitch file is loaded? ,profile? .bash_profile?
My system: SunOS mion 5.10 Generic
Shell: /bin/pfksh
Thanks (2 Replies)
Discussion started by: miojamo
2 Replies
7. Shell Programming and Scripting
i want to get the value for column 4rth when i =4. please guide what i am doing wrong. thanks
var=`cat file.csv`
for i in $var; do {
if ; then
var4=$var4+$i
fi
echo $i
}
done
I am geting this error message "0403-009 The specified number is not valid for this command." (8 Replies)
Discussion started by: sagii
8 Replies
8. HP-UX
I edited sudoers like this:vi /etc/sudoers
subex ALL =(root) NOPASSWD: /usr/ccs/bin/pstack
But the respective user still is prompted for password, and even when the right password is used, the command is still not launched.$sudo usr/ccs/bin/pstack 26557
We trust you have received the usual... (5 Replies)
Discussion started by: black_fender
5 Replies
9. Shell Programming and Scripting
Hi,
I am using korn shell.
until ]
do
echo "\$# = " $#
echo "$1"
shift
done
To the above script, I passed 2 parameters and the program control doesn't enter inside "until" loop. If I change it to until ] then it does work.
Why numeric comparison is not working with -ne and works... (3 Replies)
Discussion started by: ab_2010
3 Replies
pppoesd(1M) pppoesd(1M)
NAME
pppoesd - PPPoE (Point-to-Point Protocol over Ethernet) server daemon
SYNOPSIS
config-file] debug-level] log-file]
DESCRIPTION
performs the server side discovery phase functionalities of PPPoE as mentioned in RFC 2516. The daemon responds to PADI and PADR packets
from clients if it can offer services desired by the client. generates a unique session-id for every client that it services. It then
forks a daemon which performs the session phase functionalities of PPPoE as mentioned in RFC 2516.
Options
supports the following command-line options:
Specifies the configuration file with absolute path
to be used by The default configuration file is
Specifies the debug level at which logging has to be
enabled. The three debug levels are:
Logs all error messages.
To log these messages, type on the command line.
Logs all warning messages.
To log these messages, type on the command line.
Logs function level debug messages.
To log these messages, type on the command line.
Specifies the log-file with absolute path to which
logs messages. The default log file is
EXAMPLES
An example usage of is as follows:
WARNINGS
Note that, you cannot run without the file. See pppoesd.conf(4) for more information.
AUTHOR
was developed by Hewlett-Packard.
FILES
PPPoE client
PPPoE relay
PPPoE server configuration file
PPP daemon
SEE ALSO
pppd(1), pppoec(1), pppoerd(1M), pppoesd.conf(4).
pppoesd(1M)