Want to list out using single command
Hi all;
Tried to diplay output just using 1 command. PHP Code:
PHP Code:
PHP Code:
|
grep takes a single pattern.... After that everything is treated as a file name.
Also note - what may be output by the ls could have tab characters (or multiple), It looks like the pattern you are using has spaces. Also using a comma to separate two patterns doesn't work (it looks like you are searching for files with device numbers 8,17 or 8,33). The second command you give the grep will not work, but you can try: Code:
grep -e ' 8, *\(17\|\33\) ' |
Maybe it would be more useful if you told us what you are trying to do instead of showing us things which may or may not be what you are looking for?
|
Hi
Using fdisk operation i have created some partitions. Using raw utility i bound raw devices with block devices. Ex : raw /dev/raw/raw1 /dev/sdb1 # raw -qa /dev/raw/raw1: bound to major 8, minor 17 /dev/raw/raw2: bound to major 8, minor 33 /dev/raw/raw3: bound to major 8, minor 49 /dev/raw/raw4: bound to major 8, minor 65 Here my confusions What indicates major/minor number for a device ? I read linux treating each device as a file - Why so ? Why linux treats /dev/raw/raw1 as a file instead of SCSI disk ? Actually /dev/sdb1 is bound with /dev/raw/raw1 using raw utility. Thanks |
Quote:
Quote:
Quote:
Quote:
Quote:
If you actually look, the /dev/disk directory entries (by-id, by-label, by-partuuid, by-path, and by-uuid) just supply symbolic links the base /dev/<name> for the disk. I believe the /dev/raw entries are the same. If you use the raw entries, you have additional restrictions - you have to use block aligned data transfers (and use page aligned memory buffers)... and that slows down and makes things more complicated for the application. Letting the kernel handling the buffers makes for a faster and more flexible operation by letting the page cache handle the I/O scheduling. Quote:
|
All times are GMT -5. The time now is 02:48 PM. |