Search Results

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

sed "s/ACTIVE/2002/g" your_file > new_file
93,544
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
2,108
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,666
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)
16,061
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" *
5,030
Posted By inpavan
Try - sed '/.*XY.*/d' your_file > new_file
Try -

sed '/.*XY.*/d' your_file > new_file
15,815
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,779
Posted By inpavan
head -1 your_file_name
head -1 your_file_name
12,679
Posted By inpavan
LivinFree, What are the functionality of ##...
LivinFree,

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

Thanks.
6,374
Posted By inpavan
What if the password contains @ while using - ...
What if the password contains @ while using -
ftp user:password@host
54,266
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...
193,129
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,922
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)
20,180
Posted By inpavan
Havent I already answered the question?..:( ...
Havent I already answered the question?..:(

Or Was the command unsuccessful?
2,747
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,747
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,574
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...
3,004
Posted By inpavan
Sorry LivinFree. probably we replied at the same...
Sorry LivinFree. probably we replied at the same time.
3,004
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')

:(
3,004
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
9,034
Posted By inpavan
Try using 'mail' or /usr/lib/sendmail.
Try using 'mail' or /usr/lib/sendmail.
2,427
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,612
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...
69,672
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...
13,680
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

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