Search Results

Search: Posts Made By: akshay01987
914
Posted By akshay01987
Help with FTP
Hi All,


I am trying to obtain the latest file from a server with below command please help with the same.




ftp server1
file = ls -tr ash*.txt|tail -1
get $file
bye



...
3,834
Posted By akshay01987
Thanks all , The suggested code works like a charm
Thanks all , The suggested code works like a charm
3,834
Posted By akshay01987
[Solved] Check for a file and keep waiting for 30 mins
Hi All!


I want to have a shell script that checks for a file in a particular folder and then if the file is not found it should wait for 30 minutes. Again check for the file, if it FOUND then...
4,739
Posted By akshay01987
To delete the oldest files in a file when file count in the folder exceeds 7
Hi All,

I need to delete the oldest file in folder when the file count in the folder exceed 6 ( i have a process that puts the source files into this folder )

E.x : Folder :...
2,189
Posted By akshay01987
Hi Ibrahim thanks for the help, I am...
Hi Ibrahim

thanks for the help, I am currenlty looking to increment the user defined dates and not the current date

---------- Post updated at 02:03 AM ---------- Previous update was at 02:02...
2,189
Posted By akshay01987
Hi Jim I tried using your code but it...
Hi Jim

I tried using your code but it seems to be giving some syntax error. Since i am novice with the usage of arrays in UNix could you please help me to resolve the same .

...
2,189
Posted By akshay01987
Help with incrementing the date
I have a date variable like 2012-12-31 ( YYYY -MM -DD ) in flat file and it has to be incremtented by 1 every time i run the script

Example : i tried the below script after data modifcation but...
1,803
Posted By akshay01987
Hi I need to zip a file without...
Hi


I need to zip a file without retaining the source file.

Mar 18 23:44 g.txt

then post zipping i should have

Mar 18 23:44 g.zip

The timestamp of g.txt should preserved in g.zip(...
1,803
Posted By akshay01987
My source would always be ending with 2.So once...
My source would always be ending with 2.So once we move the code tto the target folder will we be able to zip it without having the original source file.

My OS is hp ux U 9000/800
1,803
Posted By akshay01987
Help With zipping a file
Hi


I need to zip a file and move it into another folder along with the timestamp. The orginal file must be removed from the source directory

Source :

folder1/source12.txt

folder2
...
2,404
Posted By akshay01987
Thanks a lot guys ---------- Post updated at...
Thanks a lot guys

---------- Post updated at 12:44 PM ---------- Previous update was at 08:57 AM ----------

ANd one more doubt guys y is that we have 1 after every completeion awk command andf...
2,404
Posted By akshay01987
Does "%-" give us spaces in unix...
Does "%-" give us spaces in unix scrutnizer?
2,404
Posted By akshay01987
How do we represent space in unix bala?
How do we represent space in unix bala?
2,404
Posted By akshay01987
Help with Fixed width data
Hi


I have a data with varying length i need to convert it to data of fixed length 1000 by appending blank spaces. This has to be done only for specific records i tried with awk but it not...
1,316
Posted By akshay01987
HI BALAJI Is this a kinda of a OS...
HI BALAJI

Is this a kinda of a OS dependent command bcos it just doesnot seems to be working right

---------- Post updated at 05:11 AM ---------- Previous update was at 05:05 AM ----------
...
1,316
Posted By akshay01987
Help required with move command
Hi I need to move the first file in a folder to an another folder but am facing issues with the below cmd. CAN someone correct me

Ex :

Folder :data/cat/tst

ad2
ad4
ad5
ad6

output...
2,103
Posted By akshay01987
thnx Balsuri Scott since i am new to...
thnx Balsuri

Scott

since i am new to unix can u let me know how the printf can be leveraged for the code u have suggested
2,103
Posted By akshay01987
Hi Scott My issue still persists this time...
Hi Scott

My issue still persists this time around its for different reason the code u have provided works fine but the month is not in line with requirement

I get single digit month as...
2,103
Posted By akshay01987
hi Scott I believe my system does not have...
hi Scott

I believe my system does not have a GNU as the commanda you have suggested does not work as expected

date "+%m.01.%y" -d "3 months ago"
o/p:02.01.12

date "+%m.01.%y" -d "8...
2,103
Posted By akshay01987
Help with Date in UNIX
Hi

I have a requirement where i will need the dates to be set in such a way that the start date should be 5 months before and end date should be 3 months before the current date.

Also the...
2,872
Posted By akshay01987
Hey Scrutnizer thnks a lot the script works fine...
Hey Scrutnizer thnks a lot the script works fine for me :b:
2,872
Posted By akshay01987
Hi Scrutnizer Since i am new to unix can u...
Hi Scrutnizer

Since i am new to unix can u let me know how you got to know tht the data file is in DOS format.

And also i will want to retain the the other data also

Source:...
2,872
Posted By akshay01987
This prtal is not allowing me to paste the...
This prtal is not allowing me to paste the original data.PLease find attached teh sample data with which i am working with
2,872
Posted By akshay01987
hi I am using a HP solaris OS and my actual...
hi

I am using a HP solaris OS and my actual data is as below:

---------- Post updated at 10:38 PM ---------- Previous update was at 10:36 PM ----------

1000100 20111212xxxxxxxxxxxx2114...
2,872
Posted By akshay01987
hi I am using the code as below : awk...
hi

I am using the code as below :
awk '/^1000100/ {$0=sprintf("%s%0" w-length "s", $0,x)}1' w=1000 infile

BUt this is not wrkin. so am i misssing something ?

---------- Post updated at...
Showing results 1 to 25 of 34

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