Search Results

Search: Posts Made By: anujairaj
8,701
Posted By anujairaj
Got it. But it is a pretty crude method. ...
Got it.
But it is a pretty crude method.
Liste the files on the local machine.
sorted and got the most recent file.
Again FTP'ed to the remote server and did a 'get' to get the recent file.
I...
8,701
Posted By anujairaj
Thanks for the reply. I did not understand what...
Thanks for the reply.
I did not understand what you mean by 'massage the listing'.
there are numerous files in the remote directory and I cannot get all of them into the local machine and then pick...
8,701
Posted By anujairaj
Get the most recent file from a remote server
Hi,
This is an FTP related query.I hvae 2 files in a remote server with the timestamp attached to it.
FilenameYYYYMMDDHHMMSS.EXT.
I need to extract both the fileswith the most recent timestamp...
3,285
Posted By anujairaj
Can you explain the ...
Can you explain the
[^0-9]*\([0-9][0-9]*\).*/\1 &/'
part?
thanks
3,285
Posted By anujairaj
getting the most recent file
Hi,
I have files coming in every day with that days timestamp like:
nameyyyymmddhhmmss.ext.
I need the most recent one and so i am using

cat `ls -t name*|head -1 ` > temp

i am sorting the...
1,806
Posted By anujairaj
Thanks for the response, The command works for...
Thanks for the response,
The command works for me,but it does not work in a script,and I donot what went wrong.
Anyway i used set-x at the beginning of the script to debug it.
1,806
Posted By anujairaj
Sorting in a script
Hello,
I have a situation where I have filenames with timestamps like
abc20060509452313.txt

i need the most recent file, and i am using this command in the script:
recent_file=`ls...
1,801
Posted By anujairaj
Actually it would just help if someone would help...
Actually it would just help if someone would help me on how to replace <> with a /n<.
The sed command...
sed 's/<>/\
</g' < abc.xml > abcd.xml
does not work..
1,801
Posted By anujairaj
XML issue
Hi have an xml file which is like:
<tag1>
<tag2>

<tag3>data3
</tag3>

<tag4>data4
</tag4>

</tag2>
</tag1>

i need to convert it to the standard xml format
<tag1>
<tag2>...
2,848
Posted By anujairaj
Thanks a lot for your responses ,the script...
Thanks a lot for your responses ,the script worked with :
total=`awk '{tot=tot+$1} END {printf "%d", tot}' "$filename"`
It even worked with the FOR loop,but because of the hig volume (about...
2,848
Posted By anujairaj
Hi I tried using the for loop,but I need to...
Hi
I tried using the for loop,but I need to find the sum of numbers in a file,called temp.
This file has approx 85000 numbers in one column and i used :

for i in temp
do
total=`expr "$total +...
2,848
Posted By anujairaj
Hi Ahan, I tried it but I got a syntax error...
Hi Ahan,
I tried it but I got a syntax error .It defenitely is in the following statement:
total=`awk '{tot=tot+$1} END {print tot}' "$filename"`Any other suggestion?Thanks for the quick response
2,848
Posted By anujairaj
arithemetic problem
[FONT=Courier New][FONT=Courier New]I am using a script which does a lot of math and I am facing a problem.One value is greater than 10 mi and the script converts it to exponents i.e 70000000 7e... ...
Showing results 1 to 13 of 13

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