Search Results

Search: Posts Made By: SteveDawe
3,764
Posted By SteveDawe
Try this line instead as the --md5 is being...
Try this line instead as the --md5 is being mistaken for a command line and the quotes may help too.

if grep -Fxq -- "$GRUBPASSWD" /etc/grub.conf
7,250
Posted By SteveDawe
Thinks this is what you're after, each version...
Thinks this is what you're after, each version does exactly the same as that shell snippet, but each time it removes one layer of default action that awk does for you to demonstrate how you can...
7,250
Posted By SteveDawe
awk loops for each line in the file placing the...
awk loops for each line in the file placing the line contents in $0 variable so what you want is

awk '
{
print $0;
}
' ab

assuming ab is your file
17,698
Posted By SteveDawe
Easiest and most readable way to execute multiple commands using ssh on solaris
I think this is what you want. It's one inline script calling a ksh which has two parts, the one surrounded by double quotes (") gets expanded on the local machine, allowing remote $variables to be...
12,587
Posted By SteveDawe
This should do what you want using the sample.txt...
This should do what you want using the sample.txt file as attached to your post.

awk -F'|' '

BEGIN {
# Get the heading line out of the way
getline;
h2=$2;
...
Showing results 1 to 5 of 5

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