08-31-2015, 11:37 PM
(This post was last modified: 08-31-2015, 11:51 PM by rico.
Edit Reason: edit command from append to overwrite
)
(08-31-2015, 11:26 PM)DyOS Wrote: Yea, I'm just not sure if I have enough memory to even open or manipulate the file. I will give that a shot.
head -n5 /root/users.txt > /root/newuser5.txt
That will copy the first 5 lines ( -n5 ) from users.txt to a new file called newuser5.txt
I don't think that will use much memory. Or maybe in your case use -n1 (I assume hashes are one per line?) and use the new file in your command.