Search Results

Search: Posts Made By: snoman1
2,525
Posted By jim mcnamara
If you want it to work, both echo statements have...
If you want it to work, both echo statements have to be part of one single process, I chose a subprocess:
( test -d /tmp && echo "directory exists" || echo "directory doesn't exists" ) | sed -e...
1,892
Posted By Chubler_XL
A small logical rearrangement of Yoda's Solution,...
A small logical rearrangement of Yoda's Solution, and it sort of reads a little more clearly for me (comment line OR no temp):

awk '/^#/||!/temp/' fstab
1,892
Posted By Yoda
awk '!(!/^#/&&/temp/)' file
awk '!(!/^#/&&/temp/)' file
4,804
Posted By MadeInGermany
You can change it like this: # for safety turn...
You can change it like this:
# for safety turn off globbing (wild card matching in current directory)
set -f
...
MHOST=$(dig -x "$A" +short) # reverse lookup
if test -n "$MHOST";...
4,296
Posted By msabhi
awk -F";" 'NR==FNR{x[$0]++;next;}...
awk -F";" 'NR==FNR{x[$0]++;next;} {if(x[$1]){print $0" HIT";} else print;}' file1 file2
1,740
Posted By vgersh99
for NUM in 1234 1235 do nawk -F\; '$7==n'...
for NUM in 1234 1235
do
nawk -F\; '$7==n' n="${NUM}" myFile
done
Forum: Solaris 10-26-2011
10,230
Posted By solaris_user
When you change FTP settings then you need to...
When you change FTP settings then you need to refresh FTP services.

svcadm restart ftp
3,097
Posted By otheus
Not a great approach. Try this instead: awk...
Not a great approach. Try this instead:

awk '{print $1,$3}' /tmp/prod_vfstab |
while read device mntpt; do
mount -F vxfs $device $mntpt
done

I separated LINE into the two variables so you...
33,652
Posted By lamilami
try grep -- "/pb" or use fgrep.
try
grep -- "/pb"
or use fgrep.
17,676
Posted By radoulov
Something like this? awk 'NF!=n+1{print...
Something like this?

awk 'NF!=n+1{print "Record",NR,"has",NF-1,"[~] :",$0}' FS="~" n=20 inputfile

Set n to your shell variable (n="var").
Showing results 1 to 10 of 10

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