12-24-2008
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
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
All,
Please can you help me with this ?
I have a requirement to compress the files older than a sequence number.
Say the directory has the following files
a_101
a_102
a_103
a_104
a_105
a_106
a_107
a_108
I would like to compress all files based on a number i supply. IE. if i... (10 Replies)
Discussion started by: kamathg
10 Replies
2. UNIX for Dummies Questions & Answers
I have a bunch of files below in some directory /home/tmp:
abc.txt
def.txt
ghi.txt
And I want to rename them with sequence as their extension (in the format 00# see below):
abc.001
def.002
ghi.003
I need some help with this and below is a basic code structure to get... (3 Replies)
Discussion started by: ChicagoBlues
3 Replies
3. Shell Programming and Scripting
Hi,
Please help me on this.
Suppose i have the following directory structure.
/app/data
/app/data/eng
/app/data/med
/app/data/bsc
each of the directories data,data/eng,data/med,data/bsc holds files with date extension like
a.20081230
b.20081230 and so on
I need a script to loop... (9 Replies)
Discussion started by: sussane
9 Replies
4. 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
5. Shell Programming and Scripting
Hi, all:
Newbie questions:
For example, if I have 6 files, respectively named as:
How to "ls" all files in sequence of two ways?
1) The first way is according to the sequence of the natural number.
Say, the same sequence as shown as they are given.
2) The second way is default... (2 Replies)
Discussion started by: jiapei100
2 Replies
6. UNIX for Dummies Questions & Answers
I'm trying to make this code below to work but I can't find the way to do the following: I want to make the script to touch only 10% of the total amount of files counted inside the given directory instead of all like it is now.
I would greatly appreciate it if someone can give me a direction on... (9 Replies)
Discussion started by: regraphix
9 Replies
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
Hi all,
I have a file like this
ID 3BP5L_HUMAN Reviewed; 393 AA.
AC Q7L8J4; Q96FI5; Q9BQH8; Q9C0E3;
DT 05-FEB-2008, integrated into UniProtKB/Swiss-Prot.
DT 05-JUL-2004, sequence version 1.
DT 05-SEP-2012, entry version 71.
FT COILED 59 140 ... (1 Reply)
Discussion started by: manigrover
1 Replies
9. Shell Programming and Scripting
I want to use case statement to find the range of missing sequence in my directory which it has some few ( dat & DAT ) files
my directory /home/arm/my_folder/20130428 contains :
f01_201304280000.DAT
f01_201304280001.DAT
f01_201304280003.DAT
f02_201304280000.dat
f02_201304280002.dat... (2 Replies)
Discussion started by: arm
2 Replies
10. UNIX for Beginners Questions & Answers
Hello, sorry to bother anyone reading this
I have an assignment with a question that reads:
Your current directory is stenton. Create empty files called f1, f2, and f12 (in that order), within stenton
So my first thought was to enter: touch f1 f2 f12
but that does not work, does anyone... (1 Reply)
Discussion started by: eleuin
1 Replies