![]() |
|
|
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 |
| printf | arunviswanath | High Level Programming | 2 | 09-19-2007 10:31 PM |
| the printf command | bebop1111116 | Shell Programming and Scripting | 4 | 10-01-2006 01:40 AM |
| printf command in ksh | cin2000 | Shell Programming and Scripting | 1 | 12-21-2005 02:48 PM |
| find: problems escaping printf-command string | grahamb | Shell Programming and Scripting | 1 | 12-04-2005 04:00 PM |
| printf command | FIRE | Shell Programming and Scripting | 2 | 08-07-2002 03:18 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi How could I use the command printf to display a big file. So ex. I've a script with some variables like: Code:
V1=358504 V2=FD0147 V3=dev5 V4=94577 V5=0 V6=UNIX V7=Policy V8=server V9=04/15/05 V10=19:18:41 V11=2341321467 while read V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 do printf "\n%s %s %s %s %s %s %s %s %s %s %s" $V1 $V2 $V3 $V4 $V5 $V6 $V7 $V8 $V9 $V10 $V11 >>/tmp/file.txt done then Code:
cat /tmp/file.txt 358504 FD0147 dev5 94577 0 UNIX Policy server 04/15/05 First, it doesn't print on one line and second the variables V10 and V11 doesn't appears. Have someones an idea to make the output on one line with all variables? perhaps an easier and better output. Thx
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|