Search Results

Search: Posts Made By: gthokala
10,412
Posted By gthokala
Thanks a lot for all your help.
Thanks a lot for all your help.
10,412
Posted By gthokala
Line 4 is a repeat of line 3 with '01234'...
Line 4 is a repeat of line 3 with '01234' concatenated.
10,412
Posted By gthokala
When running the above code I get the following...
When running the above code I get the following result.

11, ,051701
22, ,051701
33,01234,051701,051701,12345
01,234,0,1,00001,1234,01,123456789012,987654321...
10,412
Posted By gthokala
Thanks for your reply. Actually the suggestion...
Thanks for your reply. Actually the suggestion you gave is replacing the value from '01' to '01234' and eliminating the other rows. Is there any way to keep the other rows as is and concatenate the...
10,412
Posted By gthokala
converting text to csv format
I was able to get the csv file without any problem. I have one quick question. Is it possible to take the 2nd column on line 3, '01234' and have it on each and every line where you see '01' as the...
10,412
Posted By gthokala
Thanks a lot. I was able to modify accordingly...
Thanks a lot. I was able to modify accordingly with my text file and was able to get the desired csv format file. Appreciate and thank you for your quick response.
10,412
Posted By gthokala
converting text to csv format
I am trying to check each line and based on first two digits, the comma needs to be place. I checked in the earlier post where the text is converted to csv with a tab delimited.
Here is the test...
11,048
Posted By gthokala
'rename' is a key word. Are you trying to move a...
'rename' is a key word. Are you trying to move a file called rename? The message indicates that rename does not exists in the current directory.

where as your message

mv: rename...
11,048
Posted By gthokala
Please post exactly what you are typing to move...
Please post exactly what you are typing to move the files.

Try to Copy or make changes to the paths and execute the command below and it should move the files older than 2 days old.

mv `find...
11,048
Posted By gthokala
Did you put the quote in front of find command...
Did you put the quote in front of find command and close the quote after the semicolon? This statement works fine and move all the files prior to 2 days old.
11,048
Posted By gthokala
This works for moving the files more than 2 days...
This works for moving the files more than 2 days old (2 * 24 hours Change the number accordingly after mtime parameter)
mv `find /home/pavi/logs/*.* -mtime +2 -exec ls {} \;` /home/pavi

Gopinath
7,219
Posted By gthokala
removing files, 6 hours or older
The files are generated automatically. Is there a way you touch the files(multiple of them) that are automatically generated without manual intervention?
7,219
Posted By gthokala
removing files after 6 hours or older
What is the command to remove files that are generated 6 hours or older? The find and remove tells only how to remove if the file is one day old or more. Appreciate quick reply. Thanks
67,403
Posted By gthokala
FTP - Get the file date and time on the remote server
Well, Thank you and appreciate for all of your support. One of my friend has provided a solution in 'perl' which works as I needed. Posting the script for those who are in need of getting the date...
67,403
Posted By gthokala
FTP - Get the file date and time on the remote server
quote MDTM <filename>.
This gives just the date and time and filesize but does not show the filename. Does not get the required file with date and time from remote server.
67,403
Posted By gthokala
Nope. The file is an encrypted file and they post...
Nope. The file is an encrypted file and they post as is. Cannot compress the file and we do not have access to make any changes on the remote server.
67,403
Posted By gthokala
vgersh99, As suggested in comp.unix.shell, rcp...
vgersh99,
As suggested in comp.unix.shell, rcp is not an option, Since you need to have privilege on the remote server which is handled by other group.
67,403
Posted By gthokala
FTP - Get the file date and time on the remote server
Basically when trying to get a file from remote server, it will be a 'get' (pull). But I need to get the file with the date and timestamp which is on the remote server. So it is a pull from the...
67,403
Posted By gthokala
FTP - Get the file date and time on the remote server
I would like to know if there is a way to get the date and timestamp of the file that is being FTP from the remote server using shell script. Currently the get command from FTP will have current date...
339,517
Posted By gthokala
Thank you for immediate response. It worked and...
Thank you for immediate response. It worked and copied the files, But does not retain the date and time of the file which is on the remote server. Am I missing something.... Thanks,
339,517
Posted By gthokala
Could you please explain how these 2 scripts work...
Could you please explain how these 2 scripts work as I am getting the following error when trying to execute HardFeed Part 2

HardFeed.sh[369]: OPT_CMDS>i: The specified number is not valid for...
Showing results 1 to 21 of 21

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