Search Results

Search: Posts Made By: Prani
3,598
Posted By Chubler_XL
If you want to change the current directory in...
If you want to change the current directory in you terminal shell you will need a function.

Here is a bash solution:

$ pwd
/users/chubler

$ tail hist1.dat
3 4 1

$ function waitHist() {...
3,598
Posted By MadeInGermany
The following is more efficient and doesn't need...
The following is more efficient and doesn't need a loop. Maybe it works for you?
tail -1 -f hist1.dat | awk '$2==2{exit}'
echo "Complete"
3,598
Posted By RudiC
I'm not d'accord with Corona688's item 3), as...
I'm not d'accord with Corona688's item 3), as tail -1 will always render the last line of that file which is appended every 10 seconds.
I'm not at all familiar with csh, but done - which provokes...
3,598
Posted By Corona688
Your program is wrong in a variety of interesting...
Your program is wrong in a variety of interesting ways.

1) You are using c-shell, csh because of #!/bin/csh, but your code is Bourne instead.

2) Once you fix that, your code is also missing a...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 10:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy