Search Results

Search: Posts Made By: ningy
28,066
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,221
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,281
Posted By ningy
How about this : Perl solution :
How about this :



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

devfsadm -v

dladm show-dev
cat /etc/path_to_inst
2,875
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,145
Posted By ningy
top -n 1 | awk '{ if (NR==4) print int($5) }'
top -n 1 | awk '{ if (NR==4) print int($5) }'
2,497
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,667
Posted By ningy
echo $mainder |awk -F/ '{gsub($NF,"");print}'...
echo $mainder |awk -F/ '{gsub($NF,"");print}' |sed 's/.$//'
14,377
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,283
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,945
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,139
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,083
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,082
Posted By ningy
sed '/^.\{5\}$/d' file PLs click the...
sed '/^.\{5\}$/d' file


PLs click the thank button if it works!! :)
2,167
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 09:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy