9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
echo $(date +%s) | awk '{ print strftime("%c", $2"-"$3"-"$NF"/"$4); }'
The above command only seems to work on newer versions of awk or systems with gawk installed.
how can i translate the epoch time into a human readable format using a portable method?
also, date -d@$epochtime does not... (3 Replies)
Discussion started by: SkySmart
3 Replies
2. Solaris
Hi all,
Q1) Due to application requirement, i am required to have more swap space.
Currently my swap is on a partition with 32GB.
I have another partition with 100GB, but it already has a UFS filesystem on it.
Can i just swap -d /dev/dsk/current32gb and swap -a /dev/dsk/ufs100gb ?
Will... (17 Replies)
Discussion started by: javanoob
17 Replies
3. Shell Programming and Scripting
awk/shell:
UWARNING=90
UCRITICAL=97
PXNAME=$(echo $line | awk -F, '{print $1}')
SVNAME=$(echo $line | awk -F, '{print $2}')
FRUPERCENT=$(echo $line | awk -F, '{print ($5 / $7) * 100}')
... (6 Replies)
Discussion started by: SkySmart
6 Replies
4. Debian
I have a Debian OpenBox that boots from any usb port. The Debian LXDE will only boot from one specific port. It needs to look at all of them to find and be root, and mount the root filesystem by UUID. Both are full installs to 16GB flash drives.
That is not being done.
It says during boot... (0 Replies)
Discussion started by: patrick013
0 Replies
5. Shell Programming and Scripting
Hello Im new here,
I just got my first VPS and I really need help converting this .bat to shell script so i can run my program.
@echo off
@title DiamondMS v117
set CLASSPATH=.;dist\*
java -client -Dnet.sf.odinms.wzpath=wz server.Start
pause
I have no idea what im doing to convert this... (12 Replies)
Discussion started by: valleric
12 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I am new to Linux kernel/user space programming having been an assembly programmer in my previous life. I am now using 2.6.x kernel on an embedded CPU that has a few dedicated hardware blocks (including more CPU running just C-code, i.e., no operating system).
There is a single DRAM... (1 Reply)
Discussion started by: agaurav
1 Replies
7. UNIX for Dummies Questions & Answers
I want to strip off '\032' character from a file using:
tr -d '\032' < oldfile > newfile
this outputs the contents of oldfile to newfile, but I wanna do that in the same file i.e. remove the \032 character from the old file. I tried:
tr -d '\032' < oldfile > oldfile
But the... (3 Replies)
Discussion started by: gagan8877
3 Replies
8. Shell Programming and Scripting
Hi,
i have a given file named hugo.dat. In this file there are several lines that contain characters like } and ~
Now, i need a script that replaces the character } to ü
and character ~ to ß
Can anyone help for a working ksh script?
Kind Regards
FranzB (3 Replies)
Discussion started by: FranzB
3 Replies
9. UNIX for Dummies Questions & Answers
On a HP-UX box, I can execute the sar command which will give me the device, %busy, etc. I would like to know how to take a given device name and determine on which filesystem it's located when I do a bdf.
I've done some searching through the posts but so far have not had any luck in... (2 Replies)
Discussion started by: jimedwards
2 Replies