Search Results

Search: Posts Made By: ningy
28,122
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,240
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
5,322
Posted By ningy
How about this : Perl solution :
How about this :



Perl solution :
Forum: Solaris 10-08-2012
1,122
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
12,895
Posted By ningy
without plumbing : devfsadm -v dladm...
without plumbing :

devfsadm -v

dladm show-dev
cat /etc/path_to_inst
2,910
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,158
Posted By ningy
top -n 1 | awk '{ if (NR==4) print int($5) }'
top -n 1 | awk '{ if (NR==4) print int($5) }'
2,519
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,677
Posted By ningy
echo $mainder |awk -F/ '{gsub($NF,"");print}'...
echo $mainder |awk -F/ '{gsub($NF,"");print}' |sed 's/.$//'
14,458
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
4,295
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.
23,992
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
2,193
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
1,087
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.
1,083
Posted By ningy
sed '/^.\{5\}$/d' file PLs click the...
sed '/^.\{5\}$/d' file


PLs click the thank button if it works!! :)
2,193
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

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