lol,
I know about that guys, are you guys sure he's not talking about some scripting or some unix language ?
coz i thought it's something like scripting name, lol.
So, it's definitely not scripting name or language name right ?
Thx guys
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,
Thx for the input, yeah p5wizard is right.
I want to edit the file in place because this file is part of my application file. If I change it or copy it to another file first, I have to stop and restart the application. That's what I did in my staging server but in my production server...
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 PHV,
Thanks for your reply, but
It didnt change anything yet :(
Here's what happened
adoc syducmp02 ~> echo ",s/???//g\nw\nq" | ed -s test
?
adoc syducmp02 ~>
and I checked test file, it doesn't change anything.
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...
I did PHV,
but without SH at the back, coz it generated error.
and they print out all the command such as :
mv test TEST
mv Makanan MAKANAN
I'm happy about the result and I want to execute it now ?? how ??
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 +=...
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.