Search Results

Search: Posts Made By: web2moha
2,528
Posted By Chubler_XL
I've made an assumption: each record...
I've made an assumption:
each record consists a 6 field row followed by an optional 5 field row


awk -F" " '
NF==6 {
if(getline nl) {
if(split(nl, v, " ") == 5) for(i=2;i<7;i++) $i...
2,070
Posted By Akshay Hegde
#!/bin/bash echo -n "Read the letter >(enter...
#!/bin/bash

echo -n "Read the letter >(enter a or b or c) "
read letter

# One easiest way to Compare
for i in a b c; do
[ "$i" = "$letter" ] && break
done

# ok will be zero if true...
2,070
Posted By vgersh99
arg1 OP arg2 OP is one of ...
arg1 OP arg2
OP is one of -eq, -ne, -lt, -le, -gt, or -ge. These arithmetic binary operators
return true if arg1 is equal to, not equal to, less than, less than ...
6,930
Posted By Yoda
awk 'sub(/DISK-A */,X)' file
awk 'sub(/DISK-A */,X)' file
Showing results 1 to 4 of 4

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