Search Results

Search: Posts Made By: swat
3,380
Posted By swat
Insert character in the line
Hi All,

I have below type file.

abc|asd|pqr|2|2|2
asc|qwe|scf|5|4|4

Pipe location and count is dynamic and coming from a variable.
I want to change it to below files.
(chnage the first...
1,883
Posted By swat
Variable inside a variable
Hi,
here is the problem description...

X=1
var${x}=abc
echo ${var${x}}

It is not working...:mad:
Is there any solution..


Thanks,
Swat
6,666
Posted By swat
I will suggest you to have a subject is a...
I will suggest you to have a subject is a variable and then use that variable in mailx command.

I hope this will work..

Thanks,
swat
10,594
Posted By swat
How to know owner of a file without ls and find command
How to know owner of a file without ls and find command :p
5,153
Posted By swat
use du command for both the files and then compare
use du command for both the files and then compare
15,844
Posted By swat
try to use typeset in script... I think it will...
try to use typeset in script...
I think it will help you...
man typeset
3,957
Posted By swat
Ignore a) b) c) d) and try
Ignore

a)
b)
c)
d)

and try
3,723
Posted By swat
you can use the concept of directory exist or...
you can use the concept of directory exist or not...

like when a pen drive will be connected to your system one specific directry will be mounted..

you can create one file watcher for the...
29,461
Posted By swat
you can use sudo for that... but there might be...
you can use sudo for that...
but there might be security constraints..
4,102
Posted By swat
You can use test operator. like :D if...
You can use test operator.
like
:D

if [[ -f /tmp/filename]]; then
echo " file Exists"
else
touch /tmp/filename
chmod 777 /tmp/filename
fi
9,540
Posted By swat
I think it is not possible If any one knows then...
I think it is not possible If any one knows then please reply
:mad::eek:
7,058
Posted By swat
Bettr to use scp utility
Bettr to use scp utility
25,265
Posted By swat
Hi all My requirement is to remove ^L Character...
Hi all My requirement is to remove ^L Character by Newline and 1

x^L is the input and output shoud be
x
1
23,986
Posted By swat
Sorting in unix using column number
Hi All,

Can anyone tell me how to sort data in a file using the “sort” command? Note that the records in the data file are not separated into fields. I know only the column positions of the data...
4,869
Posted By swat
Ya porter you are right... Better to use...
Ya porter you are right...
Better to use chmod....coz hiding file using . is not good solution ....


Thanks,
SWatantra
Forum: AIX 10-20-2007
12,992
Posted By swat
you could use tr command for deleting ctrl+M...
you could use tr command for deleting ctrl+M characters .
use man tr you will get the solution.

thanks,
swatantra
Forum: Solaris 10-19-2007
6,429
Posted By swat
You can use ftppwd command This command helps for...
You can use ftppwd command This command helps for getting the password from the server.
Usually It is not good practice to hardcode password in the script.
You can explore the ways of using ftppwd...
4,088
Posted By swat
Yogesh.... I want to save that value in a...
Yogesh....
I want to save that value in a variable as i am deleting the files on that server for that date.
rm -f file$TODAY_DATE.dat


Thanks,
Swat
4,088
Posted By swat
How to get date from other server
hi all,
My script :D is like this

ssh user@SERVER <<EOF
TODAY_DATE=`date '+%Y%m%d'`
echo $TODAY_DATE
EOF

but this variable have NULL value.


can any one help me how to resolve this?
...
102,353
Posted By swat
#!/bin/ksh export...
#!/bin/ksh
export CLASSPATH=/opt/SBM:/opt:$CLASSPATH

above is script named hi.sh
#sh hi.sh
hi.sh: CLASSPATH=/opt/SBM:/opt:: is not an identifier

now tell me the reason of this error... I am...
102,353
Posted By swat
testCP.sh: TEST=:/opt/SBM:/opt: is not an...
testCP.sh: TEST=:/opt/SBM:/opt: is not an identifier
got this error
:mad:
102,353
Posted By swat
No yaar its still giving problem
No yaar its still giving problem
102,353
Posted By swat
Getting is not an identifier error
Hi all,
I am getting this error while setting CLASSPTH using a script
my script is

#!bin/ksh
export CLASSPATH=$CLASSPATH:<some path>:<some path>

If i do this thing on shell prompt...
10,292
Posted By swat
better to use winscp which uses the sftp and scp...
better to use winscp which uses the sftp and scp protocols to transfer the data.
:rolleyes:
Showing results 1 to 24 of 24

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