shalbert     Design

Hal Danger · United States · male · 28 years old · registered since 1998 · last online - 4 days ago

unix one-liner of the day

Other · · 1 comment

Here is my unix 1 liner of the day. I wrote this to copy only the unique subset of a file name into a temporary directory.

THISID=""; for I in `ls -1 *.pdf`; do if [ "$THISID" != `echo $I | sed 's/_client.*//'` ]; then cp $I /export/home/hplunket/print_vendor_tmp/; fi; THISID=`echo $I | sed 's/_client.*//'`; done
October 21st, 2008 06:07
Show entries

Year 2012 (1)
Year 2011 (3)
Year 2010 (1)
 
Year 2008 (5)
  October (1)
  August (1)
  July (3)

Subscribe

RSS 2.0

Search blog
(only public entries)

Do you want to blog, too?
Blog for free at spinchat.com
This page is a personal homepage hosted on spinchat.com. The responsibility lies with the user.
spinchat.com is a large online-community with chat, blogs, boards, online games and much more.
Spinchat.com: meet new friends

Imprint · Privacy policy · Sitemap