Category Archives: Shell Script

Find Out If Running Kernel Is 32 Or 64 Bit

rajeshkumar created the topic: Find Out If Running Kernel Is 32 Or 64 Bit Type the following command at the terminal, run: $ uname -a Output: Linux ora100 2.6.5-7.252-smp #1 SMP Tue Feb 14 11:11:04 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux x86_64 GNU/Linux indicates that you’ve a 64bit Linux kernel running. If you use see… Read More »

How to gunzip and untar all at once!

rajeshkumar created the topic: How to gunzip and untar all at once! How to gunzip and untar all at once! gunzip myfile.tar.gz tar -xvf myfile.tar INTO ONE tar -zxvf myfile.tar.gz Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

Shell script program 2

scmuser created the topic: Shell script program 2 Use a script to take two numbers as arguments and output their sum using (i) bc (ii) expr. include error – checking to test whether two arguments were entered? tpatil replied the topic: Re: Shell script program 2 If I understand correctly your question, You want to… Read More »

Test your Shell Scripting Skills: – Program 8

scmuser created the topic: Test your Shell Scripting Skills: – Program 8 Write a script that displays a special listing showing the (i) permission (ii) size (iii) filename (iv) last modification time (v) last access time of filenames supplied as arguments. Provide suitable headers using the printf command.

Test your Shell Scripting Skills: – Program 9

scmuser created the topic: Test your Shell Scripting Skills: – Program 9 Find out the pathname of the Korn shell on your machine and then change the interpreter line in all shell script in the current directory that show a different pathname for ksh

Test your Shell Scripting Skills: – Program 10

scmuser created the topic: Test your Shell Scripting Skills: – Program 10 Add the statement #inlclude at the beginning of every C source file in the current directory containing printf or fprintf, if it does not already have it included.

Test your Shell Scripting Skills: – Program 12

scmuser created the topic: Test your Shell Scripting Skills: – Program 12 You have a number of C programs that certain comment lines at the beginning of each program. The lines begin with /* followed by the first line of comment, butthe terminator line has */ as the only characters in the line. Remove these… Read More »