How to sort lines in a file randomly on Linux?
Uncategorized 0 Commentssort –random-sort cat a.txt | sort –random-sort > b.txt How can I randomize the lines in a file using a standard tools on Redhat Linux on StackOverflow
sort –random-sort cat a.txt | sort –random-sort > b.txt How can I randomize the lines in a file using a standard tools on Redhat Linux on StackOverflow
EVERYTHING WILL BE DELETED FROM YOUR PHONE as we are doing a factory reset. Also, your warranty will be gone, do this at your own risk, etc. I have written this howto step-by-step as I was doing this for the 5-6th time (hacking the boot partition too much without fastboot, huh?!), I’d consider this a
Just a quick short post. Even shorter: use the toram boot parameter. I was looking for an option to copy the contents of the live CD into RAM during boot and was looking throught the source of the casper script (the one that mounts the stuffs to have a working root or /cdrom for Ubuntu),
Today I was trying with Ubuntu live boot over NFS. My goal was to set up an Ubuntu that can boot from network, map its root filesystem (or “/cdrom” mount point) from NFS, and run just as the CD would. I have seen tutorials of Ubuntu Diskless boot and NFS setup on Ubuntu. All these
It was quite annoying every time I hit ctrl-alt-del in Gnome, the Logout window appeared – instead giving the combination to the active window (virtual machines, VNC, Remote Desktop connections, etc.). Gladly this is just another global shortcut like any other ones (alt-F1 for menu, for example), therefore it can be disabled the same way:
I just needed a way to detect regularly if a file has been changed recently. The solution I came up with was this: now=`date +%s` mtime=`stat -c %Z /some/file` if [ $((now – mtime)) -gt 3600 ]; then echo “xy seems to be out-of-date.” fi This checks the current time and the modification time of
What is the time on the Moon? A few guys leading a project called LunarClock.org designed a Lunar date and time system, the Lunar Standard Time (LST). It is a really simple method of the time tracking on the Moon (theoretically of course, as no one lives there – yet 😉). It based on the
I’ve just found accidentally a solution for a very rare (at least I’ve seen it only a few times), but rather annoying SSH client issue (bug?). Sometimes when the SSH connection times out OR after a clean exit from the remote shell, the SSH connection hangs and the terminal remains virtually between the remote and
Once I had a project where I needed to swap two SATA disks every week. Shutting down, swapping, and booting up again took a lot of time, and – to be honest – was a bit uncomfortable, so I thought I will try to make the change a little bit hot. My disks and motherboard
I have just bought an Asus Eee 1101HA and (after compiling a custom kernel with the correct drivers) it is working almost perfectly. Sometimes the whole system just hung and after a keypress the hung had gone and it was OK for a while until the next hang… This had been happening in console and