Search Results

Search: Posts Made By: robotronic
6,518
Posted By robotronic
Just some options: ls -p | grep "/$" ls...
Just some options:

ls -p | grep "/$"

ls -lp | grep "/$"

ls -l | grep "^d"

I think this question was already answered many times on these forums, try the search function.
51,252
Posted By robotronic
Here it is: eprod/root> dfshares RESOURCE ...
Here it is:
eprod/root> dfshares
RESOURCE SERVER ACCESS TRANSPORT
eprod:/usr1 eprod - -
51,252
Posted By robotronic
I've rebooted s2003, stopped and restarted...
I've rebooted s2003, stopped and restarted nfs.client on eprod but still no luck... :confused:
51,252
Posted By robotronic
I think that the only remaining step I didn't...
I think that the only remaining step I didn't tried yet is restarting nfs client and/or related processes on eprod. Unfortunately I don't have the knowledge to do that.

Could you provide some...
51,252
Posted By robotronic
You are right, in fact I want to use that shared...
You are right, in fact I want to use that shared storage only for a big and not-so-critical data transfer between production and test environments, and then umount it. Unfortunately, I don't have...
51,252
Posted By robotronic
Yes, I've already stopped and restarted the NFS...
Yes, I've already stopped and restarted the NFS service on Windows, and on Solaris boxes "/etc/rmtab" is empty, even on etest where the filesystem is mounted.

About Samba, as far as I know there...
51,252
Posted By robotronic
NFS mount hangs
Last week I've installed Windows Services For UNIX on a Windows 2003 Server test machine (s2003), and exported a folder through NFS. The share is named "storage", and is used as a temporary place for...
35,079
Posted By robotronic
echo $0 or echo $SHELL
echo $0

or

echo $SHELL
Forum: What is on Your Mind? 07-02-2008
4,361
Posted By robotronic
ROTFL! My environment like "Mutiny on the...
ROTFL! My environment like "Mutiny on the Bounty"... Well, not like... Is really that :D

You have to know that our office is divided into three main "islands", four desks each. My island is called...
6,149
Posted By robotronic
sort -t '|' -k4,4n -k5,5r input_file.txt
sort -t '|' -k4,4n -k5,5r input_file.txt
1,772
Posted By robotronic
You're almost there, the dot means "any single...
You're almost there, the dot means "any single character", if you repeat it multiple times (*) you obtain:

sed "1s/^.*$/BEGINNING/" $FILE
8,410
Posted By robotronic
Assigning a shell variable in such a way will...
Assigning a shell variable in such a way will surely not work... Are you using Perl?

For sh/bash this will work:
filesize=`ssh root@$myip ls -l myfile.txt | awk '{ print $5 }'`
8,410
Posted By robotronic
filesize=`ls -l myfile.txt | awk '{ print $5 }'`
filesize=`ls -l myfile.txt | awk '{ print $5 }'`
5,327
Posted By robotronic
I still don't understand, where are the five...
I still don't understand, where are the five columns you talked about?

Could you please provide a real input file and the expected output?

If the input file is identical to the one you posted,...
5,327
Posted By robotronic
Given an input file like this: test ~ $ cat...
Given an input file like this:

test ~ $ cat example.txt
aaaaaaaa bbbbbbbb BBB_0123 dddddddd eeeeeeee
ffffffff gggggggg hhhhhhhh iiiiiiii jjjjjjjj
kkkkkkkk llllllll mmmmmmmm nnnnnnnn BVG_0895...
1,382
Posted By robotronic
Wikipedia is your friend: GNU Project...
Wikipedia is your friend:

GNU Project (http://en.wikipedia.org/wiki/GNU_Project)

KDE (http://en.wikipedia.org/wiki/Kde)
5,924
Posted By robotronic
You need to set the OFS variable with the desired...
You need to set the OFS variable with the desired Output Field Separator, by default a space.
Or try using "nawk". I've noticed this behavior on Solaris:

> echo "aaa:bbb:ccc" | /usr/xpg4/bin/awk...
5,924
Posted By robotronic
To read lines from a different file other than...
To read lines from a different file other than the one you piped through awk, you need "getline" function.

getline <"'"$ifile"'"

or

getline var <"'"$ifile"'"

In the first case, $0 will be...
1,240
Posted By robotronic
They are the same, but sometimes you need to use...
They are the same, but sometimes you need to use the first syntax or even a space character ' ' instead of '[[:space:]]' if your sed/grep versions doesn't support such notation.
3,351
Posted By robotronic
Oh, I see that you found the solution by yourself...
Oh, I see that you found the solution by yourself while I was writing :)

Good :b:
3,351
Posted By robotronic
What about: print tst["vec","-7"] In...
What about:

print tst["vec","-7"]

In awk an associative array could have only one dimension so, if you assign your keys with the syntax:

tst[Var,"-"VarC]= ...

The resulting key of the...
3,351
Posted By robotronic
Without quotes, "vec-7" is evaluated as "value of...
Without quotes, "vec-7" is evaluated as "value of variable vec" minus "7", which isn't a good key for your hash.

Try this:
print tst["vec-7"]
4,504
Posted By robotronic
With GNU sed you may try something like this: ...
With GNU sed you may try something like this:

sed "s/\baa\b/YY/g; s/YY$/aa/" input_file.txt

No better ideas... For now :)
4,504
Posted By robotronic
I know this is not sed, but with awk I think is a...
I know this is not sed, but with awk I think is a lot simpler:

awk '{ for (i=1;i<NF;i++) if ($i=="aa") $i="YY"; print }' input_file.txt
6,183
Posted By robotronic
It's not clear what are you trying to do... With...
It's not clear what are you trying to do... With ">" symbol you are redirecting printf output to a file named like the content of tst[$1] element.

If I've understood correctly and you want to...
Showing results 1 to 25 of 354

 

Featured Tech Videos

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