| bio | website | |
|---|---|---|
| location | European Union | |
| age | ||
| visits | member for | 8 months |
| seen | 1 hour ago | |
| stats | profile views | 884 |
|
Apr 12 |
answered | Delete XML node containing certain element |
|
Apr 11 |
revised |
Regex awk to Cisco Interface added 49 characters in body |
|
Apr 11 |
comment |
Migrate an entire volume group LVM2 to RAID5 Alternative to pvmove is to convert every LV to mirrors, and then once everything is synchronised, disconnect the old drives or use lvchange --splitmirrors and then you'll have a backup of the VG on the old drives. |
|
Apr 11 |
comment |
Persistent blockdev setra read ahead setting @Banjer, yes, it looks like that's a Debian extension (slightly modified in Ubuntu): a shell script run upon early boot and device hot plug that parses that file and calls hdparm accordingly. I've updated the answer. |
|
Apr 11 |
revised |
Persistent blockdev setra read ahead setting deleted 15 characters in body |
|
Apr 11 |
comment |
Vim - how to increase each number in visual block? That doesn't apply ^A on the visual selection, but at the start of every line marked by the selection (so for instance, if there were lines with numbers before the selected one, that would increase those and not the selected one) |
|
Apr 11 |
revised |
remove content of directory in elegant way added 69 characters in body |
|
Apr 11 |
comment |
remove content of directory in elegant way-empty is not POSIX. -type f is for regular files only. You would miss other types of files like symlinks, sockets, pipes, doors, devices... Use ! -type d instead. |
|
Apr 11 |
comment |
remove content of directory in elegant way @TomWijsman, [^.] is not POSIX, [!.] is. |
|
Apr 11 |
answered | remove content of directory in elegant way |
|
Apr 11 |
revised |
remove content of directory in elegant way missing quotes. |
|
Apr 11 |
comment |
remove content of directory in elegant way-maxdepth and -not are not posix. ! is. |
|
Apr 11 |
comment |
remove content of directory in elegant way-delete is not POSIX. |
|
Apr 11 |
revised |
remove content of directory in elegant way missing --, note that `zsh` doesn't expand `.` and `..` |
|
Apr 11 |
answered | Tracking which files are used by program |
|
Apr 11 |
answered | Bash string comparison inside if |
|
Apr 10 |
revised |
Lots of text files into one big text file added 153 characters in body |
|
Apr 10 |
comment |
Lots of text files into one big text file @Patrick. No, that's the other way round. + is standard, and GNU find was one of the last ones to support it (in 2005). |
|
Apr 10 |
revised |
Lots of text files into one big text file added 101 characters in body |
|
Apr 10 |
comment |
Lots of text files into one big text file However not that that assumes none of the file names contain SPC, TAB, Newline, single quote, double quote or backslash characters. |

