Search Results

Search: Posts Made By: raghu.iv85
1,591
Posted By raghu.iv85
wow.... got good stuff to learn in sed... ...
wow.... got good stuff to learn in sed...

Thank you very much Chubler.....
1,591
Posted By raghu.iv85
Thanks much Akshay/Chubler for your solution.. ...
Thanks much Akshay/Chubler for your solution..

Could this be done with any unix command except AWK... because my team is not much familiar with AWK (in case of any future modifications)?

Thanks...
1,591
Posted By raghu.iv85
Hi Yoda, Thanks much for your reply. ...
Hi Yoda,

Thanks much for your reply.

Yeah, I tried in the same way only.... But there should be an accurate way for replacing the dates only.

If you notice the file content contains another...
1,591
Posted By raghu.iv85
Replacing the Dates in a file
Hello Gurus,

I'm beginner in Shell scripting.
I got a requirement to write a script.

I have a file with below (similar) content



If you can observe above content, there are many date...
1,554
Posted By raghu.iv85
Thank you so much to both... Those urls are...
Thank you so much to both...

Those urls are having valuable info for me...

Thanks again for the explanation...
1,554
Posted By raghu.iv85
Variable definition
Hi all,

I'm bit new to the advanced bash shell scripting.

When I'm looking at some of the existing code in my organization, got confused with a few variable definings.

For ex:
...
1,307
Posted By raghu.iv85
Thanks everybody... All are very helpful...
Thanks everybody...

All are very helpful examples.... But i'm gonna use Scrutinizer's second example as it is bit extendable for me in my requirement.

Thanks again for all your valuable...
1,307
Posted By raghu.iv85
operators in if loop
Hi all,

I have a variable which is having the value like below,

$ echo ${p}
8 15 22 30
$

My requirement is that the variable should return true when it contains only one number like below,...
14,349
Posted By raghu.iv85
thanks much for you reply.. It worked.. But...
thanks much for you reply..

It worked.. But it is reading the values by spaces....

For Ex:
$ Cat file1
word1 word2 word3
word5 word6
$

In the above scenario, variable taking the values...
14,349
Posted By raghu.iv85
reading the values from a file in C Shell for loop
Hi All,

I need small help on for loop syntax in C shell.

How can we read the values from a file (line by line) through C shell loop.

For Ex:
$Cat file1
data1
data2
data3
data4
$

I...
3,682
Posted By raghu.iv85
thanks much for the suggestion... It worked.... :)
thanks much for the suggestion... It worked.... :)
3,682
Posted By raghu.iv85
bash-2.03$ cat sample.csv ...
bash-2.03$ cat sample.csv
Field1,Field2,Field3,Field4
860440512,844284992,16155520,99%
860440512,844284992,16155520,94%
860440512,844284992,16155520,100%
860440512,844284992,16155520,99%...
3,682
Posted By raghu.iv85
filtering a numeric value which has '%' using awk
Hello Gurus,

I have a requirement where I have to filter a value from some field which has 99% or greater than '99%'..
For ex:
The Date (file -- sample.csv) will be like below
...
5,082
Posted By raghu.iv85
thanks all for all of your updates on this. ...
thanks all for all of your updates on this.

Can it be possible to export the variable (not function) to the remoote location...?

For ex: I've defined a variable and exported it... can i use...
5,082
Posted By raghu.iv85
I tried the below , but it did not export it to...
I tried the below , but it did not export it to entire session...


export -f fname


Pls suggest...

Thanks in advance..

---------- Post updated at 11:16 PM ---------- Previous update was...
5,082
Posted By raghu.iv85
How to export the function in ssh
Hi Gurus,

I have a requirment to use a function created in a script in another server within the script. Below is the sample script for reference

#/bin/bash

logs_gen () {
...
11,330
Posted By raghu.iv85
when i use `wget --no-check-certificate...
when i use `wget --no-check-certificate https://int.net/intranet/index.htm `, getting below, but it's still having the same issue... as someone suggested above, it's something with port setting only....
1,365
Posted By raghu.iv85
my value will be more than 3 lines like below ...
my value will be more than 3 lines like below




Sometimes it may be more than 10 lines also.

Pls suggest the way to achieve this..

Thanks in advance.

Regards,
VRN
11,330
Posted By raghu.iv85
URL which i used to test is correct only ...
URL which i used to test is correct only

could anyone let me know what is the exact reason for this error? and how to fix it pls?

Thanks

Regards,
VRN
1,365
Posted By raghu.iv85
Variable length
Hi All,

I have an issue in my script.

Once we fired the script, it will ask for some input to execute further. Inside the script, I'm taking that value into a variable. But it's taking some...
11,330
Posted By raghu.iv85
Issues with wget
Hi Gurus,

I'm using wget cmd for the first time. I need to get the URL content in a unix file. But getting below connection error while using the command.


-sh-3.2$ wget...
2,373
Posted By raghu.iv85
HI, Thank u vm for your reply.. Here the...
HI,
Thank u vm for your reply..

Here the sudo command is working fine for sometimes...
The main issue in this script is: Once it's changed to sudo account 'villin', it's unable to set the...
2,373
Posted By raghu.iv85
Issue in passing passwd to login into a sudo account
Hi Gurus,

I have small issue...
I used to pass the passwd for sudo commands like below,


gzcat ~/passwd.gz | sudo su - <villin> >> eof
------
-----
------
eof


And it was able to...
Forum: Linux 02-03-2011
55,417
Posted By raghu.iv85
similar command of ptree in linux
Hello guys,

Is there any command to check the all child processes of a process like `ptree`?
ptree is not working in Linux..

Regards,
Raghu
3,322
Posted By raghu.iv85
tail -f <log_file> the above will give you...
tail -f <log_file>

the above will give you the log latest updates. If it shows only last 10 lines and the log is not moving then no script is writing into this file.
Showing results 1 to 25 of 74

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