creating a blank file within a shellscript
5 posters
creating a blank file within a shellscript
to create a blank file within in a shell script
i have done it this way...
cat >> filename << "";
but i think there is any other better way....can u please suggest any better way...
i have done it this way...
cat >> filename << "";
but i think there is any other better way....can u please suggest any better way...
subhajit- Posts : 11
Points : 17
Join date : 2010-02-26
Re: creating a blank file within a shellscript
how can i press ctrl+D within in a shell script.....i have written it in a shellscript....there ar many code after that.....
subhajit- Posts : 11
Points : 17
Join date : 2010-02-26
Re: creating a blank file within a shellscript
@:chris .... bulb!!!!!
anand- Posts : 55
Points : 70
Join date : 2010-02-26
Age : 36
Re: creating a blank file within a shellscript
way to go chris....
radhica- Posts : 1
Points : -1
Join date : 2010-03-02
Age : 36
Re: creating a blank file within a shellscript
anyways chris
anand- Posts : 55
Points : 70
Join date : 2010-02-26
Age : 36
Re: creating a blank file within a shellscript
guys.. its time to go back to topic. anyone know how create a blank file in shell script???
Re: creating a blank file within a shellscript
cat > blankfile
echo "hiiiii"
execute dat shellscript and press ^D .
echo "hiiiii"
execute dat shellscript and press ^D .
urvershi- Posts : 21
Points : 70
Join date : 2010-02-26
Re: creating a blank file within a shellscript
@ urvershi
how can i press ^D within a shellscript.
how can i press ^D within a shellscript.
subhajit- Posts : 11
Points : 17
Join date : 2010-02-26
Re: creating a blank file within a shellscript
i hav written first execute dat shellscript and den press ^D.
urvershi- Posts : 21
Points : 70
Join date : 2010-02-26
Re: creating a blank file within a shellscript
thanks kartik!!
the exact command is touch
$touch myfile.txt
the exact command is touch
$touch myfile.txt
subhajit- Posts : 11
Points : 17
Join date : 2010-02-26
Similar topics
» CONSTRAINTS ???
» read from a file
» exact file search?
» Change Owner of a File
» deleting a particular line in a file
» read from a file
» exact file search?
» Change Owner of a File
» deleting a particular line in a file
Permissions in this forum:
You cannot reply to topics in this forum