I have a few questions about Unix. Can you please help!
1.How do I create an alias that greps the password file for my username and returns my password file entry? Once I get the alias to work I want to be able to let a friend use it .So that he can use the alias to locate his password entry... (1 Reply)
friends i wanted to now whehter there exists a book as a solution to the questions posted in exercies of the Design of Unix Operating system by Maurice J Bach !..its really urgent !! (1 Reply)
hi friends,
How to obtain list of groups we r a member of and redirect it to a file.
how to append the details of current OS to a file.
how to append the estimated file space to a file.
how to append the details of users loged on along wth their current activity into a file.
Thank you...I'm... (3 Replies)
Hi all,
i need to write an ls command which will pick up
ind_01.txt/pak_01.txt from
ind_01.txt
pak_01.txt
usa_01.txt
files in a directory..
i wrote a ls command by storing ind and pak in 2 variables and listing it. Its working fine. But the pattern to be matched should be sent in... (1 Reply)
Hi,
I have multiple servers and each server hosts multiple databases. Now i have requirement as below
1) Create a file in any server which will hold all the database name.
2) Write a shell script that will read the file and connect to each and every database. and log out of it one by... (2 Replies)
i define a function outside the nawk command which trims the leading and trailing spaces like
function TrimSpace(x)
{
y=gsub(/^+|+$/,"",x)
{
return x
}
}
and i want to call this function in nawk commad like.
nawk '{print TrimSpace($1)}' file
Note:... (2 Replies)
Hi I m creating a file which will serve as a virtual harddisk .
I m using following command to create a file.
#dd if=/dev/zero of=/tmp/Sample.dat bs=1M count=1024
I have following doubts regarding the operation.
1) In above example i m creating a file with byte size of 1M .However in... (1 Reply)
Hi,
I am new to Shell Scripting.
I need to pick the files from one directory and place them in another directory based on time stamp.It should pick the files if the files is not accessed for 1 hour.
Can any one please help me how to work on this.
Thanks in Advance.
Regards,
Prakash (1 Reply)