Search Results

Search: Posts Made By: mqasim
1,764
Posted By mqasim
Thanks. Well, I don't get the error but ...
Thanks.

Well, I don't get the error but
echo "LOCAL_FILE"${i}

does not display the file name
it displays LOCAL_FILE1 (when i=1), however I wanted it to dasplay abc_20081114.txt

thanks...
1,764
Posted By mqasim
What is wrong with this code
I just wanted to assign the filename to a variable

filename="abc"
datestrng=`date +%Y%m%d`
filextn="txt"


"LOCAL_FILE"${i}=${filename}"_"${datestrng}"."${filextn}

echo...
1,302
Posted By mqasim
Thanks
Thanks
1,302
Posted By mqasim
getting error - please help
I get
ksh: filename=${$each#*-}: bad substitution
error when I run the following. I am trying to parse the file,
for example: abc-90878.csv



if [ -f *.csv ] ; then
for each in *.csv...
2,182
Posted By mqasim
renaming files, please help
I want to rename the files by taking part of the file and appending date to it. please help
e.g.
abc-390.csv
xyz-908.csv
desired format is abc_YYYYMMDD.csv

This is what I have but it is not...
6,842
Posted By mqasim
move in ksh
Hello everybody:

I wanted to rename some files by adding date at the end. I wanted to assign the new name to a variable. Following is the code

REMOTE_FILE="/abc/data/test.csv"

mv...
1,635
Posted By mqasim
May be i don't need the source server. I...
May be i don't need the source server.
I wanted to make it generic so I don't have to hardcode any directory/server names. How do i accept these name with in the script.
1,635
Posted By mqasim
ftp script
I new to unix scripting. Any help would be greatly appreciated
I need to write a secure ftp script. I need to pass in the source server name, file name, destination server and destination file name....
Showing results 1 to 8 of 8

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