10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I'm trying to wirte ksh script for given requirement, but i unable to achive it.
In dir1 directory I need to check for the files which suffixed with .csv or .txt, If there is no files, then i need to exit. If any files found I need to move the each file found to dir2 directory. I have to repeat... (4 Replies)
Discussion started by: Kayal
4 Replies
2. AIX
hello everyone,
this is my first post in this forum, I hope I am in the right place :)
I am relatively new to AIX, and I need help doing the following:
move data from directory /universe_log/CIHPRD to /universe_log/novabch1
while changing lv and preserving mount point.
below some... (7 Replies)
Discussion started by: Tarik36
7 Replies
3. Shell Programming and Scripting
Hi ,
I've learnt that the following command will remove the files from the given folder for given no.of days
find /home/etc -type f -atime -10 -exec rm -f {} \;
But how can I change the above command that will move the files to another specified directory instead of removing the... (1 Reply)
Discussion started by: smile689
1 Replies
4. AIX
Hi All,
please help me with the command for moving/copying one directory(including subdirectories) to one directory in another mount point in same server in AIX ...
thanksss (7 Replies)
Discussion started by: Sanal
7 Replies
5. Shell Programming and Scripting
Hello All,
/storage3
/storage4
I have written a shell script to locate files older than 7 days in /storage4 folder and move to /storage3.At the same time it will take output as number of files moved and log in a .txt file.
It will also find files in /storage3 older than 90 days and remove... (4 Replies)
Discussion started by: Siddheshk
4 Replies
6. AIX
Hi guys, I need some assistance moving a LV. :D
I have a VG with two PV; on the second PV there is only one LV so I want to move it to the first PV (hdisk1) in order to get rid of the second one (hdisk2)
Something like (pseudocode):
move MyLV from hdisk2 to hdisk1
How can I achieve that? (4 Replies)
Discussion started by: verdepollo
4 Replies
7. Shell Programming and Scripting
I'm getting different behaviour when executing below script in debug option.
$ cat ss.ksh
ff=$(pwd)
echo " ff : $ff"
$ ksh ss.ksh
ff : /tmp
$ ksh -x ss.ksh
+ + pwd
ff=
+ echo ff :
ff :
I was getting this behaviour in my actuall script i'm able to reproduce this in simple script... (4 Replies)
Discussion started by: luckybalaji
4 Replies
8. UNIX for Dummies Questions & Answers
Hi ,
What is the diffence between executing the script like
./myscript.ksh
. ./myscript.ksh
I have found 2 difference but could not find the reason
1. If i export a variable in myscript.ksh and execute it like . ./myscript.ksh the i can access the other scripts that are present in... (5 Replies)
Discussion started by: max_hammer
5 Replies
9. Shell Programming and Scripting
Hi
I am new to this Scripting process and would like to know How can i write a ksh script that will call other ksh scripts and write the output to a file and/or email.
For example
-------
Script ABC
-------
a.ksh
b.ksh
c.ksh
I need to call all three scripts execute them and... (2 Replies)
Discussion started by: pacifican
2 Replies
10. Shell Programming and Scripting
Ih all,
i have multiples ksh scripts for crontab's unix jobs
they all have same variables declarations and some similar functions
i would have a only single script file to declare my variables, like:
var1= "aaa"
var2= "bbb"
var3= "ccc"
...
function ab { ...}
function bc { ... }... (2 Replies)
Discussion started by: wolfhurt
2 Replies