![]() |
|
|
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 |
| unable to display the souce line in gdb | gauri | UNIX for Dummies Questions & Answers | 4 | 04-19-2007 09:36 PM |
| how to echo the file contents LINE BY LINE | newbie168 | Shell Programming and Scripting | 4 | 02-22-2006 06:43 AM |
| Removing Carriage Return and or line feed from a file | tbone231 | Shell Programming and Scripting | 1 | 02-18-2005 04:37 PM |
| Unable to view contents of a directory | maddave | UNIX for Dummies Questions & Answers | 13 | 10-25-2001 02:50 AM |
| file feed one line per argument | jpprial | UNIX for Dummies Questions & Answers | 10 | 10-09-2001 11:22 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Unable to display correctly the contents of a file without a line feed
I am using AIX and ksh.
I need to display the contents of a file that has a pid (process id). Because the file is open, it doesn't have the line feed or new line, so for some reason if I do this: `cat $pid` , where $pid is the name of the fully qualified file, it displays test3.sh[12]: 426110: not found It should display: 426110 I tried to copy the file and then try to run vi through the scripts; and edit it; and save it so that a /n will be added at the end (assuming that that is the problem). The file only has one line which is the number of the process id. It seems simple, but no luck. Any suggestions please....? thank you Last edited by Gato; 06-25-2008 at 08:52 PM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|