Search Results

Search: Posts Made By: phani333
1,614
Posted By phani333
I tried below command. But it works for only one...
I tried below command. But it works for only one file. I am trying to read all the files under a specified folder.

sed 's/$/|/' file.txt > new-file.txt
1,614
Posted By phani333
Append pipe | at the end of all the rows except header n trailer for all the files under a directory
Hi Experts

Need help...
I am looking for a Unix script to append pipe | at the end of all the rows (except header and trailer)in all the files placed under the directory /interfaces/Temp

e.g....
2,967
Posted By phani333
Thanks a lot...I am exploring these options. ...
Thanks a lot...I am exploring these options.

I am receiving files in below format(.DAT followed by 4 numbers). I the filter to *.DAT* or *.DAT????. files are not getting picked tried searching for...
2,967
Posted By phani333
Hi RudiC Thanks a lot. This worked like a...
Hi RudiC

Thanks a lot. This worked like a gem. It took lot of code to achieve in Java. Unix did it in 3 lines.

I am adding one line for logging purpose.

echo "$FN" moved successfully to...
2,967
Posted By phani333
Hi RudiC Thank You. Does this mean below...
Hi RudiC

Thank You. Does this mean below code in unix



for FN in *.dat; do read X SERIES X <"$FN";
mv "$FN" "SUN_ID_$SERIES/$FN";
done



Will check for .dat files in Source folder....
2,967
Posted By phani333
Hi I have copied below lines of code into a...
Hi

I have copied below lines of code into a notepad and saved as Script.sh. Placed the file in /Source folder.


for FN in *.dat; do read X SERIES X <"$FN"; echo mv "$FN" "SUN_ID_$SERIES/$FN";...
2,967
Posted By phani333
Hi RudiC I am new to unix and not sure...
Hi RudiC

I am new to unix and not sure how to execute this. My requirement is to


Script should check for .dat files in Source folder.
Check for specific text (645559 or 508659) in...
2,967
Posted By phani333
I get files in source folder with unique names...
I get files in source folder with unique names appended with ddmmyyyyhhmmss. e.g Debit25112016222930.dat

So no need to consider duplicate file scenario.
2,967
Posted By phani333
Thanks a lot for your response. Target file...
Thanks a lot for your response.
Target file names should be same as source file names. duplicates should not be allowed.
2,967
Posted By phani333
Hi I am able to achieve this in Java. I...
Hi

I am able to achieve this in Java. I am not comfortable in unix scripting. Tried searching for similar threads.
2,967
Posted By phani333
Move multiple files 4rm Source to different target folders based on a series num in the file content
Dear Experts

my scenario is as follows...

I have one source folder "Source" and 2 target folders "Target_123456" & "Target_789101". I have 2 series of files. 123456 series and 789101...
4,826
Posted By phani333
HI, I have checked with my Unix Team and it...
HI,

I have checked with my Unix Team and it seems they need lot of approvals to install WGET on the unix system. Can I achive the same using FTP script?
4,826
Posted By phani333
Hi All, I have executed the get_Fx.sh...
Hi All,

I have executed the get_Fx.sh script file in (HP-UX B.11.31 U ia64 3519845154) version.


get_Fx.sh Code:

#!/bin/sh
wget http://www.westpac.co.nz/olcontent/olcontent.nsf/fx.xml...
4,826
Posted By phani333
Unix Script to read the XML file from Website
Hi Experts,

I need a unix shell script which can copy the xml file from the below pasted website and paste in in my unix directory.

http://www.westpac.co.nz/olcontent/olcontent.nsf/fx.xml
...
26,690
Posted By phani333
Dear rdcwayx, Thank you very much. It is...
Dear rdcwayx,

Thank you very much. It is working.
26,690
Posted By phani333
Dear Frank, I am a SAP Developer, I have...
Dear Frank,

I am a SAP Developer, I have very little knowledge of Unix scripts. I will try to find out from the unix help. Thank you.
26,690
Posted By phani333
Shell Script for moving 3 days old file to Archive Folder
Hi Experts,

I have a "Source" folder which may contain some files. I need a shell script which should move all files which are older than 3 days to "Archive" folder.

Thanks in Advance...
4,694
Posted By phani333
FTPS Script to move a file to Unix Folder
Dear Experts,

I need to connect to a FTPS Server and move the files from FTPS folder "/SAP/Out" to Unix directory "/SAP/In". I need to run this script on Unix directory...Script should get the...
7,298
Posted By phani333
Hi Franklin, Thank you Very much. Its...
Hi Franklin,

Thank you Very much. Its working now.
7,298
Posted By phani333
Dear Franklin, I am facing a small problem....
Dear Franklin,

I am facing a small problem. The above code is working fine...but it is also deleting the lines which is containing the values like 0.01, -0.56, 0.44 in the 4th column...My...
4,147
Posted By phani333
Hi, Apologies. there is no 4 and 8. its...
Hi,

Apologies. there is no 4 and 8. its mistakenly typed. My requirement is to Append H and T before line 1 and 2 and remove all other lines other than one which has 5000 and 0 in 1st and 5th...
4,147
Posted By phani333
Hi All, Thank you very much for the...
Hi All,

Thank you very much for the replies. I request few changes. Please click the below link to see the sample file which needs to be modified using the script.

SampleFile on Flickr -...
7,298
Posted By phani333
Dear Franklin, I am facing a small problem....
Dear Franklin,

I am facing a small problem. The above code is working fine...but it is also deleting the lines which is containing the values like 0.01, -0.56, 0.44 in the 4th column...My...
7,298
Posted By phani333
Hi, The code is working nicely. I am facing...
Hi,

The code is working nicely. I am facing a issues. I am getting couple of special characters in the file (assume ! and *). Can I write a line in the below code to delete these two special...
7,298
Posted By phani333
Dear Franklin, Thank you very much for all...
Dear Franklin,

Thank you very much for all your support.

I have a small problem here. File name is not fixed here. It could be anything. In that case how can we handle.

Can we code like...
Showing results 1 to 25 of 36

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