Hello to all,
May be some expert could help me.
I have the below awk script that works correctly in Cygwin:
Code:
awk -F\" 'FNR==NR && FNR>1 {gsub(",","",$5); N[$2]=$5;next}
$10 in N && FNR>1 {
Y[$10]=$8
Z[$10]=(N[$10]==$8)?"Yes:"No";
}
END{
for(k in N) {print k,Y[k],N[k],Z[k]?Z[k]:"Not_Found"}
}' file2 file1
But when
I have a ksh script that must work on both linux and solaris. I'm trying to color the output of specific commands.
Hello to all,
Please some awk expert could help me.
If I want to run an awk script as "command" give it inputs externally I do:
Script.sh
Code:
Input="$1" # "$1" is the input that will be given to the script
Output=${Input%.*}.csv
awk '{$1=$1}1' $Input | awk '{...}' > $Output
and I run the script like this:
Code:
.
[Using Solaris 10]
Ok here's the situation, i need to create a script in terminal that checks that the default umask is set to 025. If it is indeed set to 025, the script should echo "Exception: No"
If it is not set to 025, the script should echo "Exception: Yes"
How do i go about doing it?
I have a script on a server-A
Script-A
#!/bin/bash -l
echo "script-A.sh" | change-environment.sh
When I ssh onto server-A and execute it, it works fine.
However, when I
ssh user@server-A ./script-A.sh
Script-A executes, but throws an undefined variable error in change-environment.sh.
Hi,
I have the code below as
Code:
cat <filename> | tr '~' '\n' | sed '/^$/ d' | sed "s/*/|/g" > <filename>
awk -F\| -vt=`date +%m%d%y%H%M%S%s` '$1=="ST",$1=="SE"{if($1=="ST"){close(f);f="214_edifile_"t"" ++i} ; $1=$1; print>f}' OFS=\| <filename>
This script replaces some characters and extracts the records
I know about standard "ps ..|grep ..
Hello All,
I need help here with a script. I have a script here which generates a html output with set of commands and is working fine.
Now i want to add a new command/function which would run on all the remote blades and output should be included in this html file.
I have a script similar following one:
#!/usr/bin/sh
var="ABC"
if [ $var == "ABC" ]
then
echo True
else
echo False
fi
Above code does not work in Solaris Sparc and Solaris X64. It is showing == undefined.
Above code works fine If I replace == with =.