![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IBM Informix Load and Insert with multiple files | rauphelhunter | Shell Programming and Scripting | 0 | 04-09-2008 08:52 AM |
| comparing the null values in the unix | bbc17484 | Shell Programming and Scripting | 11 | 02-12-2008 06:36 AM |
| handling null values in files | ammu | Shell Programming and Scripting | 1 | 11-06-2007 01:43 PM |
| Find files which contain a null character | Bab00shka | UNIX for Dummies Questions & Answers | 5 | 12-16-2005 07:41 AM |
| mv files to /dev/null | primal | UNIX for Dummies Questions & Answers | 16 | 11-02-2001 05:09 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
insert null in unix files
Hi everybody,
How to add null values in unix file? This is what was asked to me in an interview. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
maybe:
cat /dev/zero > test.txt or cat /dev/null > test.txt ?? |
|
#3
|
||||
|
||||
|
Appending nul characters in UNIX
Quote:
Code:
dd if=/dev/zero bs=1 count=<count> >> outfile.txt The other way, is if in you're vi/m, you can hit CTRL-V CTRL-@ to get a NUL character. You can also use perl to generate one. |
|
#4
|
|||
|
|||
|
thanks for the reply.
I am not getting what you guys have explained probably bcoz i am jst a beginner. Once again i am making my question clear. how to add null value to a file? just wanna create a file with nulls. i dont know whether you can do this unix that is why i need experts like you guyz to answer. |
|
#5
|
|||
|
|||
|
What do you mean by "adding null values to a file" ? What's the required output ?
|
|||
| Google The UNIX and Linux Forums |