csv: simplify rules in ssv test
This commit is contained in:
		
							parent
							
								
									4562b04407
								
							
						
					
					
						commit
						fe2c48245c
					
				| @ -94,8 +94,8 @@ | |||||||
| >>>2 | >>>2 | ||||||
| >>>=0 | >>>=0 | ||||||
| 
 | 
 | ||||||
| # 8. reading CSV with custom separator | # 8. reading with custom separator: SSV (semicolon-separated) | ||||||
|  printf 'account1 Assets:MyAccount\ndate %%1\ndate-format %%d/%%Y/%%m\ndescription %%2\namount-in %%3\namount-out %%4\ncurrency $\n' >t.$$.csv.rules ; hledger --separator ';' -f csv:- --rules-file t.$$.csv.rules print && rm -rf t.$$.csv.rules |  printf 'account1 Assets:MyAccount\ndate %%1\ndate-format %%d/%%Y/%%m\ndescription %%2\namount-in %%3\namount-out %%4\ncurrency $\n' >rules.$$ ; hledger --separator ';' -f csv:- --rules-file rules.$$ print && rm -rf rules.$$ | ||||||
| <<< | <<< | ||||||
| 10/2009/09;Flubber Co🎅;50; | 10/2009/09;Flubber Co🎅;50; | ||||||
| 11/2009/09;Flubber Co🎅;;50 | 11/2009/09;Flubber Co🎅;;50 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user