Filename
How Do You Execute A File In Unix? I Was Told #!/bin/sh, But Where Is This Used.?

I know in perl you just put .pl (filename.pl) at the end of the file you named, and to run the that you just type perl filename.pl.
In unix I being told its something like #!/bin/sh? Where does this go? Does this mean I make the file with #!/bin/sh in front of [...]

Read More
Posted on 28th February 20108 Comments
How To Corrupt Unix Files?

echo characters into them
echo “HHJRHJR” >> filename

Read More
Posted on 17th February 20101 Comment
Posted on 8th February 20101 Comment
Posted on 25th January 20102 Comments
Posted on 6th December 2009No Comments
How To Convert A File In Unix To Word Document?

Word should recognize an text document from a Unix system. You may need to convert the text from the Unix standard to the DOS standard.
Use the comment ‘unix2dos’ to convert the file like this:
% unix2dos ‘filename’ > ‘converted_filename’

Read More
Posted on 9th October 20091 Comment
How Do I Save A Visual C++ File On Unix Is There A Command Especially For Visual C++ Type Programs?

Save a c++ file on unix….
Well, this is what I do:
~$emacs filename.cpp -nw
once in emacs, you create your program. To save it, hold down ctrl and press x – s. Then just hold ctrl and press x – c to exit.
then do a ls -l from the command line and you will see [...]

Read More
Posted on 22nd September 2009No Comments
How Best To Add A Header And Footer (page X Of N) To Multiple Text Files Generated From Unix Shell Script?

I will be generating 100’s of files over the next year from a UNIX shell script that need to be archived. However, the archiving requires: 1) page headers contain the file’s filename; 2) page footers are numbered with “Page X of N” and contain the text “Confidential”; and 3) final output is in [...]

Read More
Posted on 20th September 20091 Comment
How Do I Add A Line To A Text File To Echo The Value Of Ps1 Variable To The Screen? Using Unix…?

complicated sentence..
try echo $PS1 >> filename.
otherwise use simple, layman English to ask your question.

Read More
Posted on 3rd September 2009No Comments
Unix Question: Is There A Way To List Each Filename In A Directory With Their Actual Epoch Timestamp?

I am trying to get a list of all the filenames in a directory but instead of having the date in the format Month Day HH:MM I would like to have the actual epoch time of the file.
Thanks

Read More
Posted on 4th August 20091 Comment
Improve the web with Nofollow Reciprocity.