Search Results

Search: Posts Made By: gagandeep
1,285
Posted By gagandeep
use sed to replace the data, sed...
use sed to replace the data,


sed 's/aaa/bbb/g' file_name.txt >> new_file.txt
18,768
Posted By gagandeep
want to send .csv file as an attachment using mailx command.
want to send .csv file as an attachment using mailx command.

Please help!!!
2,101
Posted By gagandeep
k thanks , i will try and let u know in case if...
k thanks , i will try and let u know in case if it not works.
2,101
Posted By gagandeep
how i can use sftp in script
how i can use sftp in script,


unset LIBPATH
sftp wccuser@10.77.77.77 <<eof1>> /home/wccuser1/wcc/Scripts/bulk_file_ftp/bulk_file_ftp.log
passwordlcd /home/wccuser1/wcc/Scripts/bulk_file_ftp...
2,625
Posted By gagandeep
k boss, i will try that, thanks
k boss, i will try that, thanks
2,625
Posted By gagandeep
dont want to ftp file which has been already ftpied
curr_time=`date +%Y%m%d%H%M`
curr_date=`date +%Y%m%d`
zero=0
script_path="/home/wccuser1/wcc/Scripts/bulk_file_ftp"
file_dir="/home/wccuser1/wcc/Bulk_Files"
todays_file_count=`ls -ltr | grep...
12,352
Posted By gagandeep
great , it worked , thanks a ton buddy ...
great , it worked , thanks a ton buddy

---------- Post updated 08-30-12 at 03:25 PM ---------- Previous update was 08-29-12 at 08:57 PM ----------

guys i got one problem in this, i dont want to...
13,324
Posted By gagandeep
but this is what smith requires, he wants to...
but this is what smith requires, he wants to change it without opening ,
13,324
Posted By gagandeep
sed 's/A/KO/g' > corona688.txt it will...
sed 's/A/KO/g' > corona688.txt


it will change the text without opening the file.

or you can use

sed -i 's/A/KO/g'


this will save in the current file.
12,352
Posted By gagandeep
but its working if i am using it outside "if" ,...
but its working if i am using it outside "if" , sytex error is comming in if for "<"
13,324
Posted By gagandeep
use sed to replace without opening file .
use sed to replace without opening file .
12,352
Posted By gagandeep
[Solved] 0403-057 Syntax error `<' is not matched
curr_time=`date +%Y%m%d%H%M`
curr_date=`date +%Y%m%d`
zero=0
script_path="/home/wccuser1/wcc/Scripts/bulk_file_ftp"
file_dir="/home/wccuser1/wcc/Bulk_Files"
todays_file_count=`ls -ltr | grep...
Showing results 1 to 12 of 12

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