![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Range generator | saifurshaon | Shell Programming and Scripting | 9 | 01-20-2009 08:00 PM |
| specifing range.... | zedex | UNIX for Advanced & Expert Users | 1 | 10-19-2007 10:07 AM |
| Getting 'out of range' when partitioning | pmichner | UNIX for Dummies Questions & Answers | 1 | 09-30-2006 02:51 AM |
| Look a string within a range! | azmathshaikh | Shell Programming and Scripting | 0 | 05-01-2005 04:54 AM |
| Unix SCO 5.0.6 Out of range | josramon | UNIX for Dummies Questions & Answers | 5 | 02-21-2003 02:06 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
A range problem
I have a text file which contains a row of values ranging from -9.99 to 1.00 now the issue here is I need the script below to keep checking recursively th entire file, yes the entire fila and only then specify the row contains just 1.00 or any other value... the script is below Code:
files1="$(find /home/Desktop/Ant/original_files | xargs grep "1.00" | cut -d ":" -f1 | uniq)" echo $files1 for X1 in $files1 do cp $X1 /home/Desktop/Ant/final_files_noremand1 done echo "folder with no remark 465 but has all atom 1.00 is created" in above script the problem is the script just checks the first occurance of the value 1.00 and then decides, but if next value is not 1.00 it does not check...plz help |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|