Skip to content

ch.ill machine

Jon Drews makes things.

Recent Posts

  • Enable HTTPS on influxdb for debian
  • Bash: Run command if exists, else echo blank
  • Proxmox and Quagga and OSPF
  • Change terminal backgrounds to identify
  • Fish shell and Putty

Recent Comments

  • AL on dnsmasq DNS server and multiple subnets
  • Enzo D'Amario on Modifying Danby DCR412BLS for Homebrew Ball Lock Kegs
  • Bryant Poston on EdgeRouter Lite Simple OSPF Guide
  • Remo on EdgeRouter Lite Performance Tests
  • MajorGrouse on EdgeRouter Lite Performance Tests

Archives

  • March 2016
  • March 2015
  • January 2015
  • November 2014
  • October 2014
  • February 2014
  • October 2013
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • June 2012
  • May 2012
  • April 2012

Categories

  • Brewing
  • Projects
  • Tech Tips
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Month: October 2012

Search multiple files and prepend file name

root@flynx:~/test# echo "test 1" >> a.txt
root@flynx:~/test# echo "test 2" >> b.txt
root@flynx:~/test# echo "test 3" >> c.txt
root@flynx:~/test# echo "nothing" >> d.txt
root@flynx:~/test# ls
a.txt  b.txt  c.txt  d.txt
root@flynx:~/test# grep . *.txt | grep test
a.txt:test 1
b.txt:test 2
c.txt:test 3

 

Posted on October 29, 2012November 3, 2012Categories Tech TipsLeave a comment on Search multiple files and prepend file name
Proudly powered by WordPress