Search Results

Search: Posts Made By: Seth
2,727
Posted By Seth
Never said the else clause was working, that's...
Never said the else clause was working, that's why I asked for a different way to script it.


First, the code will return an error, since the code you provided doesn't close the awk...
2,727
Posted By Seth
Uh, my awk code works fine provided $input is a...
Uh, my awk code works fine provided $input is a file in the working directory. I am not using any special editors, and after reading RudiC's comments, I restarted my system and went to a real...
2,727
Posted By Seth
OS: Linux Lite 4.0 uname -a = Linux...
OS: Linux Lite 4.0

uname -a = Linux seth-desktop 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux


bash -version = GNU bash, version...
2,727
Posted By Seth
(url's from your quote deleted as I have less...
(url's from your quote deleted as I have less than 5 posts)


This is not a homework assignment. I am learning scripting on my own.


(url deleted from quote, for same reason above)

...
2,727
Posted By Seth
Questions related to if in awk context and if without awk context
I wrote this code, questions follow


#! /bin/bash -f

# Purpose - to show how if syntax is used within an awk
clear;
ls -l;

echo "This will print out the first two columns of the...
1,430
Posted By Seth
#! /bin/bash -f # trap Ctl-c so program...
#! /bin/bash -f

# trap Ctl-c so program cannot be broken out of

trap '' 2

#run program

let count=1;
clear;


while true;
do
echo "Don't touch me!";
read -s input;
...
1,430
Posted By Seth
Passing specific and incrementing lines of text from file via variable
This is part of a larger script where I need to pass only 1 line of a file to the script, based on a variable and not a direct reference.


As part of a for loop :



# ...
Showing results 1 to 7 of 7

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