![]() |
|
|
|
|
|||||||
| UNIX and Linux Applications Questions involving software not covered by other forum go here. This includes Databases and Middleware. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Enterprise Unix Roundup: The Ghost of Unix Future - Server Watch | iBot | UNIX and Linux RSS News | 0 | 12-19-2007 08:20 AM |
| Running UNIX commands remotely in Windows box from Unix box – avoid entering password | D.kalpana | UNIX for Dummies Questions & Answers | 1 | 04-20-2007 02:24 AM |
| FTP script for sending a file from one unix directory to another unix server director | raja_1234 | Shell Programming and Scripting | 1 | 11-30-2006 03:57 AM |
| Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! | haggo | Filesystems, Disks and Memory | 2 | 08-23-2006 08:39 AM |
| Unix History Question: Why are filenames/dirnames case sentsitive in Unix? | deckard | UNIX for Dummies Questions & Answers | 3 | 03-26-2005 09:59 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Unix
Hi,
Following is the code. Test.sh ------- lindata="" cnt=`cat test.dat|wc -l` i=1 while [ $i -le $cnt ]; do v=`head -$i test.dat|tail -1` echo $v i=`expr $i + 1` done exit I am having the data like this Test.dat -------- smith jones xxxxx smith jones "N/A " "smith b " 'jones ' When i execute the test.sh, I got the following output: smith jones xxxxx smith jones "N/A " "smith b " 'jones ' Here the issue is spaces are removed as u check the test.dat and the output i got when i execute the statement. I want to display the output as the test.dat but it is not displaying. Please suggest. Thanks & Regards |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|