Login or Register to Ask a Question and Join Our Community

Search Results

Search: Posts Made By: ningy
26,393
Posted By ningy
perl -le 'print scalar localtime (time() -...
perl -le 'print scalar localtime (time() - 48*60*60);' |awk '{print $2 ,$3}'
Forum: Red Hat 11-04-2012
2,043
Posted By ningy
redirect your job output to log file and see.. ...
redirect your job output to log file and see..

* * * * * jobname >> logfile 2>&1
4,378
Posted By ningy
How about this : Perl solution :
How about this :



Perl solution :
Forum: Solaris 10-08-2012
962
Posted By ningy
grep net /etc/path_to_inst prtconf -pv...
grep net /etc/path_to_inst

prtconf -pv |grep -i net

Above commands also not showing the remaining NICs??
Forum: Solaris 09-18-2012
11,368
Posted By ningy
without plumbing : devfsadm -v dladm...
without plumbing :

devfsadm -v

dladm show-dev
cat /etc/path_to_inst
2,596
Posted By ningy
i dont think cp has any option to copy like that...
i dont think cp has any option to copy like that directly. As a workaround you could do something like below

to copy except last line :
cat souce_file | sed '$d' > dest_file

to copy except...
2,010
Posted By ningy
top -n 1 | awk '{ if (NR==4) print int($5) }'
top -n 1 | awk '{ if (NR==4) print int($5) }'
2,271
Posted By ningy
in vi editor mode :%s/'//g :%s/-//g
in vi editor mode

:%s/'//g
:%s/-//g
Forum: Red Hat 03-28-2012
1,517
Posted By ningy
echo $mainder |awk -F/ '{gsub($NF,"");print}'...
echo $mainder |awk -F/ '{gsub($NF,"");print}' |sed 's/.$//'
13,673
Posted By ningy
for i in *.sco; do awk -v A=`basename $i .sco` ...
for i in *.sco; do awk -v A=`basename $i .sco` '{print A,$0}' $i; done
Forum: Solaris 01-12-2012
3,735
Posted By ningy
You must bring the slice under solaris volume...
You must bring the slice under solaris volume manager and create soft partitions out of it.
19,942
Posted By ningy
Solution to your 3rd question would be using tee...
Solution to your 3rd question would be using tee command

sort -t: -k4,4, -k3,3 |tee outputfile
1,917
Posted By ningy
-bash-3.2$ cat ori-file line1 line2 line3 ...
-bash-3.2$ cat ori-file
line1
line2
line3
line4
line5
-bash-3.2$ cat input-file
line2
line3

-bash-3.2$ grep -v -f input-file ori-file
line1
line4
line5
Forum: Solaris 06-08-2011
994
Posted By ningy
using a virtual NIC along with NIC in a node is...
using a virtual NIC along with NIC in a node is as good as no ipmp.
Entire purpose of ipmp is defeated in the above case.
904
Posted By ningy
sed '/^.\{5\}$/d' file PLs click the...
sed '/^.\{5\}$/d' file


PLs click the thank button if it works!! :)
1,954
Posted By ningy
long but effective and easy approach!! a=`cat...
long but effective and easy approach!!
a=`cat filename |awk -F"," '{print $8}' |tr "%" " " |sort |tail -1`
b=`cat filename |awk -F"," '{print $8}' |tr "%" " " |awk '{c +=$1}END{print c}'`
e=`cat...
Showing results 1 to 16 of 16

 

Featured Tech Videos