Hi guys,
Just wondering, I will have the interview about the unix job but the important knowledge about :
"Control -m", awk and sed
Do you guys have any idea about what he means by Control -M, it's the name of scripting or what ?
Your soon answer will be much appreciated ...
Hi guys,
I've got the perl code, here it is :
find . | perl –ne‘chomp();rename($_,lc($_))’
I know this code is for rename all the file to lower case recursively but could you guys explain exactly what chomp for ? and "$_" means ??
Thx guys
Hi guys, just wondering about simple question.
I want to remove ??? in some of files. what I did is :
cp awi.xml awi.xml_tmp
cat awi.xml_tmp | sed s/???// > awi.xml
Is there any way to make it one way without copying to awi.xml_tmp first ?
coz I tried :
cat awi.xml | sed s/???// >...
Hi guys,
Here's part of my code which called summary.ksh :
if [$1 == "\."]
then
input = pwd
echo "input =" $input
fi
I want to have the full path directory if the input is "."
so
if I'm at the directory /opt/adoc
when I execute the script, I want the $input = /path/of/directory, the...
Hi guys,
Just wondering about the regex of my if condition...
in $1 is = /input_data/boeing/747
but why my script doesnt match, is there something wrong with my regex (*boeing*) ?
#!/bin/ksh
if [ "$1" = *boeing* ]
then
echo "this is boeing data"
else
echo "no way"
Hi guys,
Can you help me to remove the path that I used to create ?
I used to create path by using this command :
PATH=$PATH:/opt/java
export PATH
and now that directory has been deleted.
If I check echo $PATH, the path is still there.
Do you guys have any idea how to remove the one path...
Hi guys,
I've got real problem. which is all my data which is (file and directory name) in all lower case but I need them in upper case.
So do you guys have any idea to make script to shift the file and directory name from lower case to upper case pls ??
Much appreaciated guys
Hi guys,
Do you have any idea how to minimise my script :
#!/bin/ksh
if [ "$#" != "2" ]
then
echo "usage : sumdisc [data from which vendor "airbus" or "boeing"] [path directory]"
exit 1
fi
if [$1 = "airbus"]
then
cd $2
du -sk */* | awk '{
if ($2 ~ /SGML/){
sum +=...
Hi guys,
I've got the script in awk
Here's part of my script :
I want to add conditional question which in
********************************************************
END {
is this b or a ?
if its a, doing below ...
total = 6*sum
semua = total + jumlah
printf "TOTAL SGML FILES IS = %s \n...
Hi guys,
I tried to transfer file using scp, but it doesn't work. But I can do ssh for both server.
the server name is :
syduwlp12 and syduwls12-tmp
file name is : test.ksh
Here's the command I typed :
scp test.ksh adoc@syduwlp12:/opt/adoc/test.ksh
anything wrong with my code ??
Hi guys,
I wanna install gcc in the server for my login. Do I need root access or not ?
And could you guys give the idea about how to install it ? I've already downloaded the gcc-3.3.tar.gz, but after I extracted it, they're many files that I dont think I'll need it. There's no README file or...
Hi guys,
Here's another question as I'm dealing with different situation all the time.
I was running my production program which meant to be around 17 hrs, and when it reached half way through or couples of hours (not sure), it stopped/ has been cut off.
And I asked to my senior, he said...
Hi guys,
do you know how to protect my shell script? by putting password or encript it or whatsoever, so any other people can't change my script.
THX GUYS,
Hi guys,
Just wondering whether I can install solaris package installer version without using root access?
Because I have to ask to 3rd party company which is our IT support company to do that for me if I need root access.
THX
Hi guys,
I have two harden servers which are serverA and serverB, and one configuration server which is serverC.
I can telnet/ssh from serverC to both (serverA or serverB), but I can't telnet/ssh from serverA -> serverB, or the other way around.
and I need to transfer the data from serverA to...
Hi guys, do you know best software to tar windows file?
I've tried cygwin, but after I tarred in cygwin and I tried to extract in UNIX server. It said permission denied, I already changed the mode. But it didnt help..
any solution ?
THX GUYS
Hi guys,
I'm trying to transfer data from one unix server to harden server,
I couldnt transfer using ftp, is there anyway that I can transfer file to this harden server?
THX GUYS
Hi guys,
probably this is basic question for some of you, but I was just wondering about this.
what command to see the list of directory only, I've tried :
adoc syducmp02 ~/cobaajaskrg> ls -l
total 4
drwxrwxr-x 2 adoc adoc 512 Mar 31 15:24 knpdir/
-rwxrwxr-x 1 adoc adoc...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.