Search Results

Search: Posts Made By: c_bg1
4,606
Posted By c_bg1
Thank you again! Everything is fine now,...
Thank you again!

Everything is fine now, only thing that bothers me is the message:
mv: `file1.txt' and `file1.txt' are the same file
each time the script loops.

Is there a way of disabling...
4,606
Posted By c_bg1
I was thinking of something like this: ...
I was thinking of something like this:
#!/bin/ksh
HOMEDIR=/cygdrive/n/test
dirs=`ls | grep -v run`
for dir in $dirs
do
cd $HOMEDIR/$dir
files=`ls`
dirname=`echo $dir | sed 's=/==g'`
...
4,606
Posted By c_bg1
Worked great, thanks Ahamed! I have one last...
Worked great, thanks Ahamed!

I have one last question :o:o

Now the script looks like this:
#!/bin/ksh
HOMEDIR=/cygdrive/n/test
dirs=`ls | grep -v run`
for dir in $dirs
do
cd...
4,606
Posted By c_bg1
Getting current folder name appended to all desired files
Hello everyone,

Just registered here, I'm kinda new to Unix :o

I've been trying to automate some processes with various Windows tools. I found that using unix scripts the result would be...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy