![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| simple script | rajivn786 | Shell Programming and Scripting | 5 | 11-30-2008 11:26 PM |
| Simple Script | mojoman | Shell Programming and Scripting | 6 | 05-12-2008 03:55 AM |
| simple script help | ali560045 | Shell Programming and Scripting | 4 | 01-24-2008 05:24 AM |
| I need a simple script | mehmetned | Shell Programming and Scripting | 2 | 02-10-2007 02:16 AM |
| simple awk script... | moxxx68 | Shell Programming and Scripting | 3 | 01-24-2005 04:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Quote:
Quote:
Quote:
Code:
Quote:
|
|
|||||
|
still having the same problem not reading blank line.....below the script
Code:
#!/bin/ksh
while IFS= read i
do
echo "Value is $i"
#count=`expr substr "$i" 1 3`
#echo $count
temp=${i#???}
count=${i%"$temp"}
echo "$count"
if [ "$count" = " " ]
then
echo "Blank Space Found"
else
echo "Value found"
fi
done < a2.txt
Quote:
Last edited by ali560045; 01-07-2009 at 05:43 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|