Search Results

Search: Posts Made By: Kentlee65
6,886
Posted By Kentlee65
@RudiC That was perfect. I just had to...
@RudiC

That was perfect. I just had to insert the variable identifier $ in front of (hostname) in the command. I even was able to redirect it to my file.

THANK YOU

--- Post updated at 06:02...
6,886
Posted By Kentlee65
Here is what I get when I try to run it like you...
Here is what I get when I try to run it like you typed it.

klu@wwvd1a:~> ./groups.sh
-bash: ./groups.sh: /bin/bash^M: bad interpreter: No such file or directory
6,886
Posted By Kentlee65
That still doesn't run correctly. Here is the...
That still doesn't run correctly. Here is the output (edited for security):

<me> :~> ls -l
total 36
drwxr-xr-x 2 <me> users 4096 Dec 3 2018 bin
-rw-r----- 1 <me> users 34 Jun 28 09:14...
6,886
Posted By Kentlee65
Script to run #groups command on list in a file
I have to provide a listing of all usernames and group assignments on Linux servers running SLES 12 SP 3. I am trying to automate this via a #for loop. It is not doing as desired and could use a...
1,098
Posted By Kentlee65
Bakunin, thank you so much for the lesson. I was...
Bakunin, thank you so much for the lesson. I was able to make the command (file) llf and it works JUST PERFECT$ llf data/images/monthly_mksysb/VIO_99D80_1/VIO_99D80_1_201904012116
-rw-r--r-- 1...
1,098
Posted By Kentlee65
Bakunin, you are correct about the shell. I have...
Bakunin, you are correct about the shell. I have found a way to make it work by defining the alias as such: alias llf='ls -l '. I was hoping to have the alias provide that leading / for the...
1,098
Posted By Kentlee65
Alias help
As part of my daily duties and to help me learn more about UNIX, I have to check a report to make sure all requested mksysb's completed each day. If the report doesn't show 100% completed, I have to...
4,400
Posted By Kentlee65
RudiC The first line with an append to my...
RudiC

The first line with an append to my text file worked perfectly. Had to clean up the data with a tr but it imported beautifully.

Thank you
4,400
Posted By Kentlee65
I need it to pull the filename not <hostname>. ...
I need it to pull the filename not <hostname>. Here is the output from your command and an example of one of the filename I'm pulling information from.

<hostname>.Linux.nfslist
...
4,400
Posted By Kentlee65
Output file name and file contents of multiple files to a single file
I am trying to consolidate multiple information files (<hostname>.Linux.nfslist) into one file so that I can import it into Excel. I can get the file contents with cat *Linux.nfslist >> nfslist.txt....
Showing results 1 to 10 of 10

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