10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have noticed that the following command works
touch subtext_geopdf_to_.x
However this one does not
touch subtext_/geopdf/_to_/.x
How can I create such a file without making it think I supplied a path? (2 Replies)
Discussion started by: kristinu
2 Replies
2. Shell Programming and Scripting
Hi,
I need to create a trigger file named "start" at 4 pm daily . Once this file is created , another process would be initiated. How do i do it using touch command in unix ?
My script that should have touch command shall be present in a dir /app/user/script while the trigger file should be... (2 Replies)
Discussion started by: samrat dutta
2 Replies
3. UNIX for Dummies Questions & Answers
Afternoon,
the stat command is used against a file to ascertain date created and last modification time. However a different individual if they so chose could use the touch command to alter the date created or modification time.
Is there anyway to protect against this ?
thanks
Steve (2 Replies)
Discussion started by: sevans29
2 Replies
4. Shell Programming and Scripting
Hi,
I've a situation where i need to check for the file existence and create a zero byte file based on the parameter,in some cases i need to touch and in some case i dont need to touch with zero byte file please help me on parameterizing this touch command??
Regards.
San (2 Replies)
Discussion started by: sandeep karna
2 Replies
5. Shell Programming and Scripting
Hi all,
Need advice from expect, below is my scripts to find the file not use and touch in storage and other directory.
This scripts divide by:
1. 30 days
2. 90 days
3. 180 days
4. 1 years
5. 3 years
6. 5 years
Then count total size in GB from 6 each category.
Sample my... (5 Replies)
Discussion started by: sheikh76
5 Replies
6. Shell Programming and Scripting
All, I am looking to make a script and wanted to see if anyone could help out.
The script will go through the directory, put a timestamp, transfer it and then create a touch $file.done script
HEre is my initial idea, but I don't think it will work properly. Anyone able to help me refine it... (11 Replies)
Discussion started by: markdjones82
11 Replies
7. UNIX for Dummies Questions & Answers
I have a folder with many subdirectories and i need to set the modified date to today for everything in it. Please help, thanks!
I tried something i found online, find . -print0 | xargs -r0 touch
but I got the error: xargs: illegal option -- r (5 Replies)
Discussion started by: glev2005
5 Replies
8. Shell Programming and Scripting
I know how to touch like this
touch -t 199908031046 /tmp/file1
But I want to create a cron job for touch a file which 30 min ago in Solaris which haven't -mmin
Can I use like this ? touch -t `date +%s` - 30 /tmp/file1
Because I want to file the file which older than 30min.
Thanks, (6 Replies)
Discussion started by: kennylcn
6 Replies
9. Shell Programming and Scripting
Hi all,
Can any one tell me how to empty the contents of a file in unix without using the following sequence : rm <file> ; touch <file>
is there any command in unix??
is it possible through shell scripting? If so, how?
-krishna (7 Replies)
Discussion started by: kris_kris
7 Replies
10. UNIX for Advanced & Expert Users
Dear expert,
what is this command touch -c filename using for?
I find if execute and filename is existed, it update the date to now.
If the filename is not exeisted, it don't create the file..
so what is this command using for?
Thank a lot! (1 Reply)
Discussion started by: zp523444
1 Replies