Search Results

Search: Posts Made By: kiran_418
2,892
Posted By kiran_418
Could you please send me a sample script. I know...
Could you please send me a sample script. I know I am asking for too much but my expertise is very limited in UNIX scripting.

Thanks
2,892
Posted By kiran_418
Contantly check for file at the remote server and ftp when avaliable
Hello,
I used the search engine but could not find the solution I am looking for. Probably its simple but I do not know the solution.
My requirement is I ftp files every day in the morning from the...
1,849
Posted By kiran_418
awesome!! it worked THanks
awesome!!
it worked
THanks
1,849
Posted By kiran_418
Find and replace
Hi,
I am trying to do this find and replace in unix and somehow its not working.



TR|20080325|22952 |000000040|20080327|0530
TR|20080417|23078 |000000104|20080418|0530|1040001 |
...
6,499
Posted By kiran_418
Remove Trailing spaces after a delimiter
Hi,
I am trying to remove trailing white spaces using this command in awk

nawk -F '|' '/^TR/{t = $4 }/^LN/{gsub(/ */,"");printf "%s|%s\n", t, $0 }' $i>>catman_852_files.txt

My delimiter is...
4,381
Posted By kiran_418
Hi there, Sorry for not being clear in my...
Hi there,
Sorry for not being clear in my original post. I will write it down in steps
1) Ftp pull the files starting with P*. i.e pull alll the files with P*.
2) Once the files have been pulled,...
4,381
Posted By kiran_418
Read Files from a Directory
Hi,
I have a requirement where I have get the files from FTP server then delete the files in the FTP server and then store the file name within the file where there is "TR".
i.e...
3,302
Posted By kiran_418
Hi, I got it. I am using Sun solaris and I have...
Hi,
I got it. I am using Sun solaris and I have to use nawk. It solved the issue.
your code worked like magic. Thanks a Bunch. Is there any way to remove unwanted spaces in that file?

Thanks...
3,302
Posted By kiran_418
Hi, Thanks for quick reponses. I tried ...
Hi,
Thanks for quick reponses.
I tried

awk -F '|' '/^TR/{t = $4 }
/^LN/{printf "%s|%s\n", t, $0 }' "temp.txt"

I am getting the following error.

awk: syntax error near line 1
awk:...
3,302
Posted By kiran_418
Hi I would really appreciate it if you could...
Hi
I would really appreciate it if you could tell me where to pass the file name. I have no clue.

Thanks
Kiran
3,302
Posted By kiran_418
Append value(batch number) to start of records
Hi all,
I am new to unix shell scripting and I am trying to append batch number that comes in Trailer record to the detailed record.

TR|20080312|22881 |000000005|20080319|2202...
Showing results 1 to 11 of 11

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