Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user@server:~# cat test.txt
- account|uname|upass|mac|ip|tariff|download|upload
- 11122|24a43cda22b2|O3v2L2oPE9|24:A4:3C:DA:22:B2|192.168.1.2|7|12582500|2097000
- user@server:~# head -n1 test.txt | sed 's/|/n/g'
- account
- uname
- upass
- mac
- ip
- tariff
- download
- upload
- user@server:~# head -n2 test.txt | sed 's/|/n/g'
- 11122
- 24a43cda22b2
- O3v2L2oPE9
- 24:A4:3C:DA:22:B2
- 192.168.1.2
- 7
- 12582500
- 2097000
- $account = 11122
- $uname = 24a43cda22b2
Add Comment
Please, Sign In to add comment