02-27-2010
od -c . does not work on mine
[root@xsi Documents]# od -c .
od: .: read error: Is a directory
0000000
I read the book about shell (Kernighan, Pike) and some exaples (like this) does not work.
I read this book carefully (because I think now quickly) even reread to better understand.
In this book there is a good example how to see what a catalog looks like.
But on my Linux system (Fedora 12) it does not seem to work at all.
Also "chmod -w file" does not work for all users. --w--w--w- (only --w--------) but for x and r work good.
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is their a way to grep for only one occurrence? Here is an example:
given the file information:
BCX 3 5
BCX 23 94
BNG 34 34
BCX 2 09
if I do:
grep BCX ./file
then i get them all, how can i get just one of them. But let's say there could be a variable number of the desired... (5 Replies)
Discussion started by: wxornot
5 Replies
2. UNIX for Dummies Questions & Answers
Howdie everyone...
I have a shell script RemoveFiles.sh
Inside this file, it only has two commands as below:
rm -f ../../reportToday/temp/*
rm -f ../../report/*
My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies
3. What is on Your Mind?
By far, Doritos Nacho Cheesier are the best tasting chips, well at least too me.
Have you tried them?
What are your favorite chips? (5 Replies)
Discussion started by: Neo
5 Replies
4. IP Networking
I have a client machine that was built and loaded with SCO UNIX 2.1.3, (yes it is old). The machine worked fine on the closed network that I tested on in my shop. I then had to change it to the network that it would be connected to. Below is the host file, router and subnet mask file that I usually... (0 Replies)
Discussion started by: NC user
0 Replies
5. Shell Programming and Scripting
My script work on Linux but not work in sun os.
my script.
logFiles="sentLog1.log sentLog2.log"
intial_time="0 0"
logLocation="/usr/local/tomcat/logs/"
sleepTime=600
failMessage=":: $(tput bold)Log not update$(tput rmso) = "
successMessage="OK"
arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies
6. IP Networking
hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view
situation
a router, with linux of some sort,
dhcp client requesting for ip in wan1 (as usual with wan ports)
dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
EBZIP(1) User Commands EBZIP(1)
NAME
ebzip - compress a CD-ROM book
SYNOPSIS
ebzip [option...] [book-directory]
OPTIONS
-f --force-overwrite
set overwrite mode to `force' (same as `--overwrite force')
-h --help
display this help, then exit
-i --information
list information of compressed files
-k --keep
don't delete original files
-l INTEGER --level INTEGER
compression level; 0..5 (default: 0)
-n --no-overwrite
set overwrite mode to `no' (same as `--overwrite no')
-o DIRECTORY --output-directory DIRECTORY
ouput files under DIRECTORY (default: .)
-q --quiet --silence
suppress all warnings
-s TYPE[,TYPE] --skip-content TYPE[,TYPE...]
skip content; font, graphic, sound or movie (default: none is skipped)
-S SUBBOOK[,SUBBOOK...] --subbook SUBBOOK[,SUBBOOK...]
target subbook (default: all subbooks)
-t --test
only check for input files
-u --uncompress
uncompress files
-v --version
display version number, then exit
-w MODE --overwrite MODE
set overwrite mode of output files; confirm, force or no (default: confirm)
-z --compress
compress files
Argument:
book-directory
top directory of a CD-ROM book (default: .)
Default action:
When invoked as `ebunzip', uncompression is the default action. When invoked as `ebzipinfo', listing information is the default
action. Otherwise, compression is the default action.
REPORTING BUGS
Report bugs to m-kasahr@sra.co.jp.
COPYRIGHT
Copyright (C) 1997-2006 Motoyuki Kasahara
ebzip (EB Library) version 4.4.3 July 2012 EBZIP(1)