Search Results

Search: Posts Made By: risby
5
2,988
Posted By risby
I was responding to you ghostdog74. The example...
I was responding to you ghostdog74. The example code you have given above will not store anything in the environment variable because no input is specified to the awk command.

Also, if you leave...
5
2,988
Posted By risby
If you want to KISS it then the cat isn't...
If you want to KISS it then the cat isn't required but the grep is if the file contains more lines than just the one starting with PAYSLOT:

payslot=`grep PAYSLOT $myfile | awk -F"=" '{print $NF}'`...
8,343
Posted By risby
You could sort the files on the first key and...
You could sort the files on the first key and then with each segment of the sorted file containing lines where the first key is the same you must sort on the second key.

One long-winded way of...
2
10,560
Posted By risby
Close but no cigar; as the man page says "all...
Close but no cigar; as the man page says "all other special characters, including '\', lose their special significance within a bracket expression".

So, it should match all lines except those that...
3,297
Posted By risby
This means you do not have a file called bash in...
This means you do not have a file called bash in the directory /bin.

Do you have bash on your system?

Actually, the ^M suggests that the file has passed through a windoze system at some point....
3,297
Posted By risby
The numeric "for" loop is bash shell syntax that...
The numeric "for" loop is bash shell syntax that is not available in the Bourne shell. You have a bash shell script. To execute it make it executable (with "chmod +x Install.sh") and then run it...
4,028
Posted By risby
Hmm, but that is not very flexible, imagine the...
Hmm, but that is not very flexible, imagine the next problem being to remove the first 43 characters. How about:
echo "123456789ABC" | cut -c11-
8,024
Posted By risby
Here's something to start you off: awk '/href/...
Here's something to start you off:
awk '/href/ {for (i=1; i<=NF; i++) {if ($i ~ /^href/) {print $i}}}' *.html

Take that, extend it, come back for help when you can show you've made some sort of...
Forum: AIX 05-10-2008
27,359
Posted By risby
I'm sorry I can't help with the N_GROUPS_MAX...
I'm sorry I can't help with the N_GROUPS_MAX question. That parameter is a limit to the number of groups of which a user can be a member. I believe your original question quoted above is about the...
3,156
Posted By risby
If your current working directory is: ...
If your current working directory is:

/abc1/abc2/abc3

and you want it to be /mnl1/mnl2/mnl3 then enter the command

cd /mnl1/mnl2/mnl3

This bit of your question "by some coding within a...
3,156
Posted By risby
Maybe you are confused by the fact that if you...
Maybe you are confused by the fact that if you put a cd command into a file and then execute the file your working directory doesn't change.

This is because the script is executing in a subshell...
Showing results 1 to 11 of 11

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