Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: dahlia84
2,862
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...
2,862
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
2,862
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...
2,134
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 '{...
694
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...
948
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...
18,698
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....
4,879
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...
4,879
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)
2,588
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...
4,665
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...
7,818
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...
7,818
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"

...
5,009
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!
4,598
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
7,818
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,060
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.
...
1,746
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=" *
...
41,701
Posted By dahlia84
Source:...
Source: softpanorama.org/Tools/Find/find_mini_tutorial.shtml
1,406
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...
1,895
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
4,495
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,100
Posted By dahlia84
echo "0000000120" | awk '{print $1 + 0}'
echo "0000000120" | awk '{print $1 + 0}'
21,354
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,003
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

 

Featured Tech Videos

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