09-07-2017
perfect yes this is what i was expecting
But can it be done use cp command because sometimes permission wont be there to do touch -md command in destination folder
Last edited by rohit_shinez; 09-07-2017 at 07:20 AM..
Reason: question
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
In my shell programming, When i copy sym links from one server to another server using rsync it does not preserve time stamp . it showing current time after copying in destination server.the command i used is
rsync -vaR --
How can i preserve sym links time stamp using rsync.
Thanx (1 Reply)
Discussion started by: KiranKumarKarre
1 Replies
2. Shell Programming and Scripting
Hi..
i have a source and destination directories & want to copy files from source to destination those files are unique to source directory . And those files are common to both the directory copy source to destination with a numeric increment as extension.
If in the destination there are more... (2 Replies)
Discussion started by: posix
2 Replies
3. UNIX for Advanced & Expert Users
Hi
My requirement is i want to copy files from remote server to the local server and also i need to preserve the timestamp of the remote file.
By using scp -p , it is working fine in the interactive call but it is not preserving he file timestamp when i use it in the non interactive scp call... (1 Reply)
Discussion started by: skumar75
1 Replies
4. UNIX for Advanced & Expert Users
Hi
How to copy a file from remote server and preserve timestamp. Please not, i have to pass username and password to connect to the remote server in the shell script.
Can this be achieved with simple ftp ? are there any options in ftp ?
Thanks (4 Replies)
Discussion started by: skumar75
4 Replies
5. Shell Programming and Scripting
PLAESE CHECK WHETHER THIS SCRIPT WORKS OR NOT.
THIS IS MY FIRST SCRIPT, HELP ME out if any ERRORS are present.
a=0;
while
do
echo "ENTER path"
read path
if then
echo "path found"
cd $path
DateTimeStamp=$(date '+%d_%m_%y_%H_%M')
echo "enter file name"
read file (2 Replies)
Discussion started by: arunreddy01
2 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix programming. I am trying for a requirement and the requirement goes like this.....
I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies
7. Shell Programming and Scripting
Hi Friends,
I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only
I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies
8. Shell Programming and Scripting
Experts,
Please help me out here.
How to preserve time stamp while copying a directory from Server B to Server A (3 Replies)
Discussion started by: ahmed.vaghar
3 Replies
9. Shell Programming and Scripting
Hello ,
I am working on AIX. I have to convert Unix timestamp to normal timestamp. Below is the file. The Unix timestamp will always be preceded by
EFFECTIVE_TIME as first field as shown and there could be multiple EFFECTIVE_TIME in the file : 3.txt
Contents of... (6 Replies)
Discussion started by: rahul2662
6 Replies
10. Shell Programming and Scripting
So basically I have a log file and each line in this log file starts with a timestamp:
MON DD HH:MM:SS
SEP 15 07:30:01
I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies
packf(1) General Commands Manual packf(1)
NAME
packf - compress a folder into a single file (only available within the message handling system, mh)
SYNOPSIS
packf [+folder] [msgs] [-file name] [-help]
OPTIONS
Specifies the file in which you want the message(s) to be stored. If you specify an existing file then the specified messages will be
appended to the end of that file. Otherwise, a new file will be created and the messages placed in it. If you do not specify a filename,
packf attempts to place the messages in a file called msgbox in the current working directory. If this file does not exist, packf asks
whether you want to create it. Prints a list of the valid options to this command.
The default settings for this command are:
+folder defaults to the current folder msgs defaults to all -file
DESCRIPTION
Each message in a folder is normally stored as a separate file. The packf command takes all messages from the current folder and copies
them to a single specified file. Each message in the file is separated by four <CTRL/A>s and a newline.
You can specify a folder other than the current folder by using the +folder argument. If you do not want all the messages in a folder to be
packed into one file, you can specify a number of messages or a range of messages with message numbers.
The first message packed will become the current message. If you specify a +folder argument, that folder will become the current folder.
When messages have been packed into a file using packf, you can separate them into individual messages using the burst command. See
burst(1).
PROFILE COMPONENTS
Path: To determine the user's Mail directory
Msg-Protect: To set protections when creating a new file
EXAMPLES
The first example shows all the messages in the folder +lrp being packed into a file called planning: % packf +lrp -file planning The next
example shows how packf prompts you if you do not specify a -file option. A file called msgbox is created by packf in your home directory,
and messages 3 to 5 are packed into it: % packf +lrp 3-5 Create file "/machine/disk/username/msgbox"? y
FILES
The user profile.
SEE ALSO
burst(1)
packf(1)