Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Skrynesaver
2,823
Posted By RudiC
Or, awk: awk -F"[,;]+" 'NR == 1 {print; next}...
Or, awk:
awk -F"[,;]+" 'NR == 1 {print; next} {for (i=2; i<=NF; i++) print $1, " " $i}' OFS=, file
Name , Company_Worked (Header)
Asley, IBM
Asley, Amazon
Asley, BOA
Asley, Google
King.Jr,...
2,470
Posted By RudiC
32 bit overflow? Calculate 2^32 -...
32 bit overflow? Calculate


2^32 - 1841560902 = 2453406394


.
11,587
Posted By Aia
With the command nmcli you could let it do it for...
With the command nmcli you could let it do it for you.

nmcli con mod "<your connection name here>" ipv4.dns-search <your domain search here>
nmcli con mod "<your connection name here>" ipv4.dns...
11,587
Posted By gull04
Hi, I'd think that the best way might be to...
Hi,

I'd think that the best way might be to modify the file and then run;

# chattr +i /etc/resolv.conf

This will stop the file being modified - However if the server is using DHCP to pick up...
9,368
Posted By Don Cragun
Note that rm -r my_directory will remove the...
Note that rm -r my_directory will remove the entire file hierarchy rooted in my_directory, but the for loop will only look for symlinks in my_directory; not for symlinks in subdirectories of...
869
Posted By Scrutinizer
AKA lazy matching as opposed to greedy matching
AKA lazy matching as opposed to greedy matching
Forum: Solaris 10-30-2008
111,844
Posted By jlliagre
Here is the ksh oneliner I use. It needs some...
Here is the ksh oneliner I use.
It needs some reformatting to suit your requirements:
pfexec pfiles `ls /proc` 2>/dev/null | egrep '^[0-9]|port:' | grep -v "AF_INET6" | sed -e 's/sockname:...
Forum: Proxy Server 09-16-2014
13,794
Posted By jlliagre
The link is about setting up traditional ldap...
The link is about setting up traditional ldap authentication against an active directory.

Starting from Solaris 11, there is an simpler way, the nss_ad (name service switch / active directory)...
Forum: Linux 05-13-2013
2,251
Posted By Corona688
If you have b43 anything built into your kernel...
If you have b43 anything built into your kernel this will interfere with using the wl module.
Forum: AIX 02-24-2013
43,136
Posted By alister
tar is a lot like ps. Both tools are universally...
tar is a lot like ps. Both tools are universally deployed, but if you cross platforms, only the most fundamental options will work. Attempt something non-trivial and any semblance of...
2,996
Posted By bakunin
Actually, these are very good questions and i am...
Actually, these are very good questions and i am glad that you asked. It is always much more satisfying to teach someone willing to learn.



These are different language constructs. First the...
2,996
Posted By bakunin
w | tail -$(( $(w| wc -l) - 2 )) | tee >(cut -d\...
w | tail -$(( $(w| wc -l) - 2 )) | tee >(cut -d\ -f1|uniq | wc -l >/dev/stderr )

Lets start with the first part:

w | tail -$(( $(w| wc -l) - 2 ))

basically it executes "w" (see the man...
Forum: Solaris 10-13-2012
6,930
Posted By jlliagre
That depends on how you define "based on". ...
That depends on how you define "based on".
Microsoft hired one of the VMS main architects (David Neil Cutler) to redesign Windows and Windows NT was the result. NT was actually a pun: you add +1 to...
2,310
Posted By elixir_sinari
$head=$_;
$head=$_;
2,184
Posted By gull04
Hi Skrynesaver, The snapshot is a PIT copy...
Hi Skrynesaver,

The snapshot is a PIT copy of all the data in the ZFS, the new device can be an other ZFS that you created.

The ZFS snapshot will grow - quickly if there is a lot of write...
2,184
Posted By gull04
Hi, Probably better to use the zfs send and...
Hi,

Probably better to use the zfs send and recieve for this as follows;

zfs snapshot $DEVICE@now
zfs send $DEVICE@now | zfs receive -Fu new/device

This is probably a better way of doing...
1,504
Posted By Scrutinizer
Note: Double quotes around variable references,...
Note: Double quotes around variable references, will ensure that file names with spaces do get processed properly..
6,518
Posted By Scrutinizer
Hi, have a look here : Unix Tutorials/Programming...
Hi, have a look here : Unix Tutorials/Programming Tutorials/Shell Scripting Tutorials...
8,895
Posted By Scrutinizer
This behavior seems to be gawk-only. The other...
This behavior seems to be gawk-only. The other awks I tried display ARE just fine without quotes.
If I use
awk --posix -F, '$3~011{ print $2 }' file
or
awk --posix -F , '{if (match($3,011)) {...
30,095
Posted By Corona688
Keys were designed to handle this situation, and...
Keys were designed to handle this situation, and password logins are designed to prohibit this situation. ssh -- and most authentication systems -- go to some length to ensure a real human is typing...
1,940
Posted By Lakris
Hi! I hope this may help, for x in $(seq 1...
Hi!
I hope this may help,

for x in $(seq 1 ${#mystr}) do
eval "echo letter$x=${mystr:$((x-1)):1}"
done

It uses parameter substitution which is very handy when working with...
752
Posted By mirni
There is a small slip in the explanation: ...
There is a small slip in the explanation:
Should be
799
Posted By michaelrozar17
In GNU Sed you would need to escape the sign + in...
In GNU Sed you would need to escape the sign + in order to work.
2,587
Posted By radoulov
In the standard module POSIX.
In the standard module POSIX.
2,490
Posted By danmero
# awk -F....
# awk -F. 'NR==FNR{if(/^1/){f=$0;next};if(/^./){a[f substr($2,2)];next}}{if(/^[0-9]/)print $0,(a[$0])?"TRUE":"FALSE"}' PM09134500 config1h.txt
1.3.6.1.2.1.2.2:8 TRUE
1.3.6.1.2.1.2.2:7 TRUE...
Showing results 1 to 25 of 26

 

Featured Tech Videos

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