• Home
  • About
  • Map
  • Archives
  • Videos
  • Gallery
Grab the RSS feed

spiralbound.net

spiralbound.net
  • Home
  • Adventures
  • Data and Technology
  • Et cetera
  • Highlights

Posts Tagged with "foreach"

  • Data and Technology

    Posted on November 27th, 2006

    Written by cliff

    Tags

    commands, computing, directory, directory sizes, disk, foreach, HowTo, linux, quota, repquota, server, size, sort, storage, unix, users

    Using Sort to List Directories by Size

    Using Sort to List Directories by Size

    If you manage a UNIX system with a large number of directories that vary in size, chances are that you’ve needed to figure out which ones are using up the most disk space. Of course if the directories are user accounts, the best way to do this is to enable quotas and use the “repquota” [...]

  • Data and Technology

    Posted on January 17th, 2006

    Written by cliff

    Tags

    foreach, grep, ls, shell, syntax, tcsh

    Foreach Example in tcsh

    I always forget the foreach syntax. Here is a quick example that reads all the contents of a directory into an array, prints out the name of each file, runs a simple grep on it, and ends. foreach i ( ` /bin/ls * ` ) foreach? echo $i foreach?/bin/grep your_grep_string $i foreach? end

  • Sponsor
  • Recent Comments
    • fabioamd87 on IFCONFIG Does Not give You Link Status; ETHTOOL Does
    • Komil on Quick Start Guide for Asterisk
    • cheap tiffany s jewelry and mont blanc pens on German Kite Skates Across Australia
    • Kim on Giant Rabbits in North Korea
    • Emad on Little Japanese Trucks
    • Jonathan on Why Did my Arm Fall Asleep?
    • Jenn on 802 – Hip Hop Vermont Style

Copyright © 2010 spiralbound.net - Powered by Wordpress