Search Results

Search: Posts Made By: dahlia84
3,982
Posted By dahlia84
My bad. I shall give this one last try. I do not...
My bad. I shall give this one last try. I do not want to waste you time though.

echo `(command1; command2 )` > filename.txt
Try using echo with -n option as well because that is the option which...
3,982
Posted By dahlia84
Oh sorry, I am not on a Unix machine now but can...
Oh sorry, I am not on a Unix machine now but can you please try this and tell me if it works?

(command1; command2 )> filename.txt
3,982
Posted By dahlia84
I am not sure if this would help you but you can...
I am not sure if this would help you but you can try:

command1 > file1.txt
will write the output of command1 to file1.txt

Now, command2 >> file1.txt

will append command2 output to the...
3,201
Posted By dahlia84
I am not sure what you mean by This is one...
I am not sure what you mean by

This is one of the ways to kill all sessions for a specific user (replace username with the actual user name):

kill -9 `ps -u username | grep -v PID | awk '{...
849
Posted By dahlia84
Doubt on RegEx
Friends,

I have a silly doubt:

Assume that I have a line like this

Heading: Value1; SomeText1 (a, b, c), Value 2; SomeText2 (d, e, f)

I wanted to remove all semicolon and remove...
1,287
Posted By dahlia84
Security for applets files inside a folder
Friends

I have a directory structure /a/b/c/applets/ This directory has .java, .class and other applet files. I gave the applets folder 755 permission because these applets are displayed at...
22,251
Posted By dahlia84
JavaScript to get Timezone (IST, EST, etc)
Friends,

I am trying to write a Javascript to get the local timezone (not UTC+5.30, etc but exactly like IST, PST, etc). I been trying for two days and I am finally here to ask for some pointers....
5,306
Posted By dahlia84
oh no! My point was not to copy the code which I...
oh no! My point was not to copy the code which I quoted. That was just an example.

I was about to say that - may be something like default_stdin_fh => $def_in needs to be set in your code next to...
5,306
Posted By dahlia84
Can you try something like this? Source:...
Can you try something like this? Source: Net::OpenSSH (http://kobesearch.cpan.org/htdocs/Net-OpenSSH/Net/OpenSSH.html)
3,018
Posted By dahlia84
To achive this, you need to know 1. How to...
To achive this, you need to know

1. How to read from a file using perl (search google for read a file in perl)
2. How to tell if a file exists in Perl (Check...
5,122
Posted By dahlia84
Anyone here use Clearcase command from shell?
I am coding a korn shell script to automate certain things. Creating a baseline is one of them where I got stuck.

I google'd and found the available options of using mkbl command.

Inside my...
9,411
Posted By dahlia84
I am using this... This did the trick. ...
I am using this... This did the trick.

tmp=$(
while IFS="|" read x x desc; do
echo "$desc"
done < infile
)

rbatte1 - you may even call me dumb. I am a noob in awk and sed. I need to...
9,411
Posted By dahlia84
Thanks guys! I wonder why the same logic...
Thanks guys!

I wonder why the same logic does not work here.


#tmp=$(echo "$tmp" "\n" $(echo $line|cut -d '|' -f 3))
tmp=$(printf "$tmp \n" $(echo $line|cut -d '|' -f 3))
echo "$tmp"

...
7,037
Posted By dahlia84
Should export $var=$val # does not work ...
Should

export $var=$val # does not work

not be

export var=$val # does not work

Correct me if I am wrong. I am learning as well!
5,094
Posted By dahlia84
I am not sure if I get your question. Are you...
I am not sure if I get your question. Are you talking about leading white spaces?

IFS might just be what you are after. Check out
9,411
Posted By dahlia84
[SOLVED] \n in ksh using echo & printf
#!/usr/bin/ksh

var1="Hi World"
var2="Morning"
var3=$(echo "$var1" \n "$var2")
echo $var3
var3=$(printf "$var1 \n $var2")
echo $var3



Output



Any way to get


in my $var3 ?
1,226
Posted By dahlia84
Web Automation in Perl/Ksh with NO additional modules
I would like to automate form filling in a remote way... i mean in the background. That form consists of 3 pages (need to be traversed by clicking on a "next" button). Form uses JavaScript as well.
...
2,507
Posted By dahlia84
Finding a string inside A Tag
I have umpteen number of files containing HTML A tags in the below format



or



I want to find all the lines that contain the word Login=

I used this command

grep "Login=" *
...
47,364
Posted By dahlia84
Source:...
Source: softpanorama.org/Tools/Find/find_mini_tutorial.shtml
1,772
Posted By dahlia84
Do u have a specific code that is not working? Or...
Do u have a specific code that is not working? Or in general if u want some sample code on how to open files from shell scripts then please

#!/bin/ksh
for values in `cat a.txt`
do
echo...
2,087
Posted By dahlia84
You mean virus programming using shell script? I...
You mean virus programming using shell script? I have done one using C though. You can google it aswell
5,006
Posted By dahlia84
if loop? I have never heard of if "loops". Do you...
if loop? I have never heard of if "loops". Do you mean how to close multiple if conditions?

EDIT: If u mean the how to close if conditions then use fi for every if pair
3,514
Posted By dahlia84
echo "0000000120" | awk '{print $1 + 0}'
echo "0000000120" | awk '{print $1 + 0}'
24,324
Posted By dahlia84
Does this help you? #!/usr/bin/perl use...
Does this help you?

#!/usr/bin/perl

use strict;
use warnings;

open my $pipe, "-|", "/usr/bin/tail", "-f", "./SampleLog.log" or die "could not start tail on SampleLog.log: $!";
print while...
2,395
Posted By dahlia84
I have heard people telling "libumem" can be used...
I have heard people telling "libumem" can be used with mdb to find leaks. Never used it though.
Showing results 1 to 25 of 49

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