Search Results

Search: Posts Made By: skinnygav
9,214
Posted By skinnygav
Command to delay password entry - putty connection manager
Hi all,

putty connection manager is great but when attempting to sudo or ssh to another box via the post login commands it is subject to issues due to network latency (what happens is that pcm...
5,364
Posted By skinnygav
Who can I sudo to?
Hi guys,

As I understand it, there is a file within my unix account that will list the users that I am able to sudo to.

Is there any way that I can list these users out without actually...
2,482
Posted By skinnygav
tag/mark a file with current absolute path
Hi all,

I need to mark a file with it's current location in the file system before being moved.

This will enable the file to be restored back to it's original location.

Can anyone provide...
22,440
Posted By skinnygav
sed 's/-\w\+//g' works a treat Scrutinizer...
sed 's/-\w\+//g'

works a treat Scrutinizer thank you.

Could you offer an explaination as to what this SED command is doing?
22,440
Posted By skinnygav
Remove words beginning with a certain character from a file
Hi,

how could you go about removing words that begin with a certain character.

assuming that this character is '-' I currently have

echo "-hello" | sed s/-/""/

which replaces the leading...
1,942
Posted By skinnygav
Perfect, thank you Scott.
Perfect, thank you Scott.
1,942
Posted By skinnygav
$#, $!, $? etc...
Hi all,

In Bash shell, do the references $#, $$ etc have a collective name?

Also is there any way of finding a comprehensive list of those that are available and what information they store?...
1,793
Posted By skinnygav
Hi i'm quite inexeperienced but my suggestion...
Hi i'm quite inexeperienced but my suggestion would be to use the modulus of 4 for your trigger to /366 instead of /365.

Hope this helps you out a bit
6,859
Posted By skinnygav
Return Number of Substitutions made by SED?
Hi guys,

Is there any way this can be done, or return whether any substitutions have been made?

thanks for any input.

skinnygav (using Bash shell)
1,519
Posted By skinnygav
ok now have echo $var1 | eval awk -F \"\"...
ok now have

echo $var1 | eval awk -F \"\" \'{print \$$var2}\'

which works fine, thanks for all your help guys!

---------- Post updated at 08:31 AM ---------- Previous update was at 08:29 AM...
1,519
Posted By skinnygav
outputting selected characters from within a variable
Hi all,

if for example I had a variable containing the string 'hello', is the any way I can output, for example, the e and the 2nd l based on their position in the string not their character (in...
2,590
Posted By skinnygav
replacing string in a column on a specific line
hi,

i currently have a file with columns similar to this

customer name owed
CID123 John 300
CID342 harry 500

at present i use use awk to find the amount owed by the customer using...
3,168
Posted By skinnygav
check length content existence of variable
hi guys, im learning so be gentle...

i'm wanting to write a script to read in a customer number.

in order that the code is robust i want to check

1) the length of the value entered (4...
Showing results 1 to 13 of 13

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