Search Results

Search: Posts Made By: xib.be
4,110
Posted By Corona688
Linux is mostly not a UNIX for copyright...
Linux is mostly not a UNIX for copyright reasons... It does support a great many UNIX system calls and utilities. If anything the biggest difference is how they kept enhancing the utilities while...
23,612
Posted By DGPickett
Is $TERM vt100?
Is $TERM vt100?
6,947
Posted By ygemici
I modified my script you can try this ;) ...
I modified my script
you can try this ;)


## exshell ##

#!/bin/bash

clear
shells="bash|ksh|csh|tcsh|pdksh|wksh|zsh"

find_stat () {
sshpid=$(ps -ef | grep $PPID|sed -n '1p'|awk...
1,899
Posted By Corona688
Well, the shell always assumes the first argument...
Well, the shell always assumes the first argument is a program or builtin -- a safe guess, anything else would be invalid. The following arguments are assumed to be either local files or parameters...
1,899
Posted By Corona688
Ah, I see what you mean. In my shell, BASH,...
Ah, I see what you mean.

In my shell, BASH, I was able to make it work by cheating: I made an alias like alias CMD="nohup cmd" ...and the shell was willing to tab-complete CMD. Which lets me run...
Forum: Ubuntu 11-17-2010
2,925
Posted By rbatte1
This is probably nothing to worry about. The...
This is probably nothing to worry about. The boot process will look at the filesystems to mount and check the status flag on each. If they are all marked as clean (i.e. unmounted correctly at...
6,947
Posted By ctsgnb
Wanna suicide ? remove the #!/bin/bash line ...
Wanna suicide ?
remove the #!/bin/bash line

you can give a try with and without this line exec bash
and also add the line kill -9 $$Wanna kill your parents ? Maybe i am wrong but i think it is...
6,947
Posted By ygemici
try this :) ## justdoit ## #!/bin/bash ...
try this :)
## justdoit ##
#!/bin/bash
pid=$(ps -ef | grep "$PPID" | awk '{if (NR==1) print $3} ')
if [ $(pstree -p $pid | grep -o bash | wc -l) -gt 1 ] ; then
echo -e "You are maybe in...
19,557
Posted By radoulov
echo $PPID
echo $PPID
4,954
Posted By Scrutinizer
There is no lazy matching in sed, but by using...
There is no lazy matching in sed, but by using [^a] (any character but a) instead of . (any character) you can go a long way. Otherwise you would have to switch to perl:
perl -pe 's/.*?(a+).*/>\1</g'
4,954
Posted By Corona688
The first .* is eating some of the a's. If you...
The first .* is eating some of the a's. If you don't want it to eat a's, then give it [^a]* instead of [icode].*

And if you always want it to start at the beginning and end at the end of the...
4,954
Posted By Scrutinizer
That is because of sed's greedy matching. The .*...
That is because of sed's greedy matching. The .* matches as much as possible so that \(aa*\) only has one a left (the rightmost a). This should remedy it:
sed "s/[^a]*\(aa*\).*/>\1</g"or
sed...
Showing results 1 to 12 of 12

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