Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: iterate

25 May

Iterate a Text File in Bash

This is how you iterate thru a text file outputting a line at a time in Bash shell scripting.


IFS='\n'; for i in(cat FILE.TXT); do echo "$i"; done
admin Posted in Code, Command Line, Linux for, iterate, line, text 3 Comments

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑