I have a small script that loops through all files of a folder and executes a (usually long lasting) command. Basically it's
for file in ./folder/*;
do
./bin/myProgram $file > ./done/$file
done
(Please Ignore syntax errors, it's just pseudo code).
I now wanted to run this script twice at the same time. Obviously, the execution is unnecessary if ./done/$file exists.
Hi friends you can solve my question about make 3 shell scripts?
Quote:
Write a shell script such that, given multiple files as arguments, showing, for each of them, his name and the number of lines it contains. Try it with any file.
2.
Hi,
I'm having problems with a script which some of you helped me with last week. It's a script to check the status of orders in an SQL database, and if the count(*) is zero, then the script stops.
Is there a way to specify multiple variables (not just integers) in for loops in bash? I may have 2 files containing arbitrary text that i would need to work with.
What i functionally need is something like this:
for i in $(cat file1) and j in $(cat file2); do command $i $j; done
Any ideas?
Thank you very much for viewing my post and offering your suggestions & help. I really appreciate it. ~Simba
1. The problem statement, all variables and given/known data:
File "Ageing" Shell Script
Part A) Write a shell script that will count the number of files in your account that were last modified 5 or more days ago.
How can run a part of a shell script in nohup mode ?
I need to write a script that runs parellel and looks for a string in multiple files . I tried a lot of options but they slow down the speed of my processor.
Hi I have a small test network that I'm using to do some number crunching for my dissertation. My network consists of three machines with intel gigabit network cards (all em drivers with two hosts setup as laggs) with default MTU settings etc... running Freebsd 9.1 and mpich2.
Hi I have to write a shell script which copy files from one folder to another.
When I try to do it directly from command prompt
cp filename.dat /outgoing/filename.dat
its working fine.
But when I put the same command inside a shell script say test.sh its not getting copied. and when I check $?