Search Results

Search: Posts Made By: hakermania
Forum: Programming 08-27-2013
3,416
Posted By Corona688
It means, the list of signal-safe functions are...
It means, the list of signal-safe functions are safe to use inside a signal handler. The POSIX stuff means that this is what's expected of a UNIX system.

How would you simulate shutdown without...
Forum: Programming 08-27-2013
3,416
Posted By achenle
Read this: signal(7) - Linux manual page...
Read this:

signal(7) - Linux manual page (http://man7.org/linux/man-pages/man7/signal.7.html)

Pay particular attention to the section "Async-signal-safe functions". Bluntly, you can't call...
1,404
Posted By pamu
try this... touch 'file_"name' touch...
try this...


touch 'file_"name'
touch 'file_`name'
880
Posted By bmk
One more solutions... tr '\' '/' <test.txt
One more solutions...
tr '\' '/' <test.txt
880
Posted By elixir_sinari
sed 's:\\:/:g' infile
sed 's:\\:/:g' infile
Forum: Programming 06-28-2012
3,468
Posted By Corona688
Show your updated code please.
Show your updated code please.
Forum: Programming 06-28-2012
3,468
Posted By Corona688
The warning is a warning. If you know why it's...
The warning is a warning. If you know why it's there and what you're doing, you can ignore it.

It's saying -fpermissive might allow you to follow that suggestion but it might not be a good idea. ...
Forum: Programming 06-28-2012
3,468
Posted By Corona688
You are forcing a conversion from a class member...
You are forcing a conversion from a class member to a function call. Class members have this, function calls don't. So it crashes.

If you make the member function static, you'll be able to call...
3,033
Posted By dude2cool
grep w$'\xC3\xBC'rzburger /tmp/2 würzburger ...
grep w$'\xC3\xBC'rzburger /tmp/2
würzburger

cat /tmp/2:

wcrzburger
würzburger
wcrzburger
1,321
Posted By reyes99
Thank you Corona, I finally figured out...
Thank you Corona,

I finally figured out what you meant with the backticks and it worked perfectly.

Thanks for your help!!!

Rlph
1,915
Posted By Corona688
Simpler way for bash or newer ksh or even ash: ...
Simpler way for bash or newer ksh or even ash:

#!/bin/bash
string1="A\nB\nC D E\nFG\nH"
OLDIFS="$IFS"
IFS="
"
set -- `echo -e "$string1"`
IFS="${OLDIFS}"

echo $1
echo $2
echo...
2,473
Posted By bartus11
Check out the updated code ;)
Check out the updated code ;)
2,473
Posted By bartus11
Try:perl -ln0e 'while(/<td class="contentheading"...
Try:perl -ln0e 'while(/<td class="contentheading" width="100%">\n(.*)/g){$x=$1;$x=~s/\t//g;$x=~s/<\/td>//;print $x}' file
2,216
Posted By tornow
Perhaps like: ${@:3:5}
Perhaps like: ${@:3:5}
Forum: Programming 02-06-2011
3,709
Posted By Corona688
Well, you'll need a way to communicate with the...
Well, you'll need a way to communicate with the original process when an extra one is run, so it can check if it's first and if not, just send a message to the first and quit.

Message queues might...
25,423
Posted By courteous
Brilliant. Seems like I'll have to take a look at...
Brilliant. Seems like I'll have to take a look at awk. Thanks.

EDIT: OK, seems like you can make it with grep also ... but what's the role of UNIX95 variable?
For my current level, I'll just...
32,640
Posted By Chubler_XL
head -3 filename
head -3 filename
32,640
Posted By Franklin52
Have a read of this: Man Page for head...
Have a read of this:

Man Page for head (POSIX Section 1) - The UNIX and Linux Forums (https://www.unix.com/man-page/POSIX/1/head/)
32,640
Posted By Chubler_XL
sed '4,$d' filename
sed '4,$d' filename
2,727
Posted By ygemici
or ;) # echo "hello.all" | grep -ow "..." ...
or ;)
# echo "hello.all" | grep -ow "..."
all
2,727
Posted By Scott
Great! Until you get a .mpeg file :D
Great!

Until you get a .mpeg file :D
2,727
Posted By Scott
It depends how many dots your string has, and...
It depends how many dots your string has, and whether you want to keep only the last portion, or delete only the first portion.

i.e.

echo hello.all | sed "s/.*\.//"
all

echo...
4,241
Posted By bartus11
But 90% of people will have no idea what this...
But 90% of people will have no idea what this thing does, while seeing "basename /some/path" you can at least guess. And when you want to be sure you just do "man basename" and everything is clear....
Forum: Programming 08-30-2010
9,803
Posted By JohnGraham
SDL_mixer is an additional thing to install. Try...
SDL_mixer is an additional thing to install. Try searching your package manager or see here (http://www.libsdl.org/projects/SDL_mixer/).
6,295
Posted By ygemici
# sed -i...
# sed -i 's/home\/'$USER'\/.config\/hello_there//g' /home/$USER/.gnomerc
Showing results 1 to 25 of 33

 
All times are GMT -4. The time now is 09:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy