Guest User

Untitled

a guest
Dec 10th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. user@server:~# cat test.txt
  2. account|uname|upass|mac|ip|tariff|download|upload
  3. 11122|24a43cda22b2|O3v2L2oPE9|24:A4:3C:DA:22:B2|192.168.1.2|7|12582500|2097000
  4.  
  5. user@server:~# head -n1 test.txt | sed 's/|/n/g'
  6. account
  7. uname
  8. upass
  9. mac
  10. ip
  11. tariff
  12. download
  13. upload
  14.  
  15. user@server:~# head -n2 test.txt | sed 's/|/n/g'
  16. 11122
  17. 24a43cda22b2
  18. O3v2L2oPE9
  19. 24:A4:3C:DA:22:B2
  20. 192.168.1.2
  21. 7
  22. 12582500
  23. 2097000
  24.  
  25. $account = 11122
  26. $uname = 24a43cda22b2
Add Comment
Please, Sign In to add comment