Search Results

Search: Posts Made By: aster007
10,166
Posted By aster007
Got it resolved....updated the last peice of code...
Got it resolved....updated the last peice of code to remove boundary and just have the "echo" as below

cat $ATTACH
echo '---asdfghjkl'
echo "Content-Type: text/html charset=US-ASCII;"
echo...
5,175
Posted By aster007
cat file1 | awk '{print $1}' | while read NUM ...
cat file1 | awk '{print $1}' | while read NUM
do
# echo ${NUM}

grep "Gene_${NUM}" file2 2>/dev/null # output to tty or suppress

RC=$?

if [[ ${RC} == 0 ]]...
1,089
Posted By aster007
Used cut instead of awk. Not sure why "awk"...
Used cut instead of awk. Not sure why "awk" doesn't list the first one.
Maybe someone with superiour UNIX knowledge can help here.

ls /dev/sd[b-z] | cut -f3 -d "/" | awk '{print "some text" $1...
9,199
Posted By aster007
Use a "\" to escape its normal behavior of...
Use a "\" to escape its normal behavior of pointing to the start of the line/word.

nocarrot=`echo $var | sed -e 's/\^/_/g'`
1,898
Posted By aster007
Had to divide it into 2 parts since the...
Had to divide it into 2 parts since the separators were different

cat LOGFILE | grep "number wasnt" | head -2 | while read LINE
do
BRACKET_TXT=`echo $LINE | awk '$0=$2' FS=\( RS=\) | tr -s...
1,097
Posted By aster007
Cat it to one temporary file and then use "sort...
Cat it to one temporary file and then use "sort -u" to eliminate duplicates and write it to the final file.
2,755
Posted By aster007
This can be divided into 2 parts export...
This can be divided into 2 parts

export ROWSTOLOAD=${ROWSTOLOAD:--100}If "ROWSTOLOAD" is defined then
export ROWSTOLOAD=${ROWSTOLOAD}else set it to
export ROWSTOLOAD=-100 In general if a...
2,755
Posted By aster007
AlphaLexman is correct - This won't work with...
AlphaLexman is correct - This won't work with numbers.
If "ROWSTOLOAD" is null, then the output in this case will be "{ROWSTOLOAD:--100}" instead of -100
Showing results 1 to 8 of 8

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