10 More Discussions You Might Find Interesting
1. Linux
Hi,
a little while ago, one of the GPT Partitioned hard disk had gone faulty in a Mirror RAID and is now successfully replaced.
here is how I did that.
1) created identical partition table on the new disk.
2) attached the mirrors using md commands.
The whole procedure is given below:... (2 Replies)
Discussion started by: busyboy
2 Replies
2. Shell Programming and Scripting
My task is to copy all files from many directories in one. The big problem i encounter is that some files in different directory have the same names. Is they are way to copy the files that have same names in a sub directory ( need to preserve the name of the files unchanged )
I have list with... (6 Replies)
Discussion started by: gogok_bg
6 Replies
3. Solaris
Hi,
I`m on SunFire480R with Solaris 10. Disk in rootdg group failed, so it was replaced. However, I cannot make Veritas initalise the replaced disk:
# vxdctl enable
# vxdisk list c1t0d0s2
Device: c1t0d0s2
devicetag: c1t0d0
type: auto
flags: online error private autoconfig... (1 Reply)
Discussion started by: masloff
1 Replies
4. Shell Programming and Scripting
Hi,
I am trying to generate list of employees from emp table who joined yesterday.
emp.sh
YEST=$(date --date='1 day ago' +%Y-%m-%d)
cat emp.sql | mysql -u <user> -p<pass> -h <host> -P <port> -D <dbname> > emp.csv
emp.sql
select * from employee where join_date = '$YEST';
I expected... (3 Replies)
Discussion started by: ravi.videla
3 Replies
5. Shell Programming and Scripting
Hi,
I have a file with occurances of the string "TO_DATE(<number here>,'J')" at random places. I need minus 2400000 from the number and replace the string with "convert(date, dateadd(dd, <new number here>,'16 Nov 1858')".
I'm finding this difficult as the string isn't necessarily in the... (9 Replies)
Discussion started by: user_invalid
9 Replies
6. Shell Programming and Scripting
Hi Everyone,
1.txt
a
b
c
d
e
f d
g
gg
output:
abc
de (3 Replies)
Discussion started by: jimmy_y
3 Replies
7. Shell Programming and Scripting
Source data:
"123","aaa bbb CCC","12000"
"134","HHH,bbc","13000"
i have a delimited file. i want to replace with the pipe.The sed command is not working for replacing a delimeter.
Command :
sed s/\,/\|/g filename
Output : When i run the command it is replacing the columns value... (7 Replies)
Discussion started by: number10
7 Replies
8. Programming
Hi All,
To avoid race condition, instead of using mutex, semaphore, spinlock etc.... Is there any other mechanism by which we can avoid race condition in an multi-threading environment.
-Thanks (6 Replies)
Discussion started by: rvan
6 Replies
9. AIX
folks,
I have dev box which is runnin SAP apps and the hdisk0 usage activity is showing up 100% using topas .
Please chk the o/p below:
Topas Monitor for host: dev_sap_basis EVENTS/QUEUES FILE/TTY
Sat Nov 29 05:32:58 2008 Interval: 2 Cswitch 11913 ... (3 Replies)
Discussion started by: nivaspIND
3 Replies
10. UNIX for Dummies Questions & Answers
goodpeople, have a corrupt boot volume and systems keep's on crashing with it. suspecting drive is bad. question is how does one determine which of the 5 internal drives I have in my cage is hdisk0
any help would be appreciated
Thnx (2 Replies)
Discussion started by: Student37
2 Replies