Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: inpavan
3,362
Posted By inpavan
Try sed "s/ACTIVE/2002/g" your_file >...
Try

sed "s/ACTIVE/2002/g" your_file > new_file
82,972
Posted By inpavan
You can place the PATH variable in...
You can place the PATH variable in $HOME/.profile. Dont forget to "export" the PATH and other environment variables, if any, too.
5
sms
1,735
Posted By inpavan
Certainly Udi. We would like to know more about...
Certainly Udi. We would like to know more about it. First, I didnt think that it was possible. Can you provide us more information?

Thanks.
1,531
Posted By inpavan
you can compile and run the java files. First...
you can compile and run the java files. First install jdk(any version - latest is jdk1.3.1) on the box. compile it using "javac" and run it using "java" (Same as you do on MS-DOS)
14,757
Posted By inpavan
If you are searching for two strings, use - ...
If you are searching for two strings, use -

egrep -i -e "string1" -e "string2" *
4,697
Posted By inpavan
Try - sed '/.*XY.*/d' your_file > new_file
Try -

sed '/.*XY.*/d' your_file > new_file
15,328
Posted By inpavan
you can run the java file using - java...
you can run the java file using -
java -classpath path_to_class_file your_class_file_name

Remember, you have to use the full path name for 'java'. Dont forget to include all the class files in...
38,111
Posted By inpavan
head -1 your_file_name
head -1 your_file_name
10,498
Posted By inpavan
LivinFree, What are the functionality of ##...
LivinFree,

What are the functionality of ## and %% ? Any more special symbols we can use ?

Thanks.
5,458
Posted By inpavan
What if the password contains @ while using - ...
What if the password contains @ while using -
ftp user:password@host
50,042
Posted By inpavan
Are you trying to delete the line containing the...
Are you trying to delete the line containing the word(s) or trying to delte the words only.

sed 's/yourword//g' yourfile > newfile - To delte the words only
sed 's/yourword/d' yourfile > new file...
181,074
Posted By inpavan
Neo, Where can I find the .exrc file? It...
Neo,

Where can I find the .exrc file? It doesnt exist in the $HOME directory or the root (/)
2,557
Posted By inpavan
Also, dont forget to give the full filepath from...
Also, dont forget to give the full filepath from root in the crontab file (in addition to changing the mode of file as told by doeboy)
19,017
Posted By inpavan
Havent I already answered the question?..:( ...
Havent I already answered the question?..:(

Or Was the command unsuccessful?
2,297
Posted By inpavan
Use backtilt lp printername `ls -ltr|grep...
Use backtilt

lp printername `ls -ltr|grep "your_param"|grep "your_param2"`

or

lp printername `ls -ltr | grep "your_param1.*your_param2"` - If you are using the param as per your example.
2,297
Posted By inpavan
If you need to list only top 10 files in an...
If you need to list only top 10 files in an directory, then -

ls -l | head -11

you can also use - "ls -lt | head -11" for viewing 10 recently modified files.

Hope this is useful.
16,187
Posted By inpavan
I totally agree with TRUEST. Lot of guys here are...
I totally agree with TRUEST. Lot of guys here are learning UNIX. If people think that the question is 'homework' , then PLEASE DO NOT REPLY to the question. And, how can you come to a conclusion that...
2,755
Posted By inpavan
Sorry LivinFree. probably we replied at the same...
Sorry LivinFree. probably we replied at the same time.
2,755
Posted By inpavan
Dont use ' (single quote). Use ` (dont know what...
Dont use ' (single quote). Use ` (dont know what it is called but it is left to the '1' key on the key board and above 'TAB')

:(
2,755
Posted By inpavan
There might be better ways to do this. for i...
There might be better ways to do this.

for i in `find your_dir -type f -name '*'`
do
mv $i $i.mv
done
8,613
Posted By inpavan
Try using 'mail' or /usr/lib/sendmail.
Try using 'mail' or /usr/lib/sendmail.
2,214
Posted By inpavan
alisev, This is already been answered....
alisev,

This is already been answered. Search the forum.

sed '/bbb/d' your_file_name > new_file_name
3,407
Posted By inpavan
Check this - if [[ $errorind = "N" ]]; ...
Check this -

if [[ $errorind = "N" ]];
then

Be sure to leave space between square brackets i.e, [[ and $errorind and also between N and ]]. I tried to run my script without the space it gave...
60,852
Posted By inpavan
Jimbo, I want to know why you are using...
Jimbo,

I want to know why you are using myroot.sh when executing scott.sh will do the required job. Are you using myroot.sh to change the user or is it useful in other way?

Say, if I want to...
12,655
Posted By inpavan
You can not delete an file from the existing tar...
You can not delete an file from the existing tar file. Read manual of tar (man tar).
Showing results 1 to 25 of 36

 

Featured Tech Videos

All times are GMT -4. The time now is 11:51 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy