Search Results

Search: Posts Made By: pc2001
Forum: Red Hat 06-30-2016
1,610
Posted By Aia
Download the tarball from the vendor. Untar it...
Download the tarball from the vendor.
Untar it somewhere in your user home
Add something like this to your local profile (this is just an example that you have to modify)
export...
9
2,006
Posted By Scrutinizer
Note: It is best to use a subscript...
Note:

It is best to use a subscript separator and not just glue the index fields together to avoid possible index creep:

For example, suppose that you have the fields A1 and 1 and also the...
9
2,006
Posted By Aia
FNR==NR : FNR and NR are built-in management...
FNR==NR : FNR and NR are built-in management variables in awk. FNR keeps a tally of the records read from the current file, NR keeps a tally of every record so far read from any files given.
If FNR...
9
2,006
Posted By Aia
awk 'FNR==NR {a[$1$2]++; next} {if (!...
awk 'FNR==NR {a[$1$2]++; next} {if (! a[$1$2])print}' file2 file1 > file3
1,457
Posted By Corona688
Variables do not expand in single quotes. #...
Variables do not expand in single quotes.

# VAR=asdf
# echo '$VAR'

$VAR

# echo "$VAR"

asdf

#
4,172
Posted By Corona688
My apologies. I was having flashbacks to a...
My apologies. I was having flashbacks to a thread dealing with ten million files in one directory; the OP refused to believe his disk couldn't be multithreaded via some magic perl or python code......
3,245
Posted By Don Cragun
I apologize for taking so long to get back to...
I apologize for taking so long to get back to you.

In the first message in this thread, you said that a you had a file where the 2nd column on lines in that file named files to be processed. In...
3,245
Posted By MadeInGermany
If portability matters one should use printf ...
If portability matters one should use printf
printf "%s\t%s\n" "$from" "$to" >> $ofile
3,245
Posted By Aia
echo, most likely, need the flag -e in order to...
echo, most likely, need the flag -e in order to interpret the backslash

oline=`echo -e ${from}"\t"${to}`
Showing results 1 to 9 of 9

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