| | |
help... for LINUX/UNIX users only
![]() |
•
•
Join Date: Mar 2007
Posts: 61
Reputation:
Solved Threads: 0
hi,
Is it possible to run a gedit command in the terminal that will create a text file automatically and save it in my desired file extension?
For example, if I run:
gedit file.txt
by default, it will open a null document named file.txt.
But all I want is to write and save texts to file.txt automatically so that it wont be NULL.
what should I type in the terminal?
tnx....
Is it possible to run a gedit command in the terminal that will create a text file automatically and save it in my desired file extension?
For example, if I run:
gedit file.txt
by default, it will open a null document named file.txt.
But all I want is to write and save texts to file.txt automatically so that it wont be NULL.
what should I type in the terminal?
tnx....
If you just wanna create file without any contents use the command that is meant for it. 
Use "mkfile", or simply "touch" if you don't wanna complicate things.
If you want to write something in the file use redirection.
Finally, next time you might wanna use Unix Shell Scripting forums..

Use "mkfile", or simply "touch" if you don't wanna complicate things.
If you want to write something in the file use redirection.
Finally, next time you might wanna use Unix Shell Scripting forums..
Are you Agile.. ?
![]() |
Similar Threads
- linux and unix dead? (DaniWeb Community Feedback)
- Linux/Unix Remote Administraion. (IT Professionals' Lounge)
- i want help about the Simulate a Linux/UNIX shell, called MASH in the C (C)
- Linux/UNIX (*nix Software)
Other Threads in the Shell Scripting Forum
- Previous Thread: script to address restartibily issue
- Next Thread: Help!need Help reading the bash script
| Thread Tools | Search this Thread |






