7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I'm having the following script:
#!/bin/bash
date=$(date +%d)
echo $date
if ;
then
echo 'date is even'
else
echo 'date is odd' (4 Replies)
Discussion started by: zarere
4 Replies
2. Solaris
Hello,
I have a weird think going on, on one of my servers.
vi filename
"/var/tmp" No such file or directory
What going on here? (4 Replies)
Discussion started by: bitlord
4 Replies
3. Shell Programming and Scripting
i want to print ODD lines like first ,third then fifth and so on
234,567,ABC,KJL
234,565,ABD,KJL
234,568,ABE,KJL
234,560,ABF,KJL
234,563,ABG,KJL
234,562,ABH,KJL
O/P will be like
234,567,ABC,KJL ----->first liine
234,568,ABE,KJL ----->third line
234,563,ABG,KJL ----->fifth line... (6 Replies)
Discussion started by: aaysa123
6 Replies
4. UNIX for Dummies Questions & Answers
Hi guys, I wondered if someone would be able to help me.
I have a number of files which all have entries in them looking something like;
And I'm looking for a way where by I can compare a number of these files and identify the odd numbers in the sequence.
So for example if I had to... (1 Reply)
Discussion started by: JayC89
1 Replies
5. HP-UX
Hi, We have some troubles with our HP server (rx4640) running HP-UX 11.31. The server is attached to a JBod cabinet. If the JBod cabinet is powered on and we power on the server after then HP-UX can't find the devices (disks) at the cabinet. Does not help to run an ioscan -fnC disk. But if I power... (3 Replies)
Discussion started by: hoff
3 Replies
6. UNIX for Dummies Questions & Answers
I need a unix script that check for even or odd. EXAMPLE::::
please enter the number to check: 12
the output: This is an even number
it has to have prompts. (2 Replies)
Discussion started by: snyper2k2
2 Replies
7. UNIX for Dummies Questions & Answers
OS: Solaris 2.6
File with no name created Mar of 2000 - ls (with or without options) shows the file but no name associated with it.
Example:
ls -ltca
-rw-r--r-- 1 root other 9721 Apr 16 2003 printcap
-rw-r--r-- 1 root other 267 Apr 16 2003
-rw-r--r-- 1 root other 258 Apr 16... (3 Replies)
Discussion started by: RTM
3 Replies