Search Results

Search: Posts Made By: MaindotC
1,822
Posted By MaindotC
Thanks - I see the colon commands now. I've been...
Thanks - I see the colon commands now. I've been handed a .csv which contains information on each line that would be extremely useful for grepping. Unfortunately, some cells contain carriage...
1,822
Posted By MaindotC
Vi % commands
How can I find a list of shortcut commands I can execute within vi using the % indicator?

For example, I can vi a file, press colon, and then type "%s/\r//g" to remove all instances of a carriage...
5,481
Posted By MaindotC
Yep, did look in there but didn't see anything...
Yep, did look in there but didn't see anything that matched "getent" or "id"...I'm assuming I'll eventually have to look at the source code for getent and see where it calls nsswitch.conf.

Edit: I...
5,481
Posted By MaindotC
Where does id / getent query ?
I'm typing "id <user's id>" and its returning a different UID that what is defined in our administration system. Where does id / getent query and where is it configured to query? I'm guessing it...
2,347
Posted By MaindotC
It works.Yeah of course - it had to be something...
It works.Yeah of course - it had to be something ridiculous like that. Just like when I had an sftp script starting with:
/usr/bin/sftp $SERVER << EOL

And godforbid I didn't put the...
2,347
Posted By MaindotC
Thanks - as previously stated I'm familiar w/...
Thanks - as previously stated I'm familiar w/ elif but I'm still receiving syntax errors. I believe I have followed as you have stated by placing the condition in single parenthesis and the code in...
2,347
Posted By MaindotC
awk three conditions
I'm having a problem pulling UID's from data. The data outputs a user's UID in one of three ways:
1. Error User user_name already assigned with <UID>
2. Success <UID> reserved for user_name
3. <a...
Forum: Solaris 10-16-2012
1,336
Posted By MaindotC
ALOM appears to be outside of my scope - not sure...
ALOM appears to be outside of my scope - not sure that I have console access. But thank you anyway.

As for the invoice - it's a little more complicated than that but I think this will be helpful....
Forum: Solaris 10-16-2012
1,336
Posted By MaindotC
Verify Hard Drive was swapped
I recently had a vendor hot-swap a faulty hard drive on my system. The fault was determined before there were any noticeable errors with regular operation on the user end. The vendor claims to have...
2,699
Posted By MaindotC
I figured it out before I was able to consider...
I figured it out before I was able to consider some of your suggestions :) I grep the destination file to see if the GID already exists in the file that I store that in a variable. If that variable...
2,699
Posted By MaindotC
Append users if GID exists
I have thousands of users assigned various roles. The role header defines the GID that they should have. If I can get all the GID information into /etc/group format I can upload the output file and...
3,209
Posted By MaindotC
The sed command you listed does produce some...
The sed command you listed does produce some slashes between the text of the input used for my script but for some reason I am now receiving the desired output. I didn't make a backup of my script...
2,186
Posted By MaindotC
I'm not sure yet - I took a break from racking my...
I'm not sure yet - I took a break from racking my brain over that and then I was paged for work. I'm catching up on Law & Order right now - i'll let you know in the morning. In the meantime thank...
3,209
Posted By MaindotC
This is really weird...I modified my sed...
This is really weird...I modified my sed expression:[code]for i in $(cat txt)
do
echo $i | sed 's/|/ /g;s/ SEARCHTERM$//g;s/ /\r\n/g;/^[[:space:]]*$/ d;/^$/d'
done[/code
I tried adding the -E but...
3,209
Posted By MaindotC
I'm still getting blank lines :( I tried adding...
I'm still getting blank lines :( I tried adding it at the end of my sed statement as well as piping it into another sed expression. Removed the "s" - still blank lines.
3,209
Posted By MaindotC
Removing blank lines not working
In my bash script I want to echo lines in a file and ensure no blank lines are echoed:for i in $(cat txt)
do
echo $i | sed 's/|/ /g;s/ SEARCHTERM$//g;s/ /\r\n/g;s/^$/d'
done

Keep in mind this...
2,186
Posted By MaindotC
Thanks - this appears to be what I need however...
Thanks - this appears to be what I need however I'm not receiving the desired output. I've read the man page and googled a bit but all examples I see are with two files that either have 2 fileds or...
2,186
Posted By MaindotC
One file is standard /etc/passwd entries: ...
One file is standard /etc/passwd entries: user1:1:1:user1's comment field:/home/user1:/bin/ksh
user2:2:2:user2's comment field:/home/user2:/bin/ksh
user3:3:3:user3's comment...
1,258
Posted By MaindotC
If the lines are all the same length and can be...
If the lines are all the same length and can be sorted into columns then you could use cut to print only the three columns.
2,186
Posted By MaindotC
Need a key for "paste" command
Is there a way to use the "paste" command to combine files and have each line key off of a column? All this time I've been pasting files together and foolishly not checking the line count of each...
8,628
Posted By MaindotC
We use various distros - Linux, AIX, Solaris, and...
We use various distros - Linux, AIX, Solaris, and HP-UX. Uname -a does not list the distro (for Linux). It just identifies it as Linux.
8,628
Posted By MaindotC
CPU usage restrictions for users?
I was wondering if there was a way to set resource usage per user. For example, if I use "grep -f <file1> <file2>" and the two files are very big it consumes a lot of resources. Onetime someone...
3,561
Posted By MaindotC
Well, I just wasn't sure what the purpose of the...
Well, I just wasn't sure what the purpose of the "getline" function was compared to the use of redirection. I'm still googling and re-reading the man page at the moment.
3,561
Posted By MaindotC
Just a quick note - it is a central management...
Just a quick note - it is a central management system called KeON but it's split into security domains: development, testing, production, and I dunno how to describe the fourth one. All the...
3,561
Posted By MaindotC
So far this works for me - still testing. I'm...
So far this works for me - still testing. I'm not familiar w/ using arrays or built-in awk variables but I've been googling and will eventually practise to become more knowledgeable. I've made a...
Showing results 1 to 25 of 93

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