Search Results

Search: Posts Made By: King Nothing
3,387
Posted By King Nothing
Sorry but nothing is happening after I tried ur...
Sorry but nothing is happening after I tried ur command ... am I going wrong somewhere?
3,387
Posted By King Nothing
sed regexp
Hi,
I am not that good with reg exp and sed. But I was just looking at something the other day and came across a situation.
When I ran the below command:

echo "123 word" | sed 's/[0-9]*/(&)/'
...
18,274
Posted By King Nothing
Exporting variables from subshell to parent shell
Hi,
I was trying to do something where I would be able to export one local variable in a telnet subshell to its parent shell.

I found something like this over here...
3,126
Posted By King Nothing
Thanks a lot for your suggestions :).
Thanks a lot for your suggestions :).
3,126
Posted By King Nothing
Perl Redirection
Hi,
I have a Perl script that finds some files based on some criteria and then it processes the file contents using some logic.
Extract:

print "Started ... ";
my $command = "<unix command>";...
5,521
Posted By King Nothing
Double square brackets question
Hi,
I just came across an interesting shell script syntax like the one below:

[[ $mode = "INTERACTIVE" ]] && (trap 'rm -rf ${WORK_DIR}/*.$$; echo "\n\nInterrupted !!\n\n"; exit 4' 1 2 3 15)
...
4,348
Posted By King Nothing
File Line Count
Hi,
Came across a weird problem today.
I was just trying to write this small script which would read the number of lines in a file. Depending on the count some further processing would be done. I...
5,256
Posted By King Nothing
Perl grep array against array
Hi,
Is there any way I can grep an array against another array?

Basically here's what I need to do.

There will be an array containing some fixed texts and I have to check whether some files...
14,600
Posted By King Nothing
Thanks man :).
Thanks man :).
14,600
Posted By King Nothing
Perl index function ignore case
Hi,
Is there any way of ignoring case in Perl's index function?

Thanks.
Forum: Solaris 08-07-2009
4,382
Posted By King Nothing
Thanks mate. But the situation that I am in right...
Thanks mate. But the situation that I am in right now is quite horrific. Just having a decent amount of experience in shell and Perl scripting and some other programming languages like Java doesnt...
Forum: Solaris 08-03-2009
4,382
Posted By King Nothing
Thanks Bluridge. I have got some sort of...
Thanks Bluridge. I have got some sort of preliminary experience on this. But I am quite interested to pursue this as a career. At this moment, since my career is headed nowhere, I thought of going...
Forum: Solaris 07-29-2009
4,382
Posted By King Nothing
I wish that I could get such an opportunity of...
I wish that I could get such an opportunity of core sys admin. But those chances look quite bleak. So I was thinking of going for it all alone.
Thanks a lot for your encouraging words :).
Forum: Solaris 07-29-2009
4,382
Posted By King Nothing
Sys Admin Certification
Hi,
I am planning to get certified in Solaris 10 for my own interest.
Although I don't have much experience in sys admin, I have got some background in scripting and some sort of beginner level...
2,137
Posted By King Nothing
Run a command in bg simultaneously with
Hi,
I want to run the command below in the background:

tail -f file.txt | grep "pattern"

The file file.txt will start getting its contents written after this command has started getting run....
1,298
Posted By King Nothing
Ummm ... sorry but I still could not find an...
Ummm ... sorry but I still could not find an explanation for these #'s ... Could someone please explain it to me?
3,520
Posted By King Nothing
Apologies for not being able to make myself clear...
Apologies for not being able to make myself clear at first.
The file that I am trying to read has got lines like


<start>blahblahblah<tag1>gibberish</tag1><tag2>more of it </tag2>...
3,520
Posted By King Nothing
Perl grep
OK here's the situation:
I have got these lines which I have got to parse.
If the line contains a particular string and any element from a previously defined array I need to take that particular...
1,298
Posted By King Nothing
Thanks a lot for ur replies. But I have one more...
Thanks a lot for ur replies. But I have one more doubt.
Are the #'s being used as delimiters here? If so then what is the purpose of ## at the end of it all?
1,298
Posted By King Nothing
Perl regex question
$var=~ s#(\n?<a>.*?</a>\n)##s
$pat=$1

Recently i came across this bit of a code.
Can someone please explain the function of these two line?
9,862
Posted By King Nothing
I tried without nohup and & altogether. But still...
I tried without nohup and & altogether. But still the script did not execute for some reason completely unknown to me.
I can try to read something in the shell script to determine that the perl...
9,862
Posted By King Nothing
ssh is not an option on these servers :( ...
ssh is not an option on these servers :( ...
9,862
Posted By King Nothing
Thanks for all ur help Colemar. Ideally what I...
Thanks for all ur help Colemar.
Ideally what I would want is for the perl script to run there and then. You said that I need to get a signal from nohup in order to understand that the script is...
9,862
Posted By King Nothing
Run Script With nohup Command On A Different Server
Hi,
I want to run a particular script present in a different server.
At the moment I am trying to run it like this:

(sleep 3; echo $USERID; sleep 1; echo $PASSWORD ; sleep 1 ; sleep 1 ;
echo...
18,574
Posted By King Nothing
Perl parse string to time
Hi,
I have got this value 18:21:23.330 in one of my variables.
Now I need to parse this time to something.
And then I have to compare it with 2 times, let's say, 15:00 hrs to 23:00 hrs.
Can...
Showing results 1 to 25 of 70

 

Featured Tech Videos

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