Search Results

Search: Posts Made By: LinuxRacr
3,038
Posted By LinuxRacr
Great Scott! I believe my issue is solved. IFS...
Great Scott! I believe my issue is solved. IFS did the trick.
3,038
Posted By LinuxRacr
RudiC, Each line will be different in the...
RudiC,

Each line will be different in the csv file being used for input. That is why I am trying to use AWK. Am I missing something?
3,038
Posted By LinuxRacr
The csv file is holding data which will be parsed...
The csv file is holding data which will be parsed to perform functions such as creating lists, or running system checks based on the info.

Here is a little more of the script:


LIST=list.csv...
3,483
Posted By LinuxRacr
Have you tried expect?
Have you tried expect?
3,038
Posted By LinuxRacr
awk prints unwanted new lines
Hello,

I need a little help with the following:

I'm using AWK to read input from a comma-seperated value file, and only printing certain fields like so:


awk -F "," '{print $1,$3,$6}'...
2,676
Posted By LinuxRacr
Hello rbattle, That helps a little. It...
Hello rbattle,

That helps a little. It seems instead of getting one line of:


server1 :


I got a line for every variable, but no output from sysctl -a:


server1 :
server1 :
server1...
2,676
Posted By LinuxRacr
Remote while IFS
Hello masters of scripting,

I've been working to develop some basic monitoring scripts. I have solved one problem, but want to know how to solve the other.

I have a script that runs locally to...
966
Posted By LinuxRacr
Both, and a three-letter word called "car." I...
Both, and a three-letter word called "car." I had to do maintenance which involved removing the turbo, replacing some studs,and putting it all back.
966
Posted By LinuxRacr
Thank you. This is exactly what I need. I...
Thank you. This is exactly what I need. I haven't had much sleep lately, so I hit a simple wall on this one.
966
Posted By LinuxRacr
Searching range of filenames witn and without numbers on the end
So I'm grepping for the following right now:


ls -la /somedirectory/*.log* | awk '{print $9}'


The problem with this is that I get the following output:


/somedirectory/errors_1_foo.log...
Forum: Solaris 03-15-2013
8,012
Posted By LinuxRacr
Thank you!
Thank you!
Forum: Solaris 03-13-2013
8,012
Posted By LinuxRacr
Open File Descriptors Current vs. Max
Hello all,

I have been tasked with finding the current open file descriptors versus the limit set. In Linux, this can be done like so:


cat /proc/sys/fs/file-nr
3391 969 52427
| | ...
2,080
Posted By LinuxRacr
When I put the times into a file, and awked like...
When I put the times into a file, and awked like your original example, I got the same results as you: 002:43:26

When I fed the times in on the fly, my result was different: 004:57:27

I want to...
2,080
Posted By LinuxRacr
Thanks again for your assistance, It is the...
Thanks again for your assistance,

It is the same as above:


000:00:17
000:00:23
000:00:24
000:00:26
000:00:27
000:00:32
000:00:35
000:00:38
000:00:40
000:00:45
000:00:46
000:00:47...
2,080
Posted By LinuxRacr
The same...
The same...
2,080
Posted By LinuxRacr
Jim, The solution you provided is not working...
Jim,
The solution you provided is not working for me.

rdrtx1, what you provided, I'm not sure if it is accurate or not. I pipe a command (rather than read a file) through what you provided. I...
2,080
Posted By LinuxRacr
Adding columns of time
Hello all,

I'm in the process of writing a script, and I need to be able to add columns of time in the following format (time elapsed Net Backup logs):

000:01:03
000:00:58
000:00:49

Does...
Forum: Cybersecurity 05-31-2012
14,254
Posted By LinuxRacr
chage -d equivalent
Hello all,

I was wondering if there was a LINUX command equivalent of 'chage -d' on for the following UNIX flavors:

HP-UX
Solaris
AIX

I want to be able to change the aging for an account...
2,161
Posted By LinuxRacr
Thank you!
Thank you!
2,161
Posted By LinuxRacr
Grep -v contents of a list file from another file.
Hello,

I am trying to get output from FILE2 that excludes servers from list FILE1. I've tried a for loop with no success. Any ideas how to go about this?

FILE1 contains:

server1
server2...
6,115
Posted By LinuxRacr
I see, but will it keep the input such as...
I see, but will it keep the input such as 105,106,500 in that format, so it can be passed off as an option to another script?
6,115
Posted By LinuxRacr
Thanks for your reply. I guess one thing I forgot...
Thanks for your reply. I guess one thing I forgot to mention above is that I only want the input line, because it will be passed off to another script to decide what to do with the input. For...
6,115
Posted By LinuxRacr
Input Validation of comma separated values
Hello all,

I am working on a script and have the first part solved of numerical input validation. Below the code validates that the input is a numerical value between 100 and 1000. If not, it...
3,499
Posted By LinuxRacr
Seems this works. Thanks! for i in...
Seems this works. Thanks!


for i in thingy
do
some_command $i
done 2> /dev/null | tee ${LOGFILE}
3,499
Posted By LinuxRacr
STDOUT and STDERR redirection within a script
Hello all,

I have a for loop executing in a script that I want to redirect STDOUT to screen and to file, while directing STDERR to the bit bucket. Here is the general sentax of what I'm doing:
...
Showing results 1 to 25 of 87

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