Search Results

Search: Posts Made By: alan
3,909
Posted By Neo
Yes, this can be a good idea. I suggest you...
Yes, this can be a good idea.

I suggest you write a cron script that copies sudoers files with different configurations.

For example you create an sudoers file that does not permit sudoers (if...
2,474
Posted By Scott
Perhaps try quoting: awk -v...
Perhaps try quoting:

awk -v awkvar=${SHELLVAR}


i.e.

awk -v awkvar="${SHELLVAR}"


It also helps if you give awk a file to work with:


awk -v awkvar="${SHELLVAR}" "$myfile"


It's...
3,269
Posted By agama
Yep, it's possible. Here is one way: ...
Yep, it's possible. Here is one way:


#!/usr/bin/env ksh

# if you have a lot of these files, this method will
# prevent arg length errors to the for
find . -name "R*VER" -mtime +1 | while...
1,186
Posted By sk1418
try this in your 2nd step: sed -ir ':a;N;...
try this in your 2nd step:
sed -ir ':a;N; $!ba; s/.\n/\t/g' infile

---------- Post updated at 01:01 ---------- Previous update was at 00:58 ----------

n and N doesn't start next cycle...
1,186
Posted By LivinFree
Here's my crack at it, although if you're working...
Here's my crack at it, although if you're working with huge files, it might not be a great idea to load that much into the Hold buffer:

sed -n '1h;2,$H;${g;s/\n/\t/g;s/\tReceiver/\nReceiver/g;p}'...
4,442
Posted By jlliagre
Why not simply installing ksh93 on host B as...
Why not simply installing ksh93 on host B as pdksh is likely the root cause ?

Alternatively, a more portable way might be:
PS1="$(printf "\033[46;31m%s@\033[1;33m%s\033[0m>" $(logname) $(hostname...
2,534
Posted By zaxxon
You could try if [[ $i != *.ctl ]] ...
You could try

if [[ $i != *.ctl ]]


In bash it seems if you use double square brackets, that the wildcard is working. Single sq. brackets do not work - I guess test is a bit limited to the...
Showing results 1 to 7 of 7

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