02-20-2002
I've got this that works for running through each file in the $LOAD directory. I've also changed the script so that it looks by itself for the $LOAD directory (which I am setting with a setenv type file taht gets run at the start).
for x in $LOAD/*
do
do my stuff here
mv $x to PROCESSED directory
done
Works..and the movement is for my use (not because it's requierd) - seems simple - works - quite efficient.....no better way though?
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Guys plz respond. (1 Reply)
Discussion started by: prince_of_focus
1 Replies
2. Programming
At my company, we build some stuff using a makefile. While the makefile script is running, a developer may check in a newer version of a source file. The problem is, when we next run the make command, the target file isn't rebuilt, because the date of the target is after the dependency.
Any... (1 Reply)
Discussion started by: mbbeaubi
1 Replies
3. UNIX for Advanced & Expert Users
I have lines like:
Mg2.qns W=0.175u
Mg2.qpsb W=0.175u
Mg4.qns W=0.175u
Mg4.qpsb W=0.175u
Which I need to become:
Mg2.qns W=wmg2qns
Mg2.qpsb W=wmg2qpsb
Mg4.qns W=wmg4qns
Mg4.qpsb W=wmg4qpsb
To acheive this individually line by line I use a command like:... (3 Replies)
Discussion started by: ggggdddd
3 Replies
4. UNIX for Dummies Questions & Answers
I have a string as "Period= 20090531 Client Name= Clayton Lumbar Company Destination= MD"
I want to parse the string and store it in 3 different variables.
$period (should get value 20090531)
$client (should get value "Clayton Lumbar company")
$dest (should get value MD)
How can I do... (3 Replies)
Discussion started by: paruthiveeran
3 Replies
5. Homework & Coursework Questions
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts for deletion of the file.
If user supplies arguments with the script , then it works on those files... (1 Reply)
Discussion started by: rits
1 Replies
6. Homework & Coursework Questions
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts for deletion of the file.
If user supplies arguments with the script , then it works on those files... (8 Replies)
Discussion started by: rits
8 Replies
7. Shell Programming and Scripting
hello everyone!:)
I have an exercise which I think is difficult for beginner like me. Here is the exercise
Create a shell script, which takes a directory as command line argument.
Script displays ten first lines from every text file in that directory. After
displaying the lines from the... (1 Reply)
Discussion started by: googlevn
1 Replies