LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices

Old

Rootkit Hunter release 1.4.2

Posted 02-24-2014 at 01:26 PM by unSpawn

The Rootkit Hunter project team is pleased to announce the release of version 1.4.2.
Please see the rkhunter-1.4.2 download page for details.
Moderator
Posted in Uncategorized
Views 329 Comments 0 unSpawn is offline
Old

ExLight Linux Live DVD with Enlightenment - 64bit

Posted 02-24-2014 at 02:37 AM by exton (Exton's Blog)

WHAT’S NEW IN VERSION 140224?
1. ExLight is now based on upcoming Ubuntu 14.04 Trusty Tahr 64 bit (to be released in a stable version in April 2014).
2. I have replaced the Desktop environment Mate 1.6.0 with Enlightenment 0.17.3 (Beauty at your fingertips).
3. I have replaced kernel 3.12.0-7-exton with kernel 3.13.0-9-exton.
4. ExLight's ISO file is now a ISO-hybrid, which means that it can very easily be transferred (copied) to a USB pen drive. You can then even run...
ExTiX Admin
Views 278 Comments 0 exton is offline
Old

Give a default/non-null value in order to avoid the "unary operator expected" error

Posted 02-19-2014 at 03:00 PM by the dsc (linux-related notes)
Tags bash

Quote:
Originally Posted by cfajohnson
Quote:
i am trying to compare a value with value 50. but i am getting
"[: -lt: unary operator expected"

I am using

if [ $j -lt 50 ]
then
echo "------------"

fi
Make sure that $j expands to a value. Best is to set it explicitly, but you can also give it a default value (0 in this example):


Code:
if [ ${j:-0} -lt 50 ]
http://www.unix.com/302295072-post3.html...
Member
Posted in Uncategorized
Views 270 Comments 0 the dsc is offline
Old

Linux users

Posted 02-19-2014 at 02:52 AM by redd9

I just found out that another girl I've known for ages is an avid Linux user! I've always been on the lookout for Linux users but have found it quite difficult to find anyone locally. Very happy about this, hope we can chat tomorrow. I also hope a guy a met who's currently working in America will come back to Canada, because he likes Linux too. Tux forever!
Member
Posted in Uncategorized
Views 237 Comments 0 redd9 is offline
Old

"Alpha" of an auto-renaming existing files "mv" script/function/alias

Posted 02-18-2014 at 01:02 PM by the dsc (linux-related notes)

Please don't test this on files you don't care to lose/folders you don't care to mess. I just tested once with an explicit (non-variable/"$2") destination, it seems to have worked. I don't have it as an alias or anything, it was just an "one liner" I came up with.

Code:
for on in "$1" ; do nn=$on ; num=1 ; until [ ! -f "$2/$nn" ] ; do nn="$(echo $nn | sed 's| ([0-9]*)||' | sed "s|\.| ($num).|")" ; num=$((num+1)) ; echo $nn ; done
...
Member
Posted in Uncategorized
Views 217 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 02:28 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration