Shell Script to touch a file

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Shell Script to touch a file
# 1  
Old 06-16-2016
Shell Script to touch a file

our requirement is that we need to create a touch file on 2 4 and 7 th working day of the each month ...

If the days falls on saturday/sunday, the touch file should be created on next working day.

We are currently on Red hat 6.5
# 2  
Old 06-16-2016
Moderator's Comments:
Mod Comment This thread is a duplicate of the thread Script to run on 2 4 and 7 day of the month.

Please continue any further discussion there.

This thread is closed.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with Shell Scrip in Masking particular columns in .csv file or .txt file using shell script

Hello Unix Shell Script Experts, I have a script that would mask the columns in .csv file or .txt file. First the script will untar the .zip files from Archive folder and processes into work folder and finally pushes the masked .csv files into Feed folder. Two parameters are passed ... (5 Replies)
Discussion started by: Mahesh G
5 Replies

2. Shell Programming and Scripting

Command / Script to create touch file in destination server

Hello Team, Is there any Linux command / script available so that, I could create a simple 0 byte file in destination server by issuing the command from source server. If yes, Could you please let me know the possible solutions. in other words I just want to create a touch file in my home... (1 Reply)
Discussion started by: madhuraju
1 Replies

3. UNIX for Dummies Questions & Answers

Using touch to create a file

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

4. Shell Programming and Scripting

Find and touch in Shell

Hello All Below is code snippet i am using find . -name "*.txt" -mtime +5 -exec -touch "*.txt" {} + The purpose is to make the files with name *.txt to be of size 0 kb if it is older than 5 days.With above code i am unable to do so.I know alternative is to use if/else loop but i would like... (3 Replies)
Discussion started by: vinil
3 Replies

5. Shell Programming and Scripting

Shell script to check files if exist else touch the file

Hi All, Thanks in Advance I wrote the following code if then echo "version is 1.1" for i in "subscriber promplan mapping dedicatedaccount faflistSub faflistAcc accumulator pam_account" do FILE="SDP_DUMP_$i.csv" echo "$FILE" ... (5 Replies)
Discussion started by: aealexanderraj
5 Replies

6. Shell Programming and Scripting

SCP and then touch .done file

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. Shell Programming and Scripting

Use arrow touch in a script shell without special character

Hello, I have a problem when i execute the script underneath. If i tape azerty 123 and i use the arrow touch, in the file /tmp/test i have the caracter #!/usr/bin/ksh clear echo "Taper l adresse IP de la partition a creer :" tput cup 1 48 read Adress echo $Adress echo "${Adress}" >>... (0 Replies)
Discussion started by: khalidou13
0 Replies

8. UNIX for Dummies Questions & Answers

Touch all files and subdirectories (recursive touch)

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

9. Shell Programming and Scripting

script to touch a sequence of files

Hi, My requirement is i need to touch a sequence of files like touch a touch b touch c now i need the script in a way that checks if all files are touched or not. if any file say b is not touched then i should get this notification. Please suggest as i am new to unix (2 Replies)
Discussion started by: sussane
2 Replies

10. Shell Programming and Scripting

Problem Running Touch From Script

Hi I'm trying to touch a number of files. I thought that it would be time-saving to put all the touch commands into a script and execute the script from the command line. This is what I did (as a test) -- I created a small list of commands and put the commands into a text file I set... (6 Replies)
Discussion started by: Viola
6 Replies
Login or Register to Ask a Question