Search Results

Search: Posts Made By: dnam9917
3,010
Posted By dnam9917
jar options..Help..
Hi,

Is there an option with jar command which allows us to copy some class files(already existing,want to override)to a jar file without exploding it.?

Thanks in advance.
1,531
Posted By dnam9917
Perl script - Help me extracting a string
I have input like this :


TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 07-FEB-2012 04:19:45
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:...
2,844
Posted By dnam9917
Thanks Ahamed. It helped... :)
Thanks Ahamed. It helped... :)
2,844
Posted By dnam9917
Help to sort out... Possible use of sort command
I have an input like

4.3.6.66
4.3.6.67
4.3.6.70
4.3.6.25
4.3.6.15
4.3.6.54
4.3.6.44
4.3.6.34
4.3.6.24
4.3.6.14
4.3.6.53
4.3.6.43
4.3.6.49
4.3.6.33
4.3.6.52
4.3.6.19
4.3.6.58...
1,211
Posted By dnam9917
Help me understand the Perl script..
#!/usr/bin/perl
use strict;
use warnings;
print "Demo of array slicing \n";
my @abc="a b c d e f g h i j k l m n o p q r s t u v w x y z";
my @a=@abc[1..$#abc];
my @random=@abc[2,3,4,5];
my...
1,312
Posted By dnam9917
shell type.. /bin/uvalid?
Hi,

I gave a command echo $SHELL --> To find out the shell I'm using, which gave me the below output
echo $SHELL
/bin/uvalid

what does it mean?

Please use code tags...
6,039
Posted By dnam9917
yes, It can be possible, grep the files with the...
yes, It can be possible, grep the files with the "username" from the .history directory.

eg :
cd ~
cd .history
ls -ltr | grep <username> (John_smith's username)


Video tutorial on how to...
2,471
Posted By dnam9917
wget help?
can someone please help in understanding this shell script?

wget --progress=dot:mega --cut-dirs=4 -r -c -nH -np --reject index.html*,icons/*.gif \
...
5,188
Posted By dnam9917
you can try this : cat t1.txt | tr "\'" " " |...
you can try this :
cat t1.txt | tr "\'" " " | cut -d " " -f 1

---------- Post updated at 01:47 AM ---------- Previous update was at 01:46 AM ----------

t1.txt - will be your input file

...
4,604
Posted By dnam9917
try this... cat <inputfile> | cut -d "|" -f 1 |...
try this...
cat <inputfile> | cut -d "|" -f 1 | uniq

Video tutorial on how to use code tags in The UNIX and Linux Forums....
1,193
Posted By dnam9917
How helpful are ssh keys?
Hi frnz,

I work in an environment, where I need to login to multiple UNIX sessions(Always types my password when prompted for)

I heard of ssh keys which provides us a valid authentication and...
15,635
Posted By dnam9917
Try this cat <inpput file> | grep ^[a-z,A-Z] >>...
Try this
cat <inpput file> | grep ^[a-z,A-Z] >> <ouputfile>
2,615
Posted By dnam9917
In that case, i=1 while [ $i -le 100 ] ...
In that case,

i=1
while [ $i -le 100 ]
do
mkdir $i.example.com
cp -pr example $i.example.com # recursively copies all the files and contents
i=`expr $i + 1`
echo " created $i.example.com...
3,105
Posted By dnam9917
you just append an ampersand('&') symbol after...
you just append an ampersand('&') symbol after the script name

eg: <scriptname> &

'&' tells the shell to run the process in the background.

An echo is not needed to my knowledge, because...
2,387
Posted By dnam9917
you can also try this... Pretty easy.. ...
you can also try this...

Pretty easy..
head -4 example.txt >> 1.txt
head -8 example.txt | tail -4 >> 2.txt
head -12 example.txt| tail -4 >> 3.txt

---------- Post updated at 09:45 PM...
2,615
Posted By dnam9917
i=1 while [ $i -le 100 ] do mkdir...
i=1
while [ $i -le 100 ]
do
mkdir $i.example.com
i=`expr $i + 1`
echo " created $i.example.com directory"
done

Use the above script which creates you 100 directories. Run the script, where...
2,300
Posted By dnam9917
try this..
grep Acct <inputlogfile-name>| awk '{print $4}' | cut -f 1 -d "|" >> <outputfile-name>
3,569
Posted By dnam9917
Xterm window,should not prompt for a password?
Hi all,

I have a script that opens a xterm window and will prompt for a password.
My intention is, instead of waiting for a password it should get the password from a file.

How can I make...
2,733
Posted By dnam9917
How can I source my alias?
Hi,

I have created few alias's. I want to source them whenever I login. How can I do this? Can I create some "." file like .profile?

Thanks...
1,180
Posted By dnam9917
How can I use the arrays ?
Hi all,

I have a file test1.txt with the below contents
abc
def
ghj
xyz

I tried printing these values using arrays.

Script tried :
===========
set -A array1 `cat test1.txt`...
11,897
Posted By dnam9917
Best way to learn UNIX and shell Programming
Guys,

What do you think is the best way to learn UNIX and shell scripting?

** I keep on searching tutorials online, where I loose most of my time :(

Let me know the way you learnt the...
1,120
Posted By dnam9917
Hi, df -h . | nawk ' $4~/%/ {print...
Hi,

df -h . | nawk ' $4~/%/ {print substr($4,length($4)-2,length($4-1))}'

nawk - do we have this command? Or its a typo and just simply awk.

Throwing an error when I execute the above.
...
1,120
Posted By dnam9917
How can I extract a string?
Hi all,

This might be a very small question..

df -h . | grep %
Filesystem Size Used Avail Use% Mounted on
4.0G 3.4G 356M 91% /t3appsoftware

How can...
Showing results 1 to 23 of 23

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