⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 numsecs

📁 The main purpose of this project is to add a new scheduling algorithm to GeekOS and to implement a s
💻
字号:
#! /usr/bin/perl# Find the number of 512-byte sectors needed to store# given file.# $Revision: 1.1 $use strict qw(refs vars);if ( scalar(@ARGV) != 1 ) {    print STDERR "Usage: numsecs <filename>\n";    exit 1;}my $filename = shift @ARGV;my $size = (-s $filename );die "Couldn't get size of $filename: $!" if ( !defined $size );my $result = int($size / 512);my $remainder = $size % 512;$result++ if ( $remainder > 0 );print "$result\n";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -