Search Results

Search: Posts Made By: mahish20
17,873
Posted By mahish20
thanks for your help anyway $ type date ...
thanks for your help anyway

$ type date
date is /bin/date
17,873
Posted By mahish20
Please find the details you have asked for: ...
Please find the details you have asked for:

1)

> test -t 1 && echo "ok: is terminal"
ok: is terminal


2) Nothing defined on $ENV

4)

> type ksh
ksh is hashed (/bin/ksh)
17,873
Posted By mahish20
OS version is "Red Hat Enterprise Linux Server...
OS version is "Red Hat Enterprise Linux Server release 5.10" . Thank you
17,873
Posted By mahish20
Write to 1 failed [No space left on device]
I am getting error in a shell script having a simple date command.
Error is " write to 1 failed [No space left on device] ".
We saw that /tmp folder was 100% full. When we cleared some space in...
8,525
Posted By mahish20
Account is locked or login administratively denied
Hi,

When I am trying to do ssh to a server it shows below error.
Key setup is all good and it used to work well few days back. Now suddenly I am getting this error.


ssh -i <private_key>...
1,741
Posted By mahish20
Delete between two words
Hi,

I wanted to delete data between two words.

Input:


I read gihoihsahkjlk write goal hard read hsakdjhkh write work read hlkhlkhlkh write


Desired Output:


I write goal...
1,905
Posted By mahish20
Appreciate your help on this. But the solution...
Appreciate your help on this.
But the solution given by you works for ows_Body= , but dont work for ows_Title.

Whatever the search element I give.. ows_Body or ows_Title, it should delete it and...
1,905
Posted By mahish20
Yin, I should be able to delete any...
Yin,

I should be able to delete any attribute and its content from the below example.

Input:

<xmlfile> ows_Body="Hi All" ows_Title="Title: Execution of Unix" ows_Author="krishna"...
1,905
Posted By mahish20
Kurumi & Yin, The above commands is again...
Kurumi & Yin,

The above commands is again giving the same output as below:


xmlfile> All" ows_Title="Title: Execution of Unix" ows_Author="krishna" </xmlfile>


But the desired output...
1,905
Posted By mahish20
Hi Franklin, Thanks for the reply. It...
Hi Franklin,

Thanks for the reply. It worked for the input given by me in the orginal post. But if I have 'space' in the data of the attributes its failing.

Input:

<xmlfile> All"...
1,905
Posted By mahish20
Finding a pattern
Hi,

I have the below content in file:


<xmlfile> ows_Body="Hi" ows_Title="Title" ows_Author="krishna" </xmlfile>



I wanted to remove ows_Body content from the file.

I am using...
3,300
Posted By mahish20
Yes its always the comments field that comes in...
Yes its always the comments field that comes in multiple lines
3,300
Posted By mahish20
Here is the out of the command "sed -n l" ...
Here is the out of the command "sed -n l"



Id, Name, Location, Comments, Dept$
2, John, US, I am from US.$
I live in NC.$
I am working on Unix, Finance$
3, Jack, UK, I am from UK.$
I...
3,300
Posted By mahish20
Removal of carriage returns from a comma delimited file
Hi,

I have a file which is having some carriage return in one of the field for which single line is coming in multiple lines.

I want to combine all those multiple lines of that field into one...
3,416
Posted By mahish20
Here is a sample code for connecting to Oracle...
Here is a sample code for connecting to Oracle from unix...
Try modifying your script accordingly. Problem could be because you have not used SET commands inside the script

flag=`sqlplus...
67,225
Posted By mahish20
can you try if this works? in the above commnds...
can you try if this works?
in the above commnds mentioned instead of using \t enter <tab> directly
sed 's/<space>/<tab>/g' filename
6,915
Posted By mahish20
You can use "cut" command: If the file is fixed...
You can use "cut" command:
If the file is fixed width cut -c
if its a delimited file cut -d
you can find more about cut command in man pages.
2,446
Posted By mahish20
`echo $line|grep "string"` what are you trying...
`echo $line|grep "string"`
what are you trying to check here?
the above command will return a value. Its not a condition.
Are you trying to check " if $line has value string or $var equal to 1"...
5,107
Posted By mahish20
You can use 'at' command make those commands run...
You can use 'at' command make those commands run at the same time.

for example:

$ echo "unix" > file1 | at 03:45

$ echo "unix2" > file2 | at 03:45

this will run the above commands at...
6,431
Posted By mahish20
How to increase the maximum record length
Hi,

I need to create a file of record length more than 300 characters.
But in my unix box, i am able to create a file only with a maximum of 256 characters per record.

Is there anyway i can...
1,539
Posted By mahish20
hi era, that was a very good solution... can...
hi era,
that was a very good solution...
can u tell me if that works if the file is comma delimited.. or any other delimiter is used other than space.
can u tell me how to do if it is comma...
1,539
Posted By mahish20
try out this
Hi,

try out the below script:

Assumtion:
If your file is /home/test.txt and contents of the file are:

/home/test test1
/home/test test2

like

dirname filename

The below...
Showing results 1 to 22 of 22

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