Search Results

Search: Posts Made By: ashok.g
1,917
Posted By ashok.g
You are Welcome!:)
You are Welcome!:)
1,917
Posted By ashok.g
I think this code will serve your purpose: ...
I think this code will serve your purpose:

echo "what is your username?"
read username
echo "Hello $username"
backup="backup"
restore="restore"
if [[ $username == "" ]]
then
echo "No...
1,797
Posted By ashok.g
Setting System Variable LINES
I am trying to set my system variable LINES and not able to do that permanently. I used the following commands for this:
Can I able to chage the value of that variable permanently atleast I exit...
6,540
Posted By ashok.g
Thats really a great information. Thank you,
Thats really a great information. Thank you,
35,501
Posted By ashok.g
I think you were wrogn with syntax. Try the...
I think you were wrogn with syntax. Try the following code instead:

#!/bin/sh
echo "Search user:"
dir="/home"
read typed
if
$typed -e $dir
then
echo "user exist!"
else
echo "user deosn't...
6,540
Posted By ashok.g
test expr VS [ expr ]
What is the difference between test expr VS [ expr ].
For example :
if test 5 -eq 6
echo "Wrong"
and
if [ 5 -eq 6 ]
echo "Wrong"
bot will give the same output as Wrong.
Now, what is the...
Forum: Red Hat 12-03-2009
8,479
Posted By ashok.g
For your kind information the contes of different...
For your kind information the contes of different files are as follows.
Contents of passwd file:
[root@Station130 ~]# cat /etc/passwd
.........
Ashok:x:516:516::/home/Ashok:/bin/bash...
Forum: Red Hat 12-02-2009
7,238
Posted By ashok.g
How to open RAR files?
May be this is a newbie question but i want to know hoe to open the RAR file in linux?
Forum: Red Hat 12-02-2009
4,453
Posted By ashok.g
I am getting what I want now. Thanks for all your...
I am getting what I want now. Thanks for all your replies.
Forum: Red Hat 12-02-2009
4,453
Posted By ashok.g
Here are we overwriting the contents of /dev/null...
Here are we overwriting the contents of /dev/null by the error reports?
Forum: Red Hat 12-02-2009
4,453
Posted By ashok.g
Thank You. It's working! ---------- Post...
Thank You. It's working!

---------- Post updated at 02:13 PM ---------- Previous update was at 01:48 PM ----------

When I try the command
$find /home/Ashok -name ENV.doc
I am able to get the...
Forum: Red Hat 12-02-2009
8,479
Posted By ashok.g
Ya, I am able to login now. It's some mistake I...
Ya, I am able to login now. It's some mistake I did with my LDAP configuration.
So, I disabled the LDAP configuration and used MD5 password authentication.
But, there is a problem. All working...
Forum: Red Hat 12-01-2009
4,453
Posted By ashok.g
Custom output on FIND
I have a file, ENV.doc somewhere in my home directory. I want to know where the file is located in my sub directories using FIND. But, I want to display only the relative path along with the file...
Forum: Red Hat 12-01-2009
8,479
Posted By ashok.g
Ashok:x:516:516::/home/Ashok:/bin/bash
Ashok:x:516:516::/home/Ashok:/bin/bash
Forum: Red Hat 11-27-2009
8,479
Posted By ashok.g
Authentication failed !
Hey since this morning I(nonrrot user) am not able to log into my system with my username. I am using redhat linux kernel release 2.6.9-5.ELsmp. I aslo found the folowing output for chkconfig...
Forum: Red Hat 11-26-2009
3,551
Posted By ashok.g
What does '1' specify in this command? ls -a...
What does '1' specify in this command?

ls -a | sort | awk -v ORS="\t" '1'
Forum: Red Hat 11-26-2009
3,551
Posted By ashok.g
Thanks for your reply. But I want to display the...
Thanks for your reply. But I want to display the filenames seperated by tab. Actually, I am new to LInux. I dont know what is xargs?
Its better if you tell me for what we use xargs also.

...
Forum: Red Hat 11-26-2009
3,551
Posted By ashok.g
Customised Output
I want some customised output of following command:
$ls -a|sort
gives output as filenames line by line. But I want the output as filenames aeperated by tab? How can I get this?

Thanks in advance.
3,943
Posted By ashok.g
Printing File Contents Using AWK
I want to print the contents of a file from 2nd line to last but one line using the AWK command.
I tried using the Shell Script,MyScript as fallows:
MyScript:
{
if(NR>1)
{
if(NR<9)
{
print...
1,718
Posted By ashok.g
Regarding Profiles.
Hello,
Actually I donno anything regarding profiles in Linux. Can anyone tell me what are Profiles in Linux and if possible copy links regarding so.

Thanks in advance.
5,079
Posted By ashok.g
What does $ represent in command prompt?
What does $ represent in command prompt?
2,842
Posted By ashok.g
Need some help on using cat command
I have a file "sample.txt" with the content as below:
Hi
This is a Sample Text.

I need a single command using cat which serve the following purpose.

1.display the contents of sample.txt...
Showing results 1 to 22 of 22

 
All times are GMT -4. The time now is 08:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy