671 reputation
36
bio website
location Puteaux, France
age 36
visits member for 2 years, 11 months
seen 3 hours ago

Programmer (Java / C), Linux/UNIX user, Network hobbyist.

More recently, sysadmin in a VMWare and Linux environment.


Jun
25
revised Create directory of files each with a certain file size
deleted 2 characters in body
Jul
19
awarded  Yearling
Jun
7
answered Create directory of files each with a certain file size
Apr
8
answered How do routers assign IP addresses?
Mar
17
awarded  Informed
Mar
17
answered Unix-like command-line shells: Get full command input/output history
Mar
10
answered match string in awk
Dec
28
answered Check file name and filter it based on the date
Jul
19
awarded  Yearling
Apr
8
comment How to check there are no html files in current directory?
Why not creating a temporary directory with mktemp -d ?
Mar
15
answered How to keep only every nth line of a file
Mar
11
answered How to remove lines from large text file using bash
Mar
11
revised I messed up real bad and accidentally did a rm * on Debian 6 while logged in as root
Add link.
Mar
3
comment Keeping users inside their home directory
Preventing a user to unset a variable is easy: disable the export builtin with enable -n export. And with control to the PATH, it is possible to lock the execution of only some commands. It is not 100% bulletproof, but it can easily restric 98% of unwanted access.
Mar
2
answered Keeping users inside their home directory
Mar
1
comment how do I echo $something >> file.txt without carriage return?
Be careful doing echo $something, its behavior depends on the IFS variable, and you could end up with disappearing character. You can try the following: var="hello world"; echo $var (two spaces between hello and world) or var="hello world"; IFS='l'; echo $var or var="-e hello \\n world"; echo $var. To solve that, put double quotes around the variable like this: echo "$var", or use printf.
Feb
26
revised sed - perform only first (nth) matched replacement?
Add simpler.
Feb
26
revised sed - perform only first (nth) matched replacement?
Add enhance.
Feb
26
answered sed - perform only first (nth) matched replacement?
Feb
20
answered I messed up real bad and accidentally did a rm * on Debian 6 while logged in as root