[SOLVED] Alias' and apostrophes - Programming On Unix

Users browsing this thread: 1 Guest(s)
Phyrne
Long time nixers
(30-08-2012, 02:22 PM)Beastie Wrote: Put that in a little script:

Code:
#!/bin/sh
awk 'BEGIN{while (("pacman -Qi" |getline) > 0){ if ($0 ~ /Name/) {name=$3};\

{if ($0 ~ /Size/) {size=$4/1024;printf "%-25s %d Mb\n", name, size|"sort -k2 -n"}}}}'

chmod it +x and put it in your path ;)

Yeah that's what I thought I'd have to do, was just hoping there might be the cleaner way of keeping it in my aliases. Thanks for confirming though :D


Messages In This Thread
[SOLVED] Alias' and apostrophes - by Phyrne - 30-08-2012, 02:18 PM
RE: Alias' and apostrophes - by yrmt - 30-08-2012, 02:22 PM
RE: Alias' and apostrophes - by Phyrne - 30-08-2012, 02:26 PM
RE: [SOLVED] Alias' and apostrophes - by pvtmert - 05-03-2014, 04:30 PM