Search Results

Search: Posts Made By: thomasraj87
2,648
Posted By thomasraj87
Thanks Scrutinizer. It works perfectly.
Thanks Scrutinizer. It works perfectly.
2,648
Posted By thomasraj87
How to grep/awk only particular field?
I have a file like this. I want to filter values for only the particular day.

Source file:

# cat /tmp/1
Name Mon Tue Wed Thu Fri Sat Sun
A Y
B Y
C Y
D ...
1,515
Posted By thomasraj87
Yes.. But this also works... You can ignore...
Yes.. But this also works... You can ignore whatever i have given inside fun().. Becoz in my original script it will connect to db and fetch some details. It is hanging for some dbs due to sever...
1,515
Posted By thomasraj87
How to solve hang issue in script?
i have one function block in the beginning of my script and there are some commands inside that function which will perform some operations.

And i am invoking that function from my main script by...
3,815
Posted By thomasraj87
@vgersh99, Will it kill the existing process that...
@vgersh99, Will it kill the existing process that were running the script already?

@Corona688, According to my script i have to redirect the various output to different files, so i have given the...
3,815
Posted By thomasraj87
Thanks Scrutinizer.. But sometimes few...
Thanks Scrutinizer..

But sometimes few persons are giving CTRL + Z to run it in background and they are forgetting to let it run in bg. At that time if another person run the same script again...
3,815
Posted By thomasraj87
How to check if the script is already running?
I have one shell script in NAS shared location. Since NAS is mounted in many servers, script can be run from any of those servers.

I want to make sure if the script is already running, it should...
5,005
Posted By thomasraj87
How to replace multiple "&nbsp;" entry with in <td> tag into single entry using sed?
I have the input file like this.

Input file: 12.txt

1) There are one or more than one <tr> tags in same line.
2) Some tr tags may have one <td> or more tna one <td> tags within it.
3) Few...
1,931
Posted By thomasraj87
Scrutinizer, Your code is perfectly working...
Scrutinizer,

Your code is perfectly working irrespective of number of <tr> tags in a line.

R. Singh,

Code given by you is inserting the <td> tags from 1st file to 2nd file. But it is...
1,931
Posted By thomasraj87
Dear R. Singh, It works well and getting the...
Dear R. Singh,
It works well and getting the desired output. In some very rare case, my sql is giving more than one <tr> tag as output in the same line as given below.

For ex: file2
...
1,931
Posted By thomasraj87
Thanks for the solution given. Its works fine....
Thanks for the solution given. Its works fine. But my exact requirement is, i am having one <td> data in one file and i want to inset that into another file within the <tr> tag. Could you please help...
1,931
Posted By thomasraj87
How to insert the content of a file into another file?
I have the two files. And i want the each line of first file to be inserted in the beginning of second file each line and the final output should be like this. Could anyone help me on this?

cat...
1,177
Posted By thomasraj87
How to replace some specific words from file?
I have the file like this.

cat 123.txt
<p> <table border='1' width='90%' align='center' summary='Script output'> <tr><td>text </td> </tr> </table> </p>
I want to replace some tags and want the...
10,778
Posted By thomasraj87
How to ping multiple ip addresses?
Hi,

I have ip addresses from 192.168.0.1 to 192.168.0.10.

I have to ping those series of IP address in single command? Which command i can use?
1,347
Posted By thomasraj87
Thanks kumar... Its working fine... ...
Thanks kumar...

Its working fine...

But can i use my script to get the desired output by doing any change in that? i.e (i.e same flow and for loop)
1,347
Posted By thomasraj87
Issue while using echo command
Hi,
I have below shell script..
$ cat /tmp/1.txt
NAME-HOST-APPLIED TIME-DATE
$ cat /tmp/1.sh
#!/bin/ksh
echo "<html><table border size=1>" > /tmp/mail.html
for i in `cat /tmp/1.txt`
do...
8,194
Posted By thomasraj87
Thanks for ur reply RudiC .... I will try...
Thanks for ur reply RudiC ....

I will try with assigning IP like '192.168.8.111'... But if i assign the IP address manually, it asks to enter the values of 'Gateway & Primary DNS' in...
8,194
Posted By thomasraj87
"Network error: No route to host" While connecting guest RHEL4 using putty
Hi,

I have installed RHEL4 using vmware workstation..

Host OS: Windows XP
Guest OS: RHEL4

Pls refer step 17 & 18 in below link...
ORACLE-BASE - Red Hat Enterprise Linux 4 and Centos 4...
4,413
Posted By thomasraj87
Hi, That is not working. # ls -lt * |...
Hi,

That is not working.

# ls -lt * | tail -n +5
usage: tail [+/-[n][lbc][f]] [file]
tail [+/-[n][l][r|f]] [file]
#
4,413
Posted By thomasraj87
Alister, I read the head and tail man......
Alister,

I read the head and tail man... But i couldn't get how to get the desired o/p as i expected. Can u help...
4,413
Posted By thomasraj87
Thanks for ur reply. But in my case it...
Thanks for ur reply.

But in my case it should list out all the files other than first 5 latest files. How can i list.. Because i can not predict the no of files in my directory.. Files will be...
4,413
Posted By thomasraj87
To list old 5 files
Hi,

I have the files as listed below in one directory. From this I want to list out only the 5 files whch are too old.
#cd /tmp/
#ls -ltr *
-rwxrwxrwx 1 root root 24243455 Aug 18 21:02...
1,060
Posted By thomasraj87
Issue in Untaring the Tar files Script
I have written a below script to untar the tar files from /tmp/tarfiles/ directory.

# cat /tmp/tarfiles/script.sh

#!/bin/sh
cd /tmp/tarfiles/
TFL="tar_files_list.txt"...
3,521
Posted By thomasraj87
Thanks itkamaraj, Suppose if i want to get...
Thanks itkamaraj,

Suppose if i want to get the o/p as 155170816-75767 meas how can i do in single command.

# cat test.txt
155170816-(75767Mb)

O/P must be

155170816-75767
3,521
Posted By thomasraj87
To replace '(' and ')' symbol using tr or sed
I am trying to replace '(' and ')' symbol with nul text using tr command. But i am not able to get the expected output . Please help

# cat test.txt
155170816-(75767Mb)

# tr '(' '' < test.txt...
Showing results 1 to 25 of 37

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